-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
76 lines (66 loc) · 2.02 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
#!/usr/bin/env python
"""
Script to build the jwst_magic package
Authors
-------
Lauren Chambers
Shannon Osborne
Use
---
To install in developer mode:
::
pip install -e .
while inside the root directory (jwst_magic)
"""
from __future__ import (absolute_import, division,
print_function, unicode_literals)
from setuptools import setup, find_packages
import socket
VERSION = '5.1.0'
INSTALL_REQUIRES = [
'numpy',
'astropy',
'ipython',
'fgscountrate',
'matplotlib>=3.5.1',
'notebook',
'pysiaf>=0.12.0',
'pyyaml',
'requests',
'pytest',
'photutils',
'scipy',
'pytest-qt',
'pandas',
'jwst',
]
# Determine if PyQt5 needs to be included in the install_requires
try:
import PyQt5
except ImportError:
INSTALL_REQUIRES.append('PyQt5')
# Only install pytest-qt if not on SOGS (not available for install)
if "sogs" not in socket.gethostname():
INSTALL_REQUIRES.append('pytest-qt')
setup(name='jwst_magic',
version=VERSION,
description='Multi-Application Guiding Interface for Commissioning (MAGIC)',
long_description='Interactive tools to simulate fine guidance sensor data '
'and facilitate guiding operations during wavefront '
'commissioning of JWST.',
classifiers=[
'License :: OSI Approved :: BSD License',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Scientific/Engineering :: Astronomy'
],
keywords='jwst fgs',
url='https://github.com/spacetelescope/jwst_magic',
author='Keira Brooks, Lauren Chambers, Shannon Osborne, Sherie Holfeltz, Kathryn St. Laurent',
license='BSD',
packages=find_packages(), # How will this work with subpackages?
install_requires=INSTALL_REQUIRES,
include_package_data=True,
zip_safe=False)