From 44e3f17b51740bf082d6fadb41f39f828a5afde9 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 19 Apr 2011 16:18:57 -0400 Subject: [PATCH] Use my standard URL generation scheme in setup.py. --- setup.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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'}, -- 2.26.2