diff --git a/setup.py b/setup.py index 7e01cf6..d0f6562 100644 --- a/setup.py +++ b/setup.py @@ -1,16 +1,19 @@ # coding: utf-8 from __future__ import print_function, unicode_literals +import sys import codecs from setuptools import setup, find_packages from nhentai import __version__, __author__, __email__ + with open('requirements.txt') as f: requirements = [l for l in f.read().splitlines() if l] def long_description(): - with codecs.open('README.md', 'r') as f: - return str(f.read()) + with codecs.open('README.md', 'rb') as f: + if sys.version_info >= (3, 0, 0): + return str(f.read()) setup( name='nhentai',