From c65a621b6b3c7e368cf7d1a4b1354e5a28524a19 Mon Sep 17 00:00:00 2001 From: jm12138 <2286040843@qq.com> Date: Mon, 10 Apr 2023 10:28:24 +0000 Subject: [PATCH 1/2] Add UTF-8 Encoding in read_text. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2706b8d87..fef37110c 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from pathlib import Path this_directory = Path(__file__).parent -long_description = (this_directory / "README.md").read_text() +long_description = (this_directory / "README.md").read_text(encoding='UTF-8') setup( name="llama_cpp_python", From adfd9f681c756859f8e60c7f19ba7bd7fb6a67a1 Mon Sep 17 00:00:00 2001 From: jm12138 <2286040843@qq.com> Date: Mon, 10 Apr 2023 15:33:31 +0000 Subject: [PATCH 2/2] Matched the other encode calls --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fef37110c..33c2e261b 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from pathlib import Path this_directory = Path(__file__).parent -long_description = (this_directory / "README.md").read_text(encoding='UTF-8') +long_description = (this_directory / "README.md").read_text(encoding="utf-8") setup( name="llama_cpp_python",