-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
54 lines (49 loc) · 1.08 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
from setuptools import setup, find_packages
import os
gammapy = "gammapy~=1.0"
extras_require = {
"docs": [
"sphinx",
"sphinx_rtd_theme",
"sphinx_automodapi",
"numpydoc",
"nbsphinx",
"uproot",
"awkward1",
"notebook",
"tables",
"towncrier",
gammapy,
],
"tests": [
"pytest",
"pytest-cov",
gammapy,
"ogadf-schema~=0.2.3",
"uproot~=4.0",
"awkward~=1.0",
],
"gammapy": [
gammapy,
],
}
extras_require["dev"] = extras_require["tests"] + [
"setuptools_scm",
]
all_extras = set()
for extra in extras_require.values():
all_extras.update(extra)
extras_require["all"] = list(all_extras)
setup(
use_scm_version={"write_to": os.path.join("pyirf", "_version.py")},
packages=find_packages(exclude=["pyirf._dev_version"]),
install_requires=[
"astropy>=5.3,<7.0.0a0",
"numpy>=1.21",
"scipy",
"tqdm",
"packaging",
],
include_package_data=True,
extras_require=extras_require,
)