@@ -12,15 +12,23 @@ minversion = 3.14.0
12
12
deps =
13
13
-rrequirements/tests.in
14
14
commands_pre =
15
- {envpython} -m \
15
+ {envpython} \
16
+ {[python-cli-options]byteerrors} \
17
+ {[python-cli-options]isolate} \
18
+ -m \
16
19
OpenSSL.debug
17
20
commands =
18
- {envpython} -m \
21
+ {envpython} \
22
+ {[python-cli-options]byteerrors} \
23
+ {[python-cli-options]isolate} \
24
+ -m \
19
25
pytest \
20
26
{tty:--color =yes} \
21
27
{posargs:}
22
28
install_command =
23
29
{envpython} \
30
+ {[python-cli-options]byteerrors} \
31
+ {[python-cli-options]isolate} \
24
32
{toxinidir}/bin/pip-wrapper \
25
33
' {envname}' \
26
34
' {toxinidir}/requirements/' \
@@ -48,6 +56,14 @@ setenv =
48
56
WEBTEST_INTERACTIVE =false
49
57
50
58
59
+ [python-cli-options]
60
+ byteerrors = -bb
61
+ bytewarnings = -b
62
+ # isolate = -I
63
+ # FIXME: Python 2 shim. Is this equivalent to the above?
64
+ isolate = -E -s
65
+
66
+
51
67
[dists]
52
68
setenv =
53
69
PIP_CONSTRAINT = {toxinidir}/requirements/dist-build-constraints.txt
@@ -71,7 +87,10 @@ commands =
71
87
# FIXME: instead of `{toxworkdir}/.tmp` that was added in tox v3.16.1.
72
88
# NOTE: The last tox supporting Python 3.4 is 3.14.0
73
89
# -d "{temp_dir}/.doctrees" \
74
- {envpython} -m sphinx \
90
+ {envpython} \
91
+ {[python-cli-options]byteerrors} \
92
+ {[python-cli-options]isolate} \
93
+ -m sphinx \
75
94
-j auto \
76
95
-b html \
77
96
{tty:--color} \
@@ -83,7 +102,10 @@ commands =
83
102
" {envdir}/docs_out"
84
103
85
104
# Print out the output docs dir and a way to serve html:
86
- -{envpython} -c\
105
+ -{envpython} \
106
+ {[python-cli-options]byteerrors} \
107
+ {[python-cli-options]isolate} \
108
+ -c\
87
109
' import pathlib;\
88
110
docs_dir = pathlib.Path(r"{envdir}") / "docs_out";\
89
111
index_file = docs_dir / "index.html";\
@@ -106,8 +128,11 @@ commands =
106
128
-git fetch --unshallow
107
129
-git fetch --tags
108
130
109
- # Spellcheck docs site:
110
- python -m sphinx \
131
+ # Doctest docs site:
132
+ {envpython} \
133
+ {[python-cli-options]byteerrors} \
134
+ {[python-cli-options]isolate} \
135
+ -m sphinx \
111
136
-j auto \
112
137
-a -n -W \
113
138
--keep-going \
@@ -129,8 +154,11 @@ commands =
129
154
-git fetch --unshallow
130
155
-git fetch --tags
131
156
132
- # Spellcheck docs site:
133
- python -m sphinx \
157
+ # Linkcheck docs site:
158
+ {envpython} \
159
+ {[python-cli-options]byteerrors} \
160
+ {[python-cli-options]isolate} \
161
+ -m sphinx \
134
162
-j auto \
135
163
-a -n -W \
136
164
--keep-going \
@@ -153,7 +181,10 @@ commands =
153
181
-git fetch --tags
154
182
155
183
# Spellcheck docs site:
156
- python -m sphinx \
184
+ {envpython} \
185
+ {[python-cli-options]byteerrors} \
186
+ {[python-cli-options]isolate} \
187
+ -m sphinx \
157
188
-j auto \
158
189
-a -n -W \
159
190
--keep-going \
@@ -179,8 +210,14 @@ deps =
179
210
usedevelop = False
180
211
commands_pre =
181
212
commands =
182
- python -m twine check .tox/dist/*
183
- python -m setuptools_scm ls
213
+ {envpython} \
214
+ {[python-cli-options]byteerrors} \
215
+ {[python-cli-options]isolate} \
216
+ -m twine check .tox/dist/*
217
+ {envpython} \
218
+ {[python-cli-options]byteerrors} \
219
+ {[python-cli-options]isolate} \
220
+ -m setuptools_scm ls
184
221
185
222
186
223
[testenv:cleanup-dists]
@@ -193,7 +230,10 @@ setenv =
193
230
{[dists]setenv}
194
231
commands_pre =
195
232
commands =
196
- {envpython} -c \
233
+ {envpython} \
234
+ {[python-cli-options]byteerrors} \
235
+ {[python-cli-options]isolate} \
236
+ -c \
197
237
' import os, shutil, sys; dists_dir = os.getenv("PEP517_OUT_DIR"); shutil.rmtree(dists_dir, ignore_errors=True); sys.exit(os.path.exists(dists_dir))'
198
238
199
239
@@ -211,6 +251,8 @@ platform = darwin|linux
211
251
install_command =
212
252
env PIP_CONSTRAINT = \
213
253
{envpython} \
254
+ {[python-cli-options]byteerrors} \
255
+ {[python-cli-options]isolate} \
214
256
{toxinidir}/bin/pip-wrapper \
215
257
' {envname}' \
216
258
' {toxinidir}/requirements/' \
@@ -231,7 +273,10 @@ commands =
231
273
# if no format arguments are passed. This makes sure that
232
274
# wheels are not dependent on the Git repo or anything
233
275
# external what may be missing from sdist.
234
- {envpython} -m build \
276
+ {envpython} \
277
+ {[python-cli-options]byteerrors} \
278
+ {[python-cli-options]isolate} \
279
+ -m build \
235
280
--outdir ' {env:PEP517_OUT_DIR}/' \
236
281
{posargs:{env:PEP517_BUILD_ARGS:}} \
237
282
' {toxinidir}'
@@ -251,7 +296,10 @@ commands_pre =
251
296
setenv =
252
297
{[dists]setenv}
253
298
commands =
254
- {envpython} -m twine check \
299
+ {envpython} \
300
+ {[python-cli-options]byteerrors} \
301
+ {[python-cli-options]isolate}
302
+ -m twine check \
255
303
--strict \
256
304
{env:PEP517_OUT_DIR}/*
257
305
@@ -267,6 +315,13 @@ setenv =
267
315
TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
268
316
commands_pre =
269
317
commands =
270
- python -c " import path; path.Path('dist').rmtree_p()"
271
- python -m pep517.build .
272
- python -m twine upload dist/*
318
+ {envpython} \
319
+ {[python-cli-options]byteerrors} \
320
+ {[python-cli-options]isolate} \
321
+ -c " import path; path.Path('dist').rmtree_p()"
322
+ {envpython} \
323
+ {[python-cli-options]byteerrors} \
324
+ {[python-cli-options]isolate} -m pep517.build .
325
+ {envpython} \
326
+ {[python-cli-options]byteerrors} \
327
+ {[python-cli-options]isolate} -m twine upload dist/*
0 commit comments