forked from Keck-DataReductionPipelines/KCWI_DRP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (65 loc) · 2.27 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
# !usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under a 3-clause BSD license.
from setuptools import setup, find_packages
# Get some values from the setup.cfg
try:
from ConfigParser import ConfigParser
except ImportError:
from configparser import ConfigParser
conf = ConfigParser()
conf.read(['setup.cfg'])
metadata = dict(conf.items("metadata"))
options = dict(conf.items("options"))
NAME = 'kcwidrp'
VERSION = '1.0.2'
RELEASE = 'dev' not in VERSION
AUTHOR = metadata["author"]
AUTHOR_EMAIL = metadata["author_email"]
LICENSE = metadata["license"]
DESCRIPTION = metadata["description"]
# scripts = [fname for fname in glob.glob(os.path.join('scripts', '*'))
# if os.path.basename(fname) != 'README.rst']
scripts = []
# Define entry points for command-line scripts
entry_points = {
'console_scripts': [
"reduce_kcwi = kcwidrp.scripts.reduce_kcwi:main",
"kcwi_masksky_ds9 = kcwidrp.scripts.kcwi_masksky_ds9:main",
"smart_reduce_kcwi = kcwidrp.scripts.smart_reduce_kcwi:main",
"start_kcwi_rti = kcwidrp.scripts.kcwi_rti:main"
]}
setup(name=NAME,
provides=NAME,
version=VERSION,
license=LICENSE,
description=DESCRIPTION,
long_description=open('README.rst').read(),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
packages=find_packages(),
package_data={'kcwidrp': ['configs/*.cfg', 'data/*',
'data/extin/*', 'data/stds/*']},
scripts=scripts,
entry_points=entry_points,
install_requires=['scikit-image~=0.16.2',
'astropy~=4.0',
'ccdproc~=2.2.0',
'numpy~=1.20',
'scipy~=1.4.1',
'bokeh~=2.0.0',
'psutil~=5.7.0',
'pytest~=5.4.1',
# 'requests~=2.23.0',
'pandas~=1.0.3',
'matplotlib~=3.1.3',
'setuptools~=46.1.1',
'ref_index~=1.0',
'pyregion~=2.0',
'selenium',
# 'geckodriver',
'phantomjs',
'keckdrpframework'],
python_requires="~=3.7"
)