Update tox.ini to work with tox 4

This change will allow this repo to pass zuul now
that this has merged:
https://review.opendev.org/c/zuul/zuul-jobs/+/866943

Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals

Partial-Bug: #2000399

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Ib2aea53615a378ce47d2a2b23ec2e1946c312eed
This commit is contained in:
Al Bailey 2022-12-26 23:26:54 +00:00
parent 2d51929684
commit 5f85f2066a

12
tox.ini
View File

@ -12,11 +12,11 @@ setenv = VIRTUAL_ENV={envdir}
OS_STDERR_CAPTURE=1 OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60 OS_TEST_TIMEOUT=60
deps = -r{toxinidir}/test-requirements.txt deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = reno allowlist_externals = reno
[testenv:linters] [testenv:linters]
basepython = python3 basepython = python3
whitelist_externals = bash allowlist_externals = bash
#bashate ignore errors #bashate ignore errors
#E010: do not on the same line as for #E010: do not on the same line as for
#E006 Line too long #E006 Line too long
@ -77,7 +77,7 @@ deps = -r{toxinidir}/doc/requirements.txt
commands = commands =
rm -rf doc/build rm -rf doc/build
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
whitelist_externals = rm allowlist_externals = rm
[testenv:releasenotes] [testenv:releasenotes]
basepython = python3 basepython = python3
@ -85,7 +85,7 @@ deps = -r{toxinidir}/doc/requirements.txt
commands = commands =
rm -rf releasenotes/build rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
whitelist_externals = rm allowlist_externals = rm
[testenv:newnote] [testenv:newnote]
basepython = python3 basepython = python3
@ -101,11 +101,11 @@ deps =
commands = commands =
rm -rf api-ref/build rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
whitelist_externals = rm allowlist_externals = rm
[testenv:functional] [testenv:functional]
basepython = python3 basepython = python3
whitelist_externals = cat allowlist_externals = cat
commands = cat /etc/mtc.ini commands = cat /etc/mtc.ini
[testenv:bandit] [testenv:bandit]