-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
62 lines (55 loc) · 2.01 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
#!/usr/bin/env python
import sys
import os
import setuptools
from numpy.distutils.core import setup, Extension
if "publish" in sys.argv[-1]:
os.system("python setup.py sdist")
os.system("twine upload dist/*")
os.system("rm -rf dist/*")
sys.exit()
# Define the Fortran extension.
tvguide = Extension("tvguide._tvguide",
["tvguide/tvguide_minimal.f",
"tvguide/sys.f",
"tvguide/eclip.f",
"tvguide/cartesian.f",
"tvguide/getlun.f",
"tvguide/julian.f",
"tvguide/lentrim.f",
"tvguide/nutate.f",
"tvguide/upcase.f",
"tvguide/tvguide.inc"])
# Load the __version__ variable without importing the package
exec(open('tvguide/version.py').read())
# Command-line tools
# we use scripts because entry_points doesn't seem to work
# with numpy.distutils
scripts = ['scripts/tvguide',
'scripts/tvguide-csv',
]
setup(name='tvguide',
version=__version__,
description="Determine whether targets are observable TESS.",
# long_description=long_description,
author='Tom Barclay',
author_email='tom@tombarclay.com',
license='MIT',
url='https://github.com/tessgi/tvguide',
packages=['tvguide'],
ext_modules=[tvguide, ],
# data_files=[('kpub/templates', ['kpub/templates/template.md',
# 'kpub/templates/template-overview.md'])],
# install_requires=["jinja2",
# "six",
# "astropy",
# "ads"],
scripts=scripts,
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy", ],
)