-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
76 lines (62 loc) · 1.91 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env python3
"""Plotypus: variable star light curve analysis and plotting library.
Plotypus is a library for the analysis of the light curves of variable
stars.
Plotypus is built on top of numpy, matplotlib, and scikit-learn.
"""
DOCLINES = __doc__.split("\n")
CLASSIFIERS = """\
Programming Language :: Python
Programming Language :: Python :: 3
Intended Audience :: Developers
Intended Audience :: Science/Research
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Operating System :: OS Independent
Topic :: Scientific/Engineering :: Astronomy
Topic :: Software Development :: Libraries :: Python Modules
"""
MAJOR = 0
MINOR = 2
MICRO = 6
ISRELEASED = False
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
def get_version_info():
FULLVERSION = VERSION
if not ISRELEASED:
FULLVERSION += '-dev'
return FULLVERSION
__version__ = get_version_info()
def setup_package():
metadata = dict(
name='plotypus',
url='https://github.com/astroswego/plotypus',
description=DOCLINES[0],
long_description="\n".join(DOCLINES[2:]),
version=__version__,
package_dir={'': 'src'},
packages=['plotypus', 'plotypus.resources'],
package_data={'plotypus': ['resources/matplotlibrc']},
entry_points={
'console_scripts': [
'plotypus = plotypus.plotypus:main'
]
},
keywords=[
'astronomy',
'light curve',
'stellar pulsation',
'variable star'
],
classifiers=[f for f in CLASSIFIERS.split('\n') if f],
install_requires=[
'matplotlib>=1.3.0',
'numpy>=1.6.0',
'pandas>=0.13.0',
'scikit-learn>=0.14.0',
'scipy>=0.9.0'
]
)
from setuptools import setup
setup(**metadata)
if __name__ == '__main__':
setup_package()