-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
60 lines (54 loc) · 2.44 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
from setuptools.command.test import test as TestCommand
from distutils.core import setup, Extension
# import numpy.distutils.misc_util
import sys
from setuptools import find_packages
if sys.version_info < (3,0):
sys.exit('Sorry, Python 2 is not supported')
class SALTShakerTest(TestCommand):
def run_tests(self):
import shaker
errno = shaker.test()
sys.exit(errno)
AUTHOR = 'David Jones, Rick Kessler'
AUTHOR_EMAIL = '[email protected]'
VERSION = '1.4'
LICENSE = 'BSD'
URL = 'saltshaker.readthedocs.org'
setup(
name='saltshaker-sn',
version=VERSION,
packages=find_packages('.'),
#packages=['bin','saltshaker','saltshaker.tests','saltshaker.data','saltshaker.simulation',
# 'saltshaker.training','saltshaker.util','saltshaker.initfiles',
# 'saltshaker.validation','saltshaker.pipeline','saltshaker.config'],
cmdclass={'test': SALTShakerTest},
#entry_points={'console_scripts':['trainsalt = saltshaker.scripts.trainsalt']},
scripts=['saltshaker/scripts/trainsalt','saltshaker/scripts/runpipe'],
# scripts=['bin/trainsalt','bin/runpipe','saltshaker/validation/SynPhotPlot.py','saltshaker/validation/ValidateLightcurves.py','saltshaker/validation/ValidateModel.py','saltshaker/validation/ValidateSpectra.py','saltshaker/validation/figs/plotSALTModel.py'],
#package_data={'': ['saltshaker/initfiles/*.dat','saltshaker/initfiles/*.txt','saltshaker/data/kcor/*.fits','saltshaker/config/*conf','saltshaker/scripts/*']},
package_data={'saltshaker.initfiles': ['*.dat','*.txt'],
'saltshaker.data.kcor':['*.fits'],
'saltshaker.config':['*.conf']},
include_package_data=True,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
long_description=open('README.md').read(),
# include_dirs=numpy.distutils.misc_util.get_numpy_include_dirs(),
install_requires=['astropy>=5.3',
'astroquery>=0.4.6',
'Cython>=0.29.35',
'emcee>=3.1.4',
'extinction>=0.4.6',
'f90nml>=0.1',
'iminuit>=2.16.0',
'jax>=0.4.11',
'jaxlib>=0.4.11',
'matplotlib>=3.7.1',
'pandas>=2.0.2',
'pyParz>=1.0.2',
'pytest>=7.3.1',
'sncosmo>=2.10.0',
'tqdm>=4.65.0',
'scipy>=1.10.1'])