Set setup.py open file encoding to UTF-8

Package building environments usually differ with a working environment
where locale settings are tricky. This change enforce using UTF-8 to
open files in setup.py in order to avoid possible encoding errors when
reading README and changelog files when they contain non-ASCII chars.
This commit is contained in:
Jiachen Yang 2016-12-19 18:50:13 +09:00
commit a07338e303
No known key found for this signature in database
GPG key ID: 90CB3D62C13D4796

View file

@ -17,8 +17,8 @@ entry_points = {
]
}
README = open('README.rst').read()
CHANGELOG = open('docs/changelog.rst').read()
README = open('README.rst', 'r', encoding='utf-8').read()
CHANGELOG = open('docs/changelog.rst', 'r', encoding='utf-8').read()
setup(
name='pelican',