From: W. Trevor King Date: Tue, 19 Apr 2011 18:42:56 +0000 (-0400) Subject: Use README for long_description in setup.py. X-Git-Tag: 0.1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f0799a2b2b9d3dc05912bf352e2067da206fced9;p=pyrisk.git Use README for long_description in setup.py. --- diff --git a/setup.py b/setup.py index 2dd4274..ee6cee9 100755 --- a/setup.py +++ b/setup.py @@ -1,8 +1,10 @@ #!/usr/bin/env python +"Python Risk engine with assorted player interfaces." + from distutils.core import setup from os import walk -from os.path import join, sep +from os.path import dirname, join, sep from pyrisk import __version__ @@ -17,15 +19,14 @@ def recursive_file_list(install_root, source_root): r.append((install_dirpath, [join(dirpath, f) for f in filenames])) return r +_this_dir = dirname(__file__) + setup( name='PyRisk', version=__version__, url='http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/pyrisk/', - description='Python Risk engine with assorted player interfaces.', - long_description='\n'.join([ - 'Currently implemented interfaces:', - ' * email', - ]), + description=__doc__, + long_description = open(join(_this_dir, 'README'), 'r').read(), download_url='http://www.physics.drexel.edu/code/tar/pyrisk.tgz', author='W. Trevor King', author_email='wking@drexel.edu',