Convert "NaN" -> "nan" to catch up with Numpy 1.6
[hooke.git] / setup.py
index 6e1d3d0079016582a7a65bc051b131428e730a93..8c82ddfbcb92c3bf36fad26616a987e38eccac3e 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,27 +1,23 @@
-# Copyright (C) 2010 W. Trevor King <wking@drexel.edu>
+# Copyright (C) 2010-2012 W. Trevor King <wking@tremily.us>
 #
 # This file is part of Hooke.
 #
-# Hooke is free software: you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation, either
-# version 3 of the License, or (at your option) any later version.
+# Hooke is free software: you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option) any
+# later version.
 #
-# Hooke 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 Lesser General Public License for more details.
+# Hooke 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 Lesser General Public License for more
+# details.
 #
-# You should have received a copy of the GNU Lesser General Public
-# License along with Hooke.  If not, see
-# <http://www.gnu.org/licenses/>.
+# You should have received a copy of the GNU Lesser General Public License
+# along with Hooke.  If not, see <http://www.gnu.org/licenses/>.
 
-"""Hooke: tools for analyzing force spectroscopy data.
-
-Mercurial repository:
-http://www.physics.drexel.edu/~wking/code/hg/hooke/
-"""
+"Tools for analyzing force spectroscopy data."
 
+import codecs
 from distutils.core import setup
 from os import walk
 import os.path
@@ -52,18 +48,21 @@ def find_packages(root='hooke'):
 
 packages = find_packages()
 
+_this_dir = os.path.dirname(__file__)
+
 setup(name="Hooke",
       version=version(),
       maintainer="Massimo Sandal",
       maintainer_email="hookesoftware@googlegroups.com",
       url="http://code.google.com/p/hooke/",
-      download_url="http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.gci/hooke/archive/%s.tar.gz" % version(3),
+      download_url='http://git.tremily.us/?p=hooke.git;a=snapshot;h={};sf=tgz'.format(version(4)),
       license = "GNU Lesser General Public License (LGPL)",
       platforms = ["all"],
-      description = doclines[0],
-      long_description = "\n".join(doclines[2:]),
-      classifiers = filter(None, classifiers.split("\n")),
-      scripts = ['bin/hooke'],
+      description = __doc__,
+      long_description=codecs.open(
+        os.path.join(_this_dir, 'README'), 'r', encoding='utf-8').read(),
+      classifiers = list(filter(None, classifiers.split("\n"))),
+      scripts = ['bin/hk.py'],
       packages = packages,
       provides = packages,
       )