fix bug while installing on windows / python3

This commit is contained in:
RicterZ 2019-05-18 22:30:20 +08:00
parent 57e9305849
commit 01c0e73849
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,3 @@
__version__ = '0.3.3' __version__ = '0.3.4'
__author__ = 'RicterZ' __author__ = 'RicterZ'
__email__ = 'ricterzheng@gmail.com' __email__ = 'ricterzheng@gmail.com'

View File

@ -11,8 +11,10 @@ with open('requirements.txt') as f:
def long_description(): def long_description():
with codecs.open('README.rst', 'r') as f: with codecs.open('README.rst', 'rb') as readme:
return str(f.read()) if not sys.version_info < (3, 0, 0):
return readme.read().decode('utf-8')
setup( setup(
name='nhentai', name='nhentai',