forked from mwcraig/reducer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (52 loc) · 1.81 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
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
try:
from jupyterpip import cmdclass
except:
import pip
import importlib
pip.main(['install', 'jupyter-pip'])
cmdclass = importlib.import_module('jupyterpip').cmdclass
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
INSTALL_REQUIRES = ['astropy>=1.0', 'numpy', 'scipy', 'pillow',
'ipython >3.0', 'msumastro>=0.8', 'ccdproc>=0.3',
'matplotlib', 'jupyter-pip']
setup(
name='reducer',
version='0.2',
description='Process FITS files',
url='http://reducer.readthedocs.org',
long_description=(open('README.rst').read()),
license='BSD 3-clause',
author='Matt Craig',
author_email='mcraig@mnstate.edu',
packages=find_packages(exclude=['tests*']),
include_package_data=True,
install_requires=INSTALL_REQUIRES,
extras_require={
'docs': ['numpydoc', 'sphinx-argparse', 'sphinx_rtd_theme'],
},
tests_require=['pytest>1.4'] + INSTALL_REQUIRES,
cmdclass=cmdclass('accordion_replacement'), #{'test': PyTest, ''},
entry_points={
'console_scripts': [
('reducer = '
'reducer:main')
]
},
classifiers=['Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Astronomy'],
)