mirror of https://github.com/docker/docker-py.git
Merge pull request #1314 from bfirsh/specify-encoding-for-readme
Specify encoding when loading readme
This commit is contained in:
commit
f051f7e90a
3
setup.py
3
setup.py
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
import codecs
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
@ -35,7 +36,7 @@ with open('./test-requirements.txt') as test_reqs_txt:
|
||||||
|
|
||||||
long_description = ''
|
long_description = ''
|
||||||
try:
|
try:
|
||||||
with open('./README.rst') as readme_rst:
|
with codecs.open('./README.rst', encoding='utf-8') as readme_rst:
|
||||||
long_description = readme_rst.read()
|
long_description = readme_rst.read()
|
||||||
except IOError:
|
except IOError:
|
||||||
# README.rst is only generated on release. Its absence should not prevent
|
# README.rst is only generated on release. Its absence should not prevent
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue