Skip to content

Commit df1092e

Browse files
set encoding to utf-8 when reading content from README.md during pip install (#768)
1 parent bdbc167 commit df1092e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import setuptools
66

77

8-
def readme():
9-
"""README"""
10-
with open("README.md") as f:
8+
def get_readme() -> str:
9+
"""get README"""
10+
with open("README.md", encoding="utf-8") as f:
1111
return f.read()
1212

1313

@@ -28,7 +28,7 @@ def get_requirements() -> list:
2828
"PaddleScience is SDK and library for developing AI-driven scientific computing"
2929
" applications based on PaddlePaddle."
3030
),
31-
long_description=readme(),
31+
long_description=get_readme(),
3232
long_description_content_type="text/markdown",
3333
packages=setuptools.find_packages(
3434
exclude=(

0 commit comments

Comments
 (0)