-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
77 lines (68 loc) · 1.92 KB
/
Copy pathsetup.py
File metadata and controls
77 lines (68 loc) · 1.92 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import setup, Command
# Run pre-built py.tests as described at
# https://pytest.org/latest/goodpractises.html#integrating-with-distutils-python-setup-py-test
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
with open('DESCRIPTION.rst') as f:
long_description = f.read()
requirements = [
'numpy>=1.9.2',
'astropy>=1.0.1',
'matplotlib>=1.5.1',
'scipy>=0.15.1',
# 'bossdata>=0.2.9dev',
# 'specsim>=0.2.dev283',
# 'h5py>=2.5.0',
]
test_requirements = [
# TODO: put package test requirements here
]
setup(
name='tpcorr',
version='0.1.1',
description='Throughput correction code for offset fibers in SDSS.',
long_description=long_description,
author='tpcorr developers',
author_email='dmargala@uci.edu',
url='https://github.com/dmargala/tpcorr',
packages=[
'tpcorr',
],
package_dir={'tpcorr':
'tpcorr'},
scripts = [
'bin/tpcorr',
],
#include_package_data=True,
#zip_safe=False,
install_requires=requirements,
license='MIT',
keywords='tpcorr',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Topic :: Scientific/Engineering :: Astronomy',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
cmdclass = {'test': PyTest},
#test_suite='tests',
#tests_require=test_requirements
)