-
Notifications
You must be signed in to change notification settings - Fork 85
/
setup.py
82 lines (78 loc) · 2.16 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
from setuptools import setup
extras_require = {
'shellcomplete': ['click_completion'],
'tensorflow': [
'tensorflow~=2.2.0', # TensorFlow minor releases are as volatile as major
'tensorflow-probability~=0.10.0',
],
'torch': ['torch~=1.2'],
'jax': ['jax~=0.2.4', 'jaxlib~=0.1.56'],
'xmlio': ['uproot3~=3.14'], # Future proof against uproot4 API changes
'minuit': ['iminuit~=1.4.3'], # v1.5.0 breaks pyhf for 32b TensorFlow and PyTorch
}
extras_require['backends'] = sorted(
set(
extras_require['tensorflow']
+ extras_require['torch']
+ extras_require['jax']
+ extras_require['minuit']
)
)
extras_require['contrib'] = sorted({'matplotlib', 'requests'})
extras_require['lint'] = sorted({'pyflakes', 'black'})
extras_require['test'] = sorted(
set(
extras_require['backends']
+ extras_require['xmlio']
+ extras_require['contrib']
+ extras_require['shellcomplete']
+ [
'pytest~=6.0',
'pytest-cov>=2.5.1',
'pytest-mock',
'pytest-benchmark[histogram]',
'pytest-console-scripts',
'pytest-mpl',
'pydocstyle',
'coverage>=4.0', # coveralls
'papermill~=2.0',
'nteract-scrapbook~=0.2',
'jupyter',
'graphviz',
'jsonpatch',
]
)
)
extras_require['docs'] = sorted(
{
'sphinx>=3.1.2',
'sphinxcontrib-bibtex',
'sphinx-click',
'sphinx_rtd_theme',
'nbsphinx',
'ipywidgets',
'sphinx-issues',
'sphinx-copybutton>0.2.9',
}
)
extras_require['develop'] = sorted(
set(
extras_require['docs']
+ extras_require['lint']
+ extras_require['test']
+ [
'nbdime',
'bump2version',
'ipython',
'pre-commit',
'check-manifest',
'codemetapy>=0.3.4',
'twine',
]
)
)
extras_require['complete'] = sorted(set(sum(extras_require.values(), [])))
setup(
extras_require=extras_require,
use_scm_version=lambda: {'local_scheme': lambda version: ''},
)