From 3060e8804f55944b0c1f3e6c8e87ba4dadabcdf9 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 11 Feb 2025 13:32:14 +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: Iff90014cbe2d0c1550005cfb99a9b8fa7bc078bd --- tox.ini | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index b66b6d0..914ef06 100644 --- a/tox.ini +++ b/tox.ini @@ -9,8 +9,8 @@ ignore_basepython_conflict = True [testenv] basepython = python3 usedevelop = True -setenv = VIRTUAL_ENV={envdir} - DJANGO_SETTINGS_MODULE=watcher_dashboard.test.settings +setenv = + DJANGO_SETTINGS_MODULE=watcher_dashboard.test.settings # Note the hash seed is set to 0 until horizon can be tested with a # random hash seed successfully. PYTHONHASHSEED=0 @@ -55,7 +55,6 @@ deps = commands = sphinx-build -W -b html doc/source doc/build/html [testenv:pdf-docs] -envdir = {toxworkdir}/docs deps = {[testenv:docs]deps} allowlist_externals = rm