2
2
requires =
3
3
tox>=4
4
4
envlist =
5
- py38{,- min,- full}
5
+ py38-{none, min,full}
6
6
py3{9,10}-full
7
- py3{11,12}{,- pre,- full}
7
+ py3{11,12}-{none, pre,full}
8
8
doctest
9
9
style
10
10
typecheck
@@ -20,6 +20,7 @@ python =
20
20
21
21
[gh-actions:env]
22
22
DEPENDS =
23
+ none: none
23
24
pre: pre
24
25
full: full
25
26
min: min
@@ -32,6 +33,7 @@ CHECK =
32
33
33
34
[testenv]
34
35
description = Typical pytest invocation with coverage
36
+ labels = test
35
37
install_command =
36
38
python -I -m pip install \
37
39
--only-binary numpy,scipy,h5py
@@ -88,13 +90,15 @@ commands =
88
90
89
91
[testenv:install]
90
92
description = " Install and verify imports succeed"
93
+ labels = test
91
94
deps =
92
95
install_command = python -I -m pip install {opts} {packages}
93
96
commands =
94
97
python -c " import nibabel; print(nibabel.__version__)"
95
98
96
99
[testenv:docs]
97
100
description = Typical pytest invocation with coverage
101
+ labels = docs
98
102
allowlist_externals = make
99
103
deps =
100
104
sphinx
@@ -107,6 +111,7 @@ commands =
107
111
108
112
[testenv:doctest]
109
113
description = Typical pytest invocation with coverage
114
+ labels = docs
110
115
allowlist_externals = make
111
116
depends = docs
112
117
deps =
@@ -121,6 +126,7 @@ commands =
121
126
122
127
[testenv:style]
123
128
description = Check our style guide
129
+ labels = check
124
130
deps =
125
131
flake8
126
132
blue
@@ -133,6 +139,7 @@ commands =
133
139
134
140
[testenv:style-fix]
135
141
description = Auto-apply style guide to the extent possible
142
+ labels = pre-release
136
143
deps =
137
144
blue
138
145
isort[colors]
@@ -143,6 +150,7 @@ commands =
143
150
144
151
[testenv:typecheck]
145
152
description = Check type consistency
153
+ labels = check
146
154
deps =
147
155
mypy
148
156
pytest
@@ -157,6 +165,9 @@ commands =
157
165
mypy nibabel
158
166
159
167
[testenv:build{,-strict}]
168
+ labels =
169
+ check
170
+ pre-release
160
171
deps =
161
172
build
162
173
twine
@@ -169,6 +180,7 @@ commands =
169
180
170
181
[testenv:publish]
171
182
depends = build
183
+ labels = release
172
184
deps =
173
185
twine
174
186
skip_install = true
@@ -177,12 +189,7 @@ commands =
177
189
178
190
[testenv:zenodo]
179
191
deps = gitpython
192
+ labels = pre-release
180
193
skip_install = true
181
194
commands =
182
195
python tools/prep_zenodo.py
183
-
184
- [testenv:pre-release]
185
- depends =
186
- zenodo
187
- style-fix
188
- build
0 commit comments