-"""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'],
)