-
Notifications
You must be signed in to change notification settings - Fork 40
/
setup.py
executable file
·112 lines (105 loc) · 3.89 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
#!/usr/bin/env python
# This sample setup.py can be used as a template for any project using d2to1.
# Simply copy this file and, if desired, delete all the comments. Also remove
# the 'namespace_packages' and 'packages' arguments to setup.py if this project
# does not contain any packages beloning to a namespace package.
# This import statement attempts to import the setup() function from setuptools
# (this replaces the setup() one uses from distutils.core when using plain
# distutils).
#
# If the import fails (the user doesn't have the setuptools package) it then
# uses the ez_setup bootstrap script to install setuptools, then retries the
# import. This is common practice for packages using setuptools.
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
import sys
PY_V = sys.version_info
# The standard setup() call. Notice, however, that most of the arguments
# normally passed to setup() are absent. They will instead be read from the
# setup.cfg file using d2to1.
#
# In order for this to work it is necessary to specify setup_requires=['d2to1']
# If the user does not have d2to1, this will boostrap it. Also require
# stsci.distutils to use any of the common setup_hooks included in
# stsci.distutils (see the setup.cfg for more details).
#
# The next line, which defines namespace_packages and packages is only
# necessary if this projet contains a package belonging to the stsci namespace
# package, such as stsci.distutils or stsci.tools. This is not necessary for
# projects with their own namespace, such as acstools or pyraf.
#
# d2to1=True is required to enable d2to1 and read the remaning project metadata
# from the setup.cfg file.
#
# use_2to3 and zip_safe are common options support by setuptools; these can
# also be placed in the setup.cfg, as will be demonstrated in a future update
# to this sample package.
setup(
name='pandexo.engine',
version='3.0.0',
summary='pandexo transiting exoplanet simulator',
description_file='README.rst',
author='Natasha Batalha at NASA Ames',
author_email='[email protected]',
home_page='https://natashabatalha.github.io/PandExo',
license='GPL',
url='https://github.com/natashabatalha/PandExo',
classifiers=[
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Software Development :: Libraries :: Python Modules'
],
packages=[
'pandexo',
'pandexo.engine',
'pandexo.engine.reference',
'pandexo.engine.static',
'pandexo.engine.static.css',
'pandexo.engine.static.fonts',
'pandexo.engine.static.img',
'pandexo.engine.static.js',
'pandexo.engine.temp',
'pandexo.engine.templates',
'pandexo.engine.utils'
],
package_dir={
'engine': 'pandexo/engine'
},
include_package_data=True,
# package_data = {
# 'engine' : ['templates','*.html'],
# 'engine': ['reference','*.json'],
# 'engine': ['static','css','*'],
# 'engine': ['static','fonts','*'],
# 'engine': ['static','img','*'],
# 'engine': ['static','js','*']
# },
install_requires=[
'pandeia.engine==3.0',
'numpy',
'bokeh==3.0.2',
'tornado',
'pandas',
'joblib',
'photutils',
'astropy',
'pysynphot',
'sqlalchemy',
'astroquery',
'scipy',
'batman-package'
],
entry_points = {
'console_scripts':
['start_pandexo=pandexo.engine.run_online:main']
},
zip_safe=False,
)