From 0e7084b80d6f1c6ceaf6ebe59b0a20d3f8a54643 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 29 Mar 2016 13:13:31 -0400 Subject: Implement RECON --- setup.py | 46 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 10 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 26bc0d2..9511de0 100755 --- a/setup.py +++ b/setup.py @@ -1,15 +1,41 @@ #!/usr/bin/env python +import recon.release +from glob import glob +from numpy import get_include as np_include +from setuptools import setup, find_packages, Extension -try: - from setuptools import setup -except ImportError: - from distribute_setup import use_setuptools - use_setuptools() - from setuptools import setup + +version = recon.release.get_info() +recon.release.write_template(version, 'lib/stwcs') setup( - setup_requires=['d2to1>=0.2.9', 'stsci.distutils>=0.3.2'], - d2to1=True, - use_2to3=False, - zip_safe=False + name = 'stwcs', + version = version.pep386, + author = 'Nadia Dencheva, Warren Hack', + author_email = 'help@stsci.edu', + description = 'Recomputes the WCS of an HST observation and puts all distortion', + url = 'https://github.com/spacetelescope/stwcs', + classifiers = [ + 'Intended Audience :: Science/Research', + 'License :: OSI Approved :: BSD License', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Topic :: Scientific/Engineering :: Astronomy', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], + install_requires = [ + 'astropy', + 'nose', + 'numpy', + 'stsci.tools', + ], + package_dir = { + '': 'lib', + }, + packages = find_packages('lib'), + package_data = { + 'stwcs/gui': ['*.help'], + 'stwcs/gui/pars': ['*'], + 'stwcs/gui/htmlhelp': ['*'], + }, ) -- cgit