forked from timothydmorton/transit-fitting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (41 loc) · 1.26 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
from setuptools import setup, find_packages
import os,sys
def readme():
with open('README.md') as f:
return f.read()
import sys
if sys.version_info[0] < 3:
import __builtin__ as builtins
else:
import builtins
builtins.__TRANSITFIT_SETUP__ = True
import transitfit
version = transitfit.__version__
# Publish the library to PyPI.
if "publish" in sys.argv[-1]:
os.system("python setup.py sdist upload")
sys.exit()
# Push a new tag to GitHub.
if "tag" in sys.argv:
os.system("git tag -a {0} -m 'version {0}'".format(version))
os.system("git push --tags")
sys.exit()
setup(name = "transitfit",
version = version,
description = "Pythonic fitting of transits.",
long_description = readme(),
author = "Timothy D. Morton",
author_email = "tim.morton@gmail.com",
url = "https://github.com/timothydmorton/transit-fitting",
packages = find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Astronomy'
],
install_requires=['pandas>=0.14','emcee>=2',
'kplr', 'transit', 'triangle_plot'],
zip_safe=False
)