mirror of https://github.com/docker/docker-py.git
Specify encoding when loading readme
Loading readme fails when system locale is not utf-8. Potentially replaces #1313 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
parent
c66c7f8b0a
commit
a658e14e8b
3
setup.py
3
setup.py
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
import codecs
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
@ -35,7 +36,7 @@ with open('./test-requirements.txt') as test_reqs_txt:
|
|||
|
||||
long_description = ''
|
||||
try:
|
||||
with open('./README.rst') as readme_rst:
|
||||
with codecs.open('./README.rst', encoding='utf-8') as readme_rst:
|
||||
long_description = readme_rst.read()
|
||||
except IOError:
|
||||
# README.rst is only generated on release. Its absence should not prevent
|
||||
|
|
Loading…
Reference in New Issue