Fix tox4 issues

Use allowlist_externals for rm.

Also, make sure the behaviour is consistent across tox versions
and always skip the installation of the dummy local package
(skip_install for 3, skipsdist does this already for 4).

Change-Id: Iacf9cda958ce410d30a258843e276f902c499e0b
This commit is contained in:
Radosław Piliszek 2022-12-26 14:58:18 +01:00
parent 1975f2f177
commit b1c2d07162
1 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@ skipsdist = True
[testenv]
basepython = python3
usedevelop = True
skip_install = True
setenv =
VIRTUAL_ENV={envdir}
deps =
@ -15,8 +15,10 @@ deps =
commands = {posargs}
[testenv:docs]
allowlist_externals =
rm
commands =
/bin/rm -fr doc/build/
rm -fr doc/build/
sphinx-build -W -b html doc/source doc/build/html
[testenv:spelling]