Commit f8d1ac65 by Chris Jerdonek

Put the code to create the package's long_description into a function.

parent 7b448436
...@@ -19,14 +19,26 @@ def publish(): ...@@ -19,14 +19,26 @@ def publish():
os.system('python setup.py sdist upload') os.system('python setup.py sdist upload')
def make_long_description():
"""
Return the long description for the package.
"""
long_description = open('README.rst').read() + '\n\n' + open('HISTORY.rst').read()
return long_description
if sys.argv[-1] == 'publish': if sys.argv[-1] == 'publish':
publish() publish()
sys.exit() sys.exit()
long_description = make_long_description()
setup(name='pystache', setup(name='pystache',
version='0.3.1', version='0.3.1',
description='Mustache for Python', description='Mustache for Python',
long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(), long_description=long_description,
author='Chris Wanstrath', author='Chris Wanstrath',
author_email='chris@ozmm.org', author_email='chris@ozmm.org',
url='http://github.com/defunkt/pystache', url='http://github.com/defunkt/pystache',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment