forked from spacetelescope/stwcs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·65 lines (59 loc) · 1.72 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
#!/usr/bin/env python
import sys
from setuptools import setup, find_packages
from configparser import ConfigParser
if sys.version_info < (3, 6):
error = """
STWCS supports Python 3.6 and above.
"""
sys.exit(error)
conf = ConfigParser()
conf.read(['setup.cfg'])
# Get some config values
metadata = dict(conf.items('metadata'))
PACKAGENAME = metadata.get('package_name', 'stwcs')
DESCRIPTION = metadata.get('description', '')
AUTHOR = metadata.get('author', 'STScI')
AUTHOR_EMAIL = metadata.get('author_email', '[email protected]')
DOCS_REQUIRE = ["sphinx",
"sphinx-automodapi",
"sphinx-rtd-theme",
'sphinx-automodapi',
]
TESTS_REQUIRE = ["pytest"]
setup(
name = PACKAGENAME,
author = AUTHOR,
author_email = AUTHOR_EMAIL,
description = DESCRIPTION,
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',
],
use_scm_version=True,
setup_requires=['setuptools_scm'],
python_requires='>=3.6',
install_requires = [
'astropy',
'numpy',
'stsci.tools>=3.6',
'requests',
'lxml'
],
packages = find_packages(),
extras_require={
'docs': DOCS_REQUIRE,
'test': TESTS_REQUIRE,
},
tests_require = TESTS_REQUIRE,
package_data = {
'stwcs/gui': ['*.help'],
'stwcs/gui/pars': ['*'],
'stwcs/gui/htmlhelp': ['*'],
},
)