-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (40 loc) · 1.36 KB
/
setup.py
File metadata and controls
45 lines (40 loc) · 1.36 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
#!/usr/bin/env python
import sys
from setuptools import setup
# To use a consistent encoding
from codecs import open
import os
from os import path
# 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/k2pix*")
sys.exit()
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
entry_points = {'console_scripts': ['k2pix = k2pix.main:k2pix']}
setup(
name='k2pix',
packages=['k2pix'],
version='0.1',
description="Overlaying a Sky View survey image's contours onto a K2 pixel stamp",
long_description=long_description,
url='https://github.com/gully/k2-pix',
author='Stephanie Douglas and GitHub contributors',
author_email='',
license='MIT',
entry_points=entry_points,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-cov'],
keywords='astronomy astrophysics',
install_requires=['astroquery', 'numpy', 'matplotlib', 'tqdm', 'astropy', 'imageio']
)