Skip to content

Commit c07fee3

Browse files
committed
build: an env var to allow no-network tox runs
(for airplanes)
1 parent a4cd6a0 commit c07fee3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tox.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ setenv =
3030
# so override any local setting.
3131
PYTHONPYCACHEPREFIX=
3232

33+
# $set_env.py: COVERAGE_PIP_ARGS - Extra arguments for `pip install`
34+
# `--no-build-isolation` will let tox work with no network.
3335
commands =
3436
# Create tests/zipmods.zip
3537
python igor.py zip_mods
3638

3739
# Build the C extension and test with the CTracer
3840
python setup.py --quiet build_ext --inplace
39-
python -m pip install -q -e .
41+
python -m pip install {env:COVERAGE_PIP_ARGS} -q -e .
4042
python igor.py test_with_tracer c {posargs}
4143

4244
# Remove the C extension so that we can test the PyTracer
@@ -84,7 +86,7 @@ commands =
8486
python -m pylint --notes= {env:LINTABLE}
8587
check-manifest --ignore 'doc/sample_html/*,.treerc'
8688
# If 'build -q' becomes a thing (https://github.com/pypa/build/issues/188),
87-
# this can be simplifed:
89+
# this can be simplified:
8890
python igor.py quietly "python -m build"
8991
twine check dist/*
9092

0 commit comments

Comments
 (0)