From: W. Trevor King Date: Tue, 19 Apr 2011 20:18:57 +0000 (-0400) Subject: Use my standard URL generation scheme in setup.py. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=44e3f17b51740bf082d6fadb41f39f828a5afde9;p=pyrisk.git Use my standard URL generation scheme in setup.py. --- diff --git a/setup.py b/setup.py index ee6cee9..416cd2f 100755 --- a/setup.py +++ b/setup.py @@ -9,6 +9,10 @@ from os.path import dirname, join, sep from pyrisk import __version__ +python_package_name = 'PyRisk' +package_name = python_package_name.lower() + + def recursive_file_list(install_root, source_root): if source_root[-1] != sep: source_root += sep @@ -22,12 +26,12 @@ def recursive_file_list(install_root, source_root): _this_dir = dirname(__file__) setup( - name='PyRisk', + name=python_package_name, version=__version__, - url='http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/pyrisk/', + url='http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/%s/' % package_name, description=__doc__, long_description = open(join(_this_dir, 'README'), 'r').read(), - download_url='http://www.physics.drexel.edu/code/tar/pyrisk.tgz', + download_url='http://www.physics.drexel.edu/code/python/%s-%s.tar.gz' % (package_name, __version__), author='W. Trevor King', author_email='wking@drexel.edu', package_dir={'pyrisk': 'pyrisk'},