From f119fe927bd4c2281ee90dea9ff6e3514cdbd32e Mon Sep 17 00:00:00 2001 From: Aaron Eline Date: Tue, 20 Dec 2016 09:53:51 -0500 Subject: [PATCH 1/2] Fixed missing comma in setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 829a1ef..15f3536 100755 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ required = [ 'pytz', 'dateparser', 'iso8601', - 'python-dateutil' + 'python-dateutil', 'ruamel.yaml' ] From 89a54abf1f4c0c169287cfd47ecf23e35881a29a Mon Sep 17 00:00:00 2001 From: Aaron Eline Date: Tue, 20 Dec 2016 09:56:00 -0500 Subject: [PATCH 2/2] Added fix from @joaoleveiga --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 15f3536..a9db049 100755 --- a/setup.py +++ b/setup.py @@ -3,10 +3,16 @@ import os import sys +import codecs from setuptools import setup +here = os.path.abspath(os.dirname(__file__)) + +def read(*parts): + return codecs.open(os.path.join(here, *parts), 'r').read() + if sys.argv[-1] == "publish": os.system("python setup.py sdist bdist_wheel upload") sys.exit() @@ -24,7 +30,7 @@ setup( name='maya', version='0.1.1', description='Datetimes for Humans.', - long_description=open('README.rst').read(), + long_description= '\n' + read('README.rst'), author='Kenneth Reitz', author_email='me@kennethreitz.com', url='https://github.com/kennethreitz/maya',