-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathsetup.py
49 lines (39 loc) · 1.03 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
#!/usr/bin/env python
# Copyright (c) 2019-2020, Eduardo Rodrigues and Henry Schreiner.
#
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
# or https://github.com/scikit-hep/hist for details.
from __future__ import annotations
from setuptools import setup
extras_require = {
"mpl": [
"matplotlib >=3.0",
"mplhep >=0.2.16",
]
}
extras_require["plot"] = [
*extras_require["mpl"],
"scipy >=1.4",
"iminuit >=2",
]
extras_require["test"] = [
"pytest >=6",
"pytest-mpl >=0.12",
]
extras_require["dev"] = [*extras_require["test"], *extras_require["plot"], "ipykernel"]
extras_require["docs"] = [
*extras_require["plot"],
"ipython_genutils",
"nbsphinx",
"Sphinx >=3.0.0",
"sphinx_copybutton",
"sphinx_rtd_theme >=0.5.0",
"sphinx_book_theme >=0.0.38",
"ipython",
"ipykernel",
"pillow",
"uncertainties>=3",
"myst_parser>=0.14",
]
extras_require["all"] = sorted(set(sum(extras_require.values(), [])))
setup(extras_require=extras_require)