mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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:
parent
82ada44aa8
commit
a07338e303
1 changed files with 2 additions and 2 deletions
4
setup.py
4
setup.py
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue