-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
95 lines (83 loc) · 2.5 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
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_cs/_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.8.0",
"jsonschema=4.4.0",
"numpy=1.26.3",
"pymongo=4.6.1",
"python-dotenv=0.19.2",
"pandas=2.2.0",
"slack-sdk=3.26.2",
]
def read_requirements():
with open('doc/requirements.txt') as req:
content = req.read()
requirements = content.split('\n')
return install_requires.append(requirements)
extras_require = {
'dev': [
'autopep8',
'flake8',
'mongomock',
'pytest < 6.3.0',
'pytest-console-scripts',
'pytest-cov',
'pytest-mongodb',
'pytest-runner',
'twine',
],
'docs': [
'sphinx',
'sphinx_rtd_theme',
'sphinxcontrib-programoutput'
],
}
setup(
name='snews_cs',
version=version,
description='An alert application for observing supernovas.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/SNEWS2/SNEWS_Coincidence_System.git',
author='Sebastian Torres-Lara, Melih Kara',
author_email='sebastiantorreslara17@gmail.com, karamel.itu@gmail.com',
license='BSD 3-Clause',
setup_requires=['pbr'],
pbr=True,
packages=find_packages(),
include_package_data=True,
entry_points={
'console_scripts': [
'snews_cs = snews_cs.__main__:main',
],
},
python_requires='>=3.6.*',
install_requires=read_requirements(),
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',
],
)