-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
117 lines (105 loc) · 3.28 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/usr/bin/env python
"""
Setup script for gemini_python
In this package:
astrodata
gemini_instruments
geminidr
gempy
recipe_system
Usage: pip install [-e] .
"""
import os
from setuptools import setup, find_packages, Extension
try:
from Cython.Build import cythonize
except ImportError:
use_cython = False
else:
use_cython = True
VERSION = '3.2.0'
PACKAGENAME = 'dragons'
PACKAGES = find_packages()
# SCRIPTS
SCRIPTS = [
os.path.join('recipe_system', 'scripts', name)
for name in ('adcc', 'caldb', 'reduce', 'superclean', 'provenance')
]
SCRIPTS += [
os.path.join('gempy', 'scripts', name)
for name in ('dataselect', 'dgsplot', 'fwhm_histogram', 'gmosn_fix_headers',
'gmoss_fix_HAM_BPMs.py', 'gmoss_fix_headers.py',
'pipeline2iraf', 'profile_all_obj', 'psf_plot', 'showrecipes',
'showd', 'showpars', 'typewalk', 'zp_histogram')
]
# EXTENSIONS
suffix = 'pyx' if use_cython else 'c'
EXTENSIONS = [
Extension("gempy.library.cython_utils",
[os.path.join('gempy', 'library', 'cython_utils.' + suffix)])
]
if use_cython:
EXTENSIONS = cythonize(EXTENSIONS)
setup(name='dragons',
version=VERSION,
description='Gemini Data Processing Python Package',
author='Gemini Data Processing Software Group',
author_email='sus_inquiries@gemini.edu',
url='http://www.gemini.edu',
maintainer='Science User Support Department',
license='BSD',
zip_safe=False,
packages=PACKAGES,
include_package_data=True,
scripts=SCRIPTS,
ext_modules=EXTENSIONS,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Gemini Ops',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Operating System :: Linux :: CentOS',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python',
'Topic :: Gemini',
'Topic :: Data Reduction',
'Topic :: Scientific/Engineering :: Astronomy',
],
install_requires=[
'asdf>=2.7,!=2.10.0',
'astropy>=4.3,!=5.3.0',
'astroquery>=0.4',
'astroscrappy>=1.1',
'bokeh>=3.0',
'bottleneck>=1.2',
'future>=0.17',
# 'gemini_calmgr>=1.1', # these need uploading to PyPI first
# 'gemini_obs_db>=1.0',
'gwcs>=0.15',
'holoviews',
'jinja2>=3.0',
'jsonschema>=3.0',
'matplotlib>=3.1',
'numpy>=1.17',
'psutil>=5.6',
'pyerfa>=1.7',
'python-dateutil>=2.5.3',
'requests>=2.22',
'scikit-image>=0.21',
'scipy>=1.3',
'specutils>=1.1',
'sqlalchemy',
],
extras_require={
'all': ['ginga', 'imexam'],
'docs': ['sphinx', 'sphinx_rtd_theme'],
'test': ['pytest', 'pytest_dragons>=1.0.0', 'coverage', 'objgraph'],
},
project_urls={
'Issue Tracker': 'https://github.com/GeminiDRSoftware/DRAGONS',
'Documentation': 'https://dragons.readthedocs.io/',
},
# keywords=['astronomy', 'astrophysics', 'science', 'gemini'],
python_requires='>=3.7',
)