Skip to content

Commit 04d000b

Browse files
committed
tox cache
1 parent 699b822 commit 04d000b

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

eng/tox/tox.ini

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,9 @@
1111
# - TOX_PIP_IMPL=pip (default) - Uses standard pip for package installation
1212
# - TOX_PIP_IMPL=uv - Uses uv pip for faster package installation
1313
#
14-
# CACHE CONFIGURATION:
15-
# You can also control caching behavior with TOX_CACHE_OPTION:
16-
# - For standard pip (default): TOX_CACHE_OPTION="--cache-dir path/to/cache"
17-
# - For uv: TOX_CACHE_OPTION="--cache-dir path/to/cache"
18-
# - To disable cache: TOX_CACHE_OPTION=""
19-
#
2014
# Example usage:
2115
# tox -e pylint # Use standard pip (default)
2216
# TOX_PIP_IMPL=pip tox -e pylint # Use standard pip explicitly
23-
# TOX_PIP_IMPL=pip TOX_CACHE_OPTION="" tox -e pylint # Use standard pip without cache
2417
# TOX_PIP_IMPL=uv tox -e pylint # Use uv for faster installation
2518

2619
[tox]
@@ -35,8 +28,6 @@ envlist = whl,sdist
3528
# Set TOX_PIP_IMPL=uv pip to use uv pip, or TOX_PIP_IMPL=pip (default) to use standard pip
3629
pip_impl = {env:TOX_PIP_IMPL:pip}
3730
pip_command = {[tox]pip_impl}
38-
# Cache options: uv supports --cache-dir, standard pip uses --cache-dir differently
39-
cache_option = {env:TOX_CACHE_OPTION:--cache-dir {tox_root}/../.tox_pip_cache_{envname}}
4031

4132

4233
[tools]
@@ -94,7 +85,7 @@ setenv =
9485
VIRTUALENV_SETUPTOOLS=75.3.2
9586
PIP_EXTRA_INDEX_URL=https://pypi.python.org/simple
9687
deps = {[base]deps}
97-
install_command = {[tox]pip_command} install {opts} {packages} {[tox]cache_option}
88+
install_command = {[tox]pip_command} install {opts} {packages} --cache-dir {tox_root}/../.tox_pip_cache_{envname}
9889
commands =
9990
python {repository_root}/eng/tox/create_package_and_install.py -d {envtmpdir} -p {tox_root} -w {envtmpdir}
10091
pytest {[pytest]default_args} {posargs} {tox_root}

0 commit comments

Comments
 (0)