forked from scikit-hep/cabinetry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (37 loc) · 1.13 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
from setuptools import setup
extras_require = {"contrib": ["uproot>=4.1.5"]} # file writing bug-fixes
extras_require["test"] = sorted(
set(
extras_require["contrib"]
+ [
"pytest",
"pytest-cov>=2.6.1", # no_cover support
"pydocstyle",
"check-manifest",
"flake8",
"flake8-bugbear",
"flake8-import-order",
"flake8-print",
"mypy",
"types-tabulate",
"types-PyYAML",
"typeguard~=2.13", # typing.NamedTuple in Python 3.7, cabinetry#391
"black",
]
)
)
extras_require["pyhf_backends"] = ["pyhf[backends]"]
extras_require["docs"] = sorted(
{
"sphinx!=5.2.0.post0", # broken due to version parsing in RTD theme
"sphinx-click",
"sphinx-copybutton",
"sphinx-jsonschema",
"sphinx-rtd-theme",
}
)
extras_require["develop"] = sorted(
set(extras_require["test"] + extras_require["docs"] + ["pre-commit", "twine"])
)
extras_require["complete"] = sorted(set(sum(extras_require.values(), [])))
setup(extras_require=extras_require)