summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-02-08 07:10:23 -0700
committerNed Batchelder <ned@nedbatchelder.com>2023-02-08 07:10:23 -0700
commitc07fee3b9273748f00d238233f7b56a1553a2af3 (patch)
tree6480310baafcad2f00c02bf5dd6cfc71501be71f
parenta4cd6a01f766359fbe8ff159e0ed87e03e8023ed (diff)
downloadpython-coveragepy-git-c07fee3b9273748f00d238233f7b56a1553a2af3.tar.gz
build: an env var to allow no-network tox runs
(for airplanes)
-rw-r--r--tox.ini6
1 files changed, 4 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index a323d136..70b56a3f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -30,13 +30,15 @@ setenv =
# so override any local setting.
PYTHONPYCACHEPREFIX=
+# $set_env.py: COVERAGE_PIP_ARGS - Extra arguments for `pip install`
+# `--no-build-isolation` will let tox work with no network.
commands =
# Create tests/zipmods.zip
python igor.py zip_mods
# Build the C extension and test with the CTracer
python setup.py --quiet build_ext --inplace
- python -m pip install -q -e .
+ python -m pip install {env:COVERAGE_PIP_ARGS} -q -e .
python igor.py test_with_tracer c {posargs}
# Remove the C extension so that we can test the PyTracer
@@ -84,7 +86,7 @@ commands =
python -m pylint --notes= {env:LINTABLE}
check-manifest --ignore 'doc/sample_html/*,.treerc'
# If 'build -q' becomes a thing (https://github.com/pypa/build/issues/188),
- # this can be simplifed:
+ # this can be simplified:
python igor.py quietly "python -m build"
twine check dist/*