Merge pull request #873 from asodeur/issue_872

Special characters in README.rst break setup.py on Windows
This commit is contained in:
Syrus Akbary 2019-01-07 16:10:23 -05:00 committed by GitHub
commit ae7a5d71c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
import ast import ast
import codecs
import re import re
import sys import sys
@ -61,7 +62,9 @@ setup(
name="graphene", name="graphene",
version=version, version=version,
description="GraphQL Framework for Python", description="GraphQL Framework for Python",
long_description=open("README.rst").read(), long_description=codecs.open(
"README.rst", "r", encoding="ascii", errors="replace"
).read(),
url="https://github.com/graphql-python/graphene", url="https://github.com/graphql-python/graphene",
author="Syrus Akbary", author="Syrus Akbary",
author_email="me@syrusakbary.com", author_email="me@syrusakbary.com",