Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (49 loc) · 1.61 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (49 loc) · 1.61 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
#!/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(),
long_description_content_type="text/markdown",
author="Fergal Mullally, Tom Barclay, Geert Barentsen",
author_email="keplergo@mail.arc.nasa.gov",
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",
],
)