forked from panoptes/POCS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
118 lines (110 loc) · 3.32 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/usr/bin/env python
# Licensed under an MIT style license - see LICENSE.txt
from setuptools import setup, find_namespace_packages
import itertools
from configparser import ConfigParser
from distutils.command.build_py import build_py
from pocs.version import __version__
# Get some values from the setup.cfg
conf = ConfigParser()
conf.read(['setup.cfg'])
metadata = dict(conf.items('metadata'))
AUTHOR = metadata.get('author', '')
AUTHOR_EMAIL = metadata.get('author_email', '')
DESCRIPTION = metadata.get('description', '')
KEYWORDS = metadata.get('keywords', 'Project PANOPTES')
LICENSE = metadata.get('license', 'unknown')
LONG_DESCRIPTION = metadata.get('long_description', '')
PACKAGENAME = metadata.get('package_name', 'packagename')
URL = metadata.get('url', 'http://projectpanoptes.org')
modules = {
'google': [
'gcloud',
'google-cloud-storage',
],
'mongo': [
'pymongo>=3.2.2',
],
'dev': [
'jupyter-console',
'jupyterlab',
],
'required': [
'astroplan>=0.6',
'astropy>=4.0.0',
'dateparser',
'matplotlib',
'numpy',
'pandas',
'panoptes-utils',
'photutils',
'pyserial>=3.1.1',
'python_dateutil',
'PyYAML>=5.1',
'pyzmq<18.0.0',
'readline',
'requests',
'scipy',
'transitions',
],
'social': [
'tweepy',
],
'testing': [
'codecov',
'coverage',
'coveralls',
'mocket',
'pycodestyle==2.3.1',
'pytest>=3.6',
'pytest-cov',
'pytest-remotedata>=0.3.1'
],
}
setup(name=PACKAGENAME,
version=__version__,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
url=URL,
keywords=KEYWORDS,
python_requires='>=3.6',
setup_requires=['pytest-runner'],
tests_require=modules['testing'],
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[dev,test]
install_requires=modules['required'],
scripts=[
'bin/pocs_shell',
'bin/peas_shell',
],
extras_require={
'google': modules['google'],
'mongo': modules['mongo'],
'dev': modules['dev'],
'social': modules['social'],
'testing': modules['testing'],
'all': list(set(itertools.chain.from_iterable(modules.values())))
},
packages=find_namespace_packages(exclude=['tests', 'test_*']),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Programming Language :: C',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics',
],
cmdclass={'build_py': build_py}
)