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
This commit is contained in:
Takashi Kajinami 2024-02-02 23:48:18 +09:00
parent a40c18d64e
commit 2ea53eb37d
1 changed files with 0 additions and 2 deletions

View File

@ -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