forked from lightkurve/lightkurve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
43 lines (39 loc) · 1.54 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
#!/usr/bin/env python
import os
import sys
from setuptools import setup
# 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/*")
os.system("rm -rf dist/lightkurve*")
sys.exit()
# Load the __version__ variable without importing the package already
exec(open('lightkurve/version.py').read())
setup(name='lightkurve',
version=__version__,
description="A simple and beautiful package for astronomical "
"flux time series analysis in Python.",
long_description=open('README.rst').read(),
author='KeplerGO',
author_email='[email protected]',
license='MIT',
package_dir={
'lightkurve': 'lightkurve',
'lightkurve.prf': 'lightkurve/prf'},
packages=['lightkurve', 'lightkurve.prf'],
install_requires=['numpy>=1.11', 'astropy>=1.3', 'scipy>=0.19.0',
'matplotlib>=1.5.3', 'tqdm', 'oktopus', 'bs4',
'requests', 'astroquery>=0.3.7', 'pandas'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-cov', 'pytest-remotedata'],
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
],
)