Update to depend on data_logger v0.4 (and bump to v0.3).
[pypiezo.git] / setup.py
1 """Piezo: tools for controlling piezoelectric actuators
2
3 Requires
4   * pycomedi
5   * data_logger
6   * curses_check_for_keypress
7
8 Git repository:
9 http://www.physics.drexel.edu/~wking/code/git/piezo.git
10 """
11
12 classifiers = """\
13 Development Status :: 2 - Pre-Alpha
14 Intended Audience :: Developers
15 Intended Audience :: Science/Research
16 Operating System :: POSIX
17 Operating System :: Unix
18 License :: OSI Approved :: GNU General Public License (GPL)
19 Programming Language :: Python
20 Topic :: Scientific/Engineering
21 Topic :: Software Development :: Libraries :: Python Modules
22 """
23
24 # http://peak.telecommunity.com/DevCenter/setuptools#using-setuptools-without-bundling-it
25 import ez_setup
26 ez_setup.use_setuptools()
27
28 from setuptools import setup, find_packages
29
30 # patch distutils if it can't cope with the "classifiers" or
31 # "download_url" keywords
32 from sys import version
33 if version < '2.2.3':
34     from distutils.dist import DistributionMetadata
35     DistributionMetadata.classifiers = None
36     DistributionMetadata.download_url = None
37
38 import piezo
39 __version__ = piezo.__version__
40
41 doclines = __doc__.split("\n")
42
43 setup(name="piezo",
44       version=__version__,
45       maintainer="W. Trevor King",
46       maintainer_email="wking@drexel.edu",
47       url = "http://www.physics.drexel.edu/~wking/code/python/",
48       download_url = "http://www.physics.drexel.edu/~wking/code/python/piezo-%s.tar.gz" % __version__,
49       license = "GNU General Public License (GPL)",
50       platforms = ["all"],
51       description = doclines[0],
52       long_description = "\n".join(doclines[2:]),
53       classifiers = filter(None, classifiers.split("\n")),
54       py_modules = ['ez_setup'],
55       packages = find_packages(),
56       dependency_links = [
57         "http://www.physics.drexel.edu/~wking/code/python/"
58         ],
59       install_requires = ['pycomedi >= 0.2', 
60                           'data_logger >= 0.4',
61                           'curses_check_for_keypress'],
62       )
63
64 # use packages to include subdirectory packages
65 # use py_modules to include single-module packages
66 # use ext_modules to include extension modules
67 # see
68 #   http://www.python.org/doc/2.5.2/dist/listing-modules.html
69 #   http://www.python.org/doc/2.5.2/dist/describing-extensions.html