Skip to content

Commit 8e2c89e

Browse files
authored
chore: decode utf-8 on readme (#275)
1 parent 52e030b commit 8e2c89e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
with open("graphql/__init__.py", "rb") as f:
1010
version = ast.literal_eval(_version_re.search(f.read().decode("utf-8")).group(1))
1111

12+
with open("README.md", "rb") as freadme:
13+
readme = freadme.read().decode("utf-8")
14+
1215
path_copy = sys.path[:]
1316

1417
sys.path.append("graphql")
@@ -53,7 +56,7 @@ def run_tests(self):
5356
name="graphql-core",
5457
version=version,
5558
description="GraphQL implementation for Python",
56-
long_description=open("README.md").read(),
59+
long_description=readme,
5760
long_description_content_type="text/markdown",
5861
url="https://github.com/graphql-python/graphql-core-legacy",
5962
download_url="https://github.com/graphql-python/graphql-core-legacy/releases",

0 commit comments

Comments
 (0)