-"""Piezo: tools for controlling piezoelectric actuators
-
-Requires
- * pycomedi
- * data_logger
- * curses_check_for_keypress
-
-Git repository:
-http://www.physics.drexel.edu/~wking/code/git/piezo.git
-"""
-
-classifiers = """\
-Development Status :: 2 - Pre-Alpha
-Intended Audience :: Developers
-Intended Audience :: Science/Research
-Operating System :: POSIX
-Operating System :: Unix
-License :: OSI Approved :: GNU General Public License (GPL)
-Programming Language :: Python
-Topic :: Scientific/Engineering
-Topic :: Software Development :: Libraries :: Python Modules
-"""
-
-# http://peak.telecommunity.com/DevCenter/setuptools#using-setuptools-without-bundling-it
-import ez_setup
-ez_setup.use_setuptools()
-
-from setuptools import setup, find_packages
-
-# patch distutils if it can't cope with the "classifiers" or
-# "download_url" keywords
-from sys import version
-if version < '2.2.3':
- from distutils.dist import DistributionMetadata
- DistributionMetadata.classifiers = None
- DistributionMetadata.download_url = None
-
-import piezo
-__version__ = piezo.__version__
-
-doclines = __doc__.split("\n")
-
-setup(name="piezo",
+# Copyright (C) 2009-2012 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of pypiezo.
+#
+# pypiezo is free software: you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation, either version 3 of the License, or (at your option) any later
+# version.
+#
+# pypiezo is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# pypiezo. If not, see <http://www.gnu.org/licenses/>.
+
+"Tools for controlling piezoelectric actuators."
+
+from distutils.core import setup
+import os.path
+
+from pypiezo import __version__
+
+
+package_name = 'pypiezo'
+_this_dir = os.path.dirname(__file__)
+
+setup(name=package_name,
version=__version__,
- maintainer="W. Trevor King",
- maintainer_email="wking@drexel.edu",
- url = "http://www.physics.drexel.edu/~wking/code/python/",
- download_url = "http://www.physics.drexel.edu/~wking/code/python/piezo-%s.tar.gz" % __version__,
- license = "GNU General Public License (GPL)",
- platforms = ["all"],
- description = doclines[0],
- long_description = "\n".join(doclines[2:]),
- classifiers = filter(None, classifiers.split("\n")),
- py_modules = ['ez_setup'],
- packages = find_packages(),
- dependency_links = [
- "http://www.physics.drexel.edu/~wking/code/python/"
+ maintainer='W. Trevor King',
+ maintainer_email='wking@drexel.edu',
+ url='http://blog.tremily.us/posts/{}/'.format(package_name),
+ download_url='http://git.tremily.us/?p={}.git;a=snapshot;h={};sf=tgz'.format(
+ package_name, __version__),
+ license='GNU General Public License (GPL)',
+ platforms=['all'],
+ description=__doc__,
+ long_description=open(os.path.join(_this_dir, 'README'), 'r').read(),
+ classifiers=[
+ 'Development Status :: 2 - Pre-Alpha',
+ 'Intended Audience :: Developers',
+ 'Intended Audience :: Science/Research',
+ 'Operating System :: POSIX',
+ 'Operating System :: Unix',
+ 'License :: OSI Approved :: GNU General Public License (GPL)',
+ 'Programming Language :: Python',
+ 'Topic :: Scientific/Engineering',
+ 'Topic :: Software Development :: Libraries :: Python Modules',
],
- install_requires = ['pycomedi >= 0.2',
- 'data_logger >= 0.4',
- 'curses_check_for_keypress'],
+ packages=[package_name],
+ provides=['{} ({})'.format(package_name, __version__)],
+ requires=['pycomedi (>= 0.4)'],
)
-
-# use packages to include subdirectory packages
-# use py_modules to include single-module packages
-# use ext_modules to include extension modules
-# see
-# http://www.python.org/doc/2.5.2/dist/listing-modules.html
-# http://www.python.org/doc/2.5.2/dist/describing-extensions.html