From 2e4936cd4922d16f56f0937cd67f518a9aeec981 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 13 Oct 2024 01:26:25 +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: I2cef53e151b9da265989c55e165b7521af32d44d --- tox.ini | 3 --- 1 file changed, 3 deletions(-) diff --git a/tox.ini b/tox.ini index cd371c257..3f8f8e0ba 100644 --- a/tox.ini +++ b/tox.ini @@ -77,7 +77,6 @@ setenv = PYTHONHASHSEED=0 commands = {posargs:} [testenv:debug] -envdir = {toxworkdir}/venv commands = oslo_debug_helper -t ironic_python_agent/tests/unit {posargs} [testenv:docs] @@ -126,13 +125,11 @@ import_exceptions = ironic.openstack.common.gettextutils._,testtools.matchers [testenv:checkconfig] sitepackages = False -envdir = {toxworkdir}/venv commands = {toxinidir}/tools/config/check_uptodate.sh [testenv:genconfig] sitepackages = False -envdir = {toxworkdir}/venv allowlist_externals = mkdir commands = mkdir -p etc/ironic_python_agent