Skip to content

Commit ae7a5d7

Browse files
authored
Merge pull request #873 from asodeur/issue_872
Special characters in README.rst break setup.py on Windows
2 parents 88d68fa + 2bc7699 commit ae7a5d7

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
@@ -1,4 +1,5 @@
11
import ast
2+
import codecs
23
import re
34
import sys
45

@@ -61,7 +62,9 @@ def run_tests(self):
6162
name="graphene",
6263
version=version,
6364
description="GraphQL Framework for Python",
64-
long_description=open("README.rst").read(),
65+
long_description=codecs.open(
66+
"README.rst", "r", encoding="ascii", errors="replace"
67+
).read(),
6568
url="https://github.com/graphql-python/graphene",
6669
author="Syrus Akbary",
6770
author_email="[email protected]",

0 commit comments

Comments
 (0)