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^0 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a46531fcee14c749cd4d4f07c709bf37b3f75f40;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',