Skip to content

Commit

Permalink
set encoding to utf-8 when reading content from README.md during pip …
Browse files Browse the repository at this point in the history
…install (PaddlePaddle#768)
  • Loading branch information
HydrogenSulfate authored Jan 22, 2024
1 parent bdbc167 commit df1092e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import setuptools


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


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

0 comments on commit df1092e

Please sign in to comment.