From 2ea53eb37dc3daa52f8bf743a8cd02936dc25d7f Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 2 Feb 2024 23:48:18 +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: I3645be3c1fdf344c1b47d548c49fd804a03b0dff --- tox.ini | 2 -- 1 file changed, 2 deletions(-) diff --git a/tox.ini b/tox.ini index 4aa599d..5cac808 100644 --- a/tox.ini +++ b/tox.ini @@ -64,13 +64,11 @@ commands = [testenv:pep8] description = Run style checks. -envdir = {toxworkdir}/shared commands = flake8 {posargs} [testenv:cover] description = Run unit tests with coverage enabled. -envdir = {toxworkdir}/shared setenv = {[testenv]setenv} PYTHON=coverage run --source osc_placement --parallel-mode