Fix issues related to tox4

Related to https://lists.openstack.org/pipermail/openstack-discuss/2023-February/032247.html

Change-Id: Icf10da4f425ca3ea514eac132f7527165afe31a2
This commit is contained in:
Hervé Beraud 2023-02-17 10:34:39 +01:00 committed by Hervé Beraud
parent 845fc45fab
commit b3ba591402

View File

@ -1,10 +1,8 @@
[tox]
minversion = 3.2.0
envlist = py3,pep8,bandit
ignore_basepython_conflict = true
[testenv]
basepython = python3
setenv =
VIRTUAL_ENV={envdir}
BRANCH_NAME=master
@ -14,7 +12,7 @@ deps =
-r{toxinidir}/doc/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
whitelist_externals = find
allowlist_externals = find
commands =
find . -type f -name "*.py[co]" -delete
stestr run --slowest {posargs}
@ -29,7 +27,7 @@ commands =
commands = {posargs}
[testenv:docs]
whitelist_externals =
allowlist_externals =
rm
commands =
rm -rf doc/build
@ -60,7 +58,7 @@ deps =
commands = bandit -r oslo_service -n5 -x tests {posargs}
[testenv:releasenotes]
whitelist_externals =
allowlist_externals =
rm
commands =
rm -rf releasenotes/build