From 01c0e738498bed496f4b31a127bbbec75cf6b4f0 Mon Sep 17 00:00:00 2001 From: RicterZ Date: Sat, 18 May 2019 22:30:20 +0800 Subject: [PATCH] fix bug while installing on windows / python3 --- nhentai/__init__.py | 2 +- setup.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/nhentai/__init__.py b/nhentai/__init__.py index 9ad6b6e..42ea186 100644 --- a/nhentai/__init__.py +++ b/nhentai/__init__.py @@ -1,3 +1,3 @@ -__version__ = '0.3.3' +__version__ = '0.3.4' __author__ = 'RicterZ' __email__ = 'ricterzheng@gmail.com' diff --git a/setup.py b/setup.py index f480537..7b87d5c 100644 --- a/setup.py +++ b/setup.py @@ -11,8 +11,10 @@ with open('requirements.txt') as f: def long_description(): - with codecs.open('README.rst', 'r') as f: - return str(f.read()) + with codecs.open('README.rst', 'rb') as readme: + if not sys.version_info < (3, 0, 0): + return readme.read().decode('utf-8') + setup( name='nhentai',