explicitly set file open to user utf8 encoding when setup.py parses README and CHANGES file. If this is not done some systems will throw unicode can't decode byte error

This commit is contained in:
Matt Porritt 2015-05-19 15:09:22 +10:00
commit 12fa6c523b

View file

@ -10,7 +10,7 @@ REQUIREMENTS = [
HERE = dirname(abspath(__file__))
DESCRIPTION = '\n\n'.join(open(join(HERE, _)).read() for _ in [
DESCRIPTION = '\n\n'.join(open(join(HERE, _), encoding="utf8").read() for _ in [
'README.rst',
'CHANGES.rst',
])