Add igorpackedexperiment.py to setup.py script list.
[igor.git] / setup.py
old mode 100755 (executable)
new mode 100644 (file)
index 6019d50..67eb254
--- a/setup.py
+++ b/setup.py
@@ -1,29 +1,62 @@
-#!/usr/bin/env python
-import sys
+# Copyright (C) 2011-2012 Paul Kienzle <pkienzle@nist.gov>
+#                         W. Trevor King <wking@tremily.us>
+#
+# This file is part of igor.
+#
+# igor 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.
+#
+# igor 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 igor.  If not, see <http://www.gnu.org/licenses/>.
+
+"igor: interface for reading binary IGOR files."
+
 from distutils.core import setup
-import igor
+import os.path
 
-if len(sys.argv) == 1:
-    sys.argv.append('install')
+from igor import __version__
 
-dist = setup(
-        name = 'igor.py',
-        version = igor.__version__,
-        author='Paul Kienzle',
-        author_email='paul.kienzle@nist.gov',
-        url='https://github.com/reflectometry/igor.py',
-        description='Read Igor Pro files from python',
-        long_description=open('README.rst').read(),
-        classifiers=[
-            'Development Status :: 4 - Beta',
-            'Environment :: Console',
-            'Intended Audience :: Science/Research',
-            'License :: Public Domain',
-            'Operating System :: OS Independent',
-            'Programming Language :: Python',
-            ],
-        py_modules = ['igor'],
-)
 
-# End of file
+package_name = 'igor'
+_this_dir = os.path.dirname(__file__)
 
+setup(name=package_name,
+      version=__version__,
+      maintainer='W. Trevor King',
+      maintainer_email='wking@tremily.us',
+      url='http://blog.tremily.us/posts/{}/'.format(package_name),
+      download_url='http://git.tremily.us/?p={}.git;a=snapshot;h=v{};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',
+        'Environment :: Console',
+        'Intended Audience :: Developers',
+        'Intended Audience :: Science/Research',
+        'Operating System :: OS Independent',
+        'License :: OSI Approved :: GNU General Public License (GPL)',
+        'Programming Language :: Python',
+        'Programming Language :: Python :: 2.7',
+        'Programming Language :: Python :: 3.2',
+        'Topic :: Scientific/Engineering',
+        'Topic :: Software Development :: Libraries :: Python Modules',
+        ],
+      packages=[
+        'igor',
+        'igor.record',
+        ],
+      scripts=[
+        'bin/igorbinarywave.py',
+        'bin/igorpackedexperiment.py',
+        ],
+      provides=['igor (%s)' % __version__],
+      )