Use my standard URL generation scheme in setup.py.
authorW. Trevor King <wking@drexel.edu>
Tue, 19 Apr 2011 20:18:57 +0000 (16:18 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 19 Apr 2011 20:18:57 +0000 (16:18 -0400)
setup.py

index ee6cee92e4c29512024bfe672fa18772f8c97b15..416cd2ff8217598ad180c7e17fe4657e002254ac 100755 (executable)
--- 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'},