From: W. Trevor King Date: Sat, 14 Jul 2012 16:18:54 +0000 (-0400) Subject: Cleanup setup.py and migrate to tremily.us. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4621dc6235414d5769ee3646822f19f0f7c9784f;p=curses_check_for_keypress.git Cleanup setup.py and migrate to tremily.us. --- diff --git a/setup.py b/setup.py index 5c0a54b..608418f 100644 --- a/setup.py +++ b/setup.py @@ -1,32 +1,35 @@ -"""curses_check_for_keypress: loop until user presses a key. -""" +# Copyright -classifiers = """\ -Development Status :: 2 - Pre-Alpha -Intended Audience :: Developers -Operating System :: OS Independent -License :: OSI Approved :: GNU General Public License (GPL) -Programming Language :: Python -Topic :: Software Development :: Libraries :: Python Modules -""" +"curses_check_for_keypress: loop until user presses a key." from distutils.core import setup +import os.path from curses_check_for_keypress import __version__ -doclines = __doc__.split('\n') +package_name = 'curses-check-for-keypress' +_this_dir = os.path.dirname(__file__) -setup(name='curses_check_for_keypress', +setup(name=package_name, version=__version__, maintainer='W. Trevor King', - maintainer_email='wking@drexel.edu', - url = 'http://www.physics.drexel.edu/~wking/unfolding-disasters/post/curses_check_for_keypress', - download_url = 'http://www.physics.drexel.edu/~wking/code/python/curses_check_for_keypress-%s.tar.gz' % __version__, + maintainer_email='wking@tremily.us', + url = 'http://blog.tremily.us/post/{}/'.format(package_name), + download_url = 'http://git.tremily.us/?p={}.git/a=snapshot;h=v{};sf=tgz'.format( + package_name, __version__), + license = 'GNU GPL v3+', platforms = ['all'], - description = doclines[0], - long_description = __doc__, - classifiers = filter(None, classifiers.split('\n')), + description = __doc__, + long_description = open(os.path.join(_this_dir, 'README'), 'r').read(), + classifiers = [ + 'Development Status :: 2 - Pre-Alpha', + 'Intended Audience :: Developers', + 'Operating System :: OS Independent', + 'License :: OSI Approved :: GNU General Public License (GPL)', + 'Programming Language :: Python', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], py_modules = ['curses_check_for_keypress'], )