-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
executable file
·83 lines (74 loc) · 2.25 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
import os
import re
from setuptools import find_packages, setup
# read in README
this_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_dir, 'README.md'), 'rb') as f:
long_description = f.read().decode().strip()
# load version
with open("snews/_version.py", "r") as f:
version_file = f.read()
version_match = re.search(r"^version = ['\"]([^'\"]*)['\"]", version_file, re.M)
version = version_match.group(1)
# requirements
install_requires = [
"hop-client >= 0.3",
"hop-plugin-snews",
"jsonschema",
"numpy",
"pymongo",
"python-dotenv",
]
extras_require = {
'dev': [
'autopep8',
'flake8',
'mongomock',
'pytest >= 5.0, < 5.4',
'pytest-console-scripts',
'pytest-cov',
'pytest-mongodb',
'pytest-runner',
'twine',
],
'docs': [
'sphinx',
'sphinx_rtd_theme',
'sphinxcontrib-programoutput'
],
}
setup(
name = 'snews',
version = version,
description = 'An alert application for observing supernovas.',
long_description = long_description,
long_description_content_type = 'text/markdown',
url = 'https://github.com/RiceAstroparticleLab/hop-SNalert-app.git',
author = 'Skylar(Yiyang) Xu, Patrick Godwin, Bryce Cousins',
license = 'BSD 3-Clause',
packages = find_packages(),
entry_points = {
'console_scripts': [
'snews = snews.__main__:main',
],
},
python_requires = '>=3.6.*',
install_requires = install_requires,
extras_require = extras_require,
classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Natural Language :: English',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'License :: OSI Approved :: BSD License',
],
)