Cleanup reStructuredText in the README.
[hooke.git] / setup.py
1 # Copyright (C) 2010-2012 W. Trevor King <wking@drexel.edu>
2 #
3 # This file is part of Hooke.
4 #
5 # Hooke is free software: you can redistribute it and/or modify it under the
6 # terms of the GNU Lesser General Public License as published by the Free
7 # Software Foundation, either version 3 of the License, or (at your option) any
8 # later version.
9 #
10 # Hooke 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 Lesser General Public License for more
13 # details.
14 #
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with Hooke.  If not, see <http://www.gnu.org/licenses/>.
17
18 "Tools for analyzing force spectroscopy data."
19
20 from distutils.core import setup
21 from os import walk
22 import os.path
23
24 from hooke import version
25
26
27 classifiers = """\
28 Development Status :: 3 - Alpha
29 Intended Audience :: Science/Research
30 Operating System :: OS Independent
31 License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
32 Programming Language :: Python
33 Topic :: Scientific/Engineering
34 """
35
36 doclines = __doc__.split("\n")
37
38 def find_packages(root='hooke'):
39     packages = []
40     prefix = '.'+os.path.sep
41     for dirpath,dirnames,filenames in walk(root):
42         if '__init__.py' in filenames:
43             if dirpath.startswith(prefix):
44                 dirpath = dirpath[len(prefix):]
45             packages.append(dirpath.replace(os.path.sep, '.'))
46     return packages
47
48 packages = find_packages()
49
50 _this_dir = os.path.dirname(__file__)
51
52 setup(name="Hooke",
53       version=version(),
54       maintainer="Massimo Sandal",
55       maintainer_email="hookesoftware@googlegroups.com",
56       url="http://code.google.com/p/hooke/",
57       download_url="http://www.physics.drexel.edu/~wking/code/hg/hgweb.cgi/hooke/archive/%s.tar.gz" % version(3),
58       license = "GNU Lesser General Public License (LGPL)",
59       platforms = ["all"],
60       description = __doc__,
61       long_description=open(os.path.join(_this_dir, 'README'), 'r').read(),
62       classifiers = filter(None, classifiers.split("\n")),
63       scripts = ['bin/hk.py'],
64       packages = packages,
65       provides = packages,
66       )