diff --git a/setup.py b/setup.py index 829a1ef..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() @@ -16,7 +22,7 @@ required = [ 'pytz', 'dateparser', 'iso8601', - 'python-dateutil' + 'python-dateutil', 'ruamel.yaml' ] @@ -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',