-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
50 lines (45 loc) · 1.62 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
#!/usr/bin/env python
import sys
import os
# Prepare and send a new release to PyPI
if "release" in sys.argv[-1]:
os.system("python setup.py sdist")
os.system("twine upload dist/K2fov*")
os.system("rm -rf dist/K2fov*")
sys.exit()
try:
from setuptools import setup
setup
except ImportError:
from distutils.core import setup
setup
# Load the __version__ variable without importing the package
exec(open('K2fov/version.py').read())
# Command-line tools; we're not using "entry_points" for now due to
# a bug in pip which turns all the tools into lowercase
scripts = ['scripts/K2onSilicon',
'scripts/K2findCampaigns',
'scripts/K2findCampaigns-byname',
'scripts/K2findCampaigns-csv',
'scripts/K2inMicrolensRegion']
setup(name='K2fov',
version=__version__,
description='Find which targets are in the field of view of K2',
long_description=open('README.md').read(),
author='Fergal Mullally, Tom Barclay, Geert Barentsen',
author_email='[email protected]',
url='https://github.com/KeplerGO/K2fov',
packages=['K2fov'],
package_data={'K2fov': ['data/*.json']},
install_requires=["numpy>=1.8"],
scripts=scripts,
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
],
)