-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
77 lines (69 loc) · 2.14 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
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("snax/_version.py", "r") as f:
version_file = f.read()
version_match = re.search(r"^version = ['\"]([^'\"]*)['\"]", version_file, re.M)
version = version_match.group(1)
install_requires = []
def read_requirements():
with open('./requirements.txt') as req:
content = req.read()
requirements = content.split('\n')
return install_requires.append(requirements)
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='snax',
version=version,
description='Multimessenger Astronomy Analysis tools for XENONnT',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/XENONnT/multimessenger/',
author='Melih Kara',
author_email='[email protected]',
license='BSD 3-Clause',
# setup_requires=['pbr'],
# pbr=True,
packages=find_packages(),
include_package_data=True,
python_requires='>=3.7',
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',
],
)