surface: Ensure min_position < max_position in _get_min_max_positions
[pypiezo.git] / setup.py
1 # Copyright (C) 2009-2012 W. Trevor King <wking@tremily.us>
2 #
3 # This file is part of pypiezo.
4 #
5 # pypiezo is free software: you can redistribute it and/or modify it under the
6 # terms of the GNU General Public License as published by the Free Software
7 # Foundation, either version 3 of the License, or (at your option) any later
8 # version.
9 #
10 # pypiezo is distributed in the hope that it will be useful, but WITHOUT ANY
11 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License along with
15 # pypiezo.  If not, see <http://www.gnu.org/licenses/>.
16
17 "Tools for controlling piezoelectric actuators."
18
19 from distutils.core import setup
20 import os.path
21
22 from pypiezo import __version__
23
24
25 package_name = 'pypiezo'
26 _this_dir = os.path.dirname(__file__)
27
28 setup(name=package_name,
29       version=__version__,
30       maintainer='W. Trevor King',
31       maintainer_email='wking@tremily.us',
32       url='http://blog.tremily.us/posts/{}/'.format(package_name),
33       download_url='http://git.tremily.us/?p={}.git;a=snapshot;h={};sf=tgz'.format(
34         package_name, __version__),
35       license='GNU General Public License (GPL)',
36       platforms=['all'],
37       description=__doc__,
38       long_description=open(os.path.join(_this_dir, 'README'), 'r').read(),
39       classifiers=[
40         'Development Status :: 2 - Pre-Alpha',
41         'Intended Audience :: Developers',
42         'Intended Audience :: Science/Research',
43         'Operating System :: POSIX',
44         'Operating System :: Unix',
45         'License :: OSI Approved :: GNU General Public License (GPL)',
46         'Programming Language :: Python',
47         'Topic :: Scientific/Engineering',
48         'Topic :: Software Development :: Libraries :: Python Modules',
49         ],
50       packages=[package_name],
51       provides=['{} ({})'.format(package_name, __version__)],
52       requires=['pycomedi (>= 0.4)'],
53       )