Merge pull request #41 from JoshuaRLi/pip-win-fix

Fix file encoding issues preventing successful pip installation on Windows
This commit is contained in:
2016-12-28 02:24:21 -05:00
committed by GitHub
+4 -3
View File
@@ -16,8 +16,9 @@ except ImportError:
here = os.path.abspath(dirname(__file__))
def read(*parts):
return codecs.open(os.path.join(here, *parts), 'r').read()
with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = '\n' + f.read()
if sys.argv[-1] == "publish":
os.system("python setup.py sdist bdist_wheel upload")
@@ -37,7 +38,7 @@ setup(
name='maya',
version='0.1.4',
description='Datetimes for Humans.',
long_description= '\n' + read('README.rst'),
long_description=long_description,
author='Kenneth Reitz',
author_email='me@kennethreitz.com',
url='https://github.com/kennethreitz/maya',