-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (43 loc) · 1.54 KB
/
setup.py
File metadata and controls
48 lines (43 loc) · 1.54 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
#!/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("python setup.py bdist_wheel")
os.system("twine upload dist/*")
os.system("rm -rf dist/cometcurve*")
sys.exit()
# Load the __version__ variable without importing the package already
exec(open('cometcurve/version.py').read())
# DEPENDENCIES
# 1. What are the required dependencies?
with open('requirements.txt') as f:
install_requires = f.read().splitlines()
# 2. What dependencies required to run the unit tests?
tests_require = ['pytest']
setup(name='cometcurve',
version=__version__,
description="A friendly package for Kepler & TESS time series analysis "
"in Python.",
long_description=open('README.rst').read(),
author='Geert Barentsen',
author_email='geert@barentsen.be',
url='https://www.geert.io',
license='MIT',
package_dir={'cometcurve': 'cometcurve'},
packages=['cometcurve'],
install_requires=install_requires,
setup_requires=['pytest-runner'],
tests_require=tests_require,
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",
],
)