-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathsetup.py
executable file
·45 lines (39 loc) · 1.57 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
from setuptools import setup
from os import path
# Pull TLS version from single source of truth file
try: # Python 2
execfile(path.join("transitleastsquares", 'version.py'))
except: # Python 3
exec(open(path.join("transitleastsquares", 'version.py')).read())
# If Python3: Add "README.md" to setup.
# Useful for PyPI (pip install transitleastsquares). Irrelevant for users using Python2
try:
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
except:
long_description = ' '
setup(name='transitleastsquares',
version=TLS_VERSIONING,
description='An optimized transit-fitting algorithm to search for periodic transits of small planets',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/hippke/tls',
author='Michael Hippke',
author_email='[email protected]',
license='MIT',
packages=['transitleastsquares'],
include_package_data=True,
package_data={'': ['*.csv', '*.cfg']},
entry_points = {'console_scripts': ['transitleastsquares=transitleastsquares.command_line:main'],},
install_requires=[
'astropy<3;python_version<"3"', # astropy 3 doesn't install in Python 2, but is req for astroquery
'astroquery>=0.3.9', # earlier has bug for "from astroquery.mast import Catalogs"
'numpy',
'numba',
'tqdm',
'batman-package',
'argparse; python_version < "2.7"',
'configparser'
]
)