Began versioning.
[curses-check-for-keypress.git] / setup.py
1 """curses_check_for_keypress: loop until user presses a key.
2 """
3
4 classifiers = """\
5 Development Status :: 2 - Pre-Alpha
6 Intended Audience :: Developers
7 Operating System :: OS Independent
8 License :: OSI Approved :: GNU General Public License (GPL)
9 Programming Language :: Python
10 Topic :: Software Development :: Libraries :: Python Modules
11 """
12
13 # http://peak.telecommunity.com/DevCenter/setuptools#using-setuptools-without-bundling-it
14 import ez_setup
15 ez_setup.use_setuptools()
16
17 from setuptools import setup, find_packages
18
19 # patch distutils if it can't cope with the "classifiers" or
20 # "download_url" keywords
21 from sys import version
22 if version < '2.2.3':
23     from distutils.dist import DistributionMetadata
24     DistributionMetadata.classifiers = None
25     DistributionMetadata.download_url = None
26
27 doclines = __doc__.split("\n")
28
29 from curses_check_for_keypress import VERSION
30
31 setup(name="curses_check_for_keypress",
32       version=VERSION,
33       maintainer="W. Trevor King",
34       maintainer_email="wking@drexel.edu",
35       url = "http://www.physics.drexel.edu/~wking/code/python/",
36       download_url = "http://www.physics.drexel.edu/~wking/code/python/curses_check_for_keypress-%s.tar.gz" % VERSION,
37       license = "GNU General Public License (GPL)",
38       platforms = ["all"],
39       description = doclines[0],
40       long_description = "\n".join(doclines[2:]),
41       classifiers = filter(None, classifiers.split("\n")),
42       py_modules = ["curses_check_for_keypress", "ez_setup"],
43       #packages = find_packages(),
44       )
45
46 # use packages to include subdirectory packages
47 # use py_modules to include single-module packages
48 # use ext_modules to include extension modules
49 # see
50 #   http://www.python.org/doc/2.5.2/dist/listing-modules.html
51 #   http://www.python.org/doc/2.5.2/dist/describing-extensions.html