From 65d1a9cbffbed2eaea767a1af92b7100544ab0a9 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 11 Feb 2025 13:30:33 +0900 Subject: [PATCH] tox: Drop envdir tox now always recreates an env although the env is shared using envdir options. ~~~ $ tox -e genpolicy genpolicy: recreate env because env type changed from {'name': 'genconfig', 'type': 'VirtualEnvRunner'} to {'name': 'genpolicy', 'type': 'VirtualEnvRunner'} ~~~ According to the maintainer of tox, this functionality is not intended to be supported. https://github.com/tox-dev/tox/issues/425#issuecomment-1011944293 Change-Id: I1c4a0780f890b679b83c7ff8d87c549cee3cdd58 --- tox.ini | 3 --- 1 file changed, 3 deletions(-) diff --git a/tox.ini b/tox.ini index fa32b8a..4122479 100644 --- a/tox.ini +++ b/tox.ini @@ -7,8 +7,6 @@ usedevelop = True passenv = ZUUL_CACHE_DIR REQUIREMENTS_PIP_LOCATION install_command = pip install {opts} {packages} -setenv = - VIRTUAL_ENV={envdir} deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/test-requirements.txt @@ -49,7 +47,6 @@ commands = sphinx-build -W -b html doc/source doc/build/html [testenv:pdf-docs] basepython = python3 -envdir = {toxworkdir}/docs deps = {[testenv:docs]deps} allowlist_externals = rm