From 5f85f2066a38e4e034fdc4770547209e55b76c3b Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Mon, 26 Dec 2022 23:26:54 +0000 Subject: [PATCH] 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 Change-Id: Ib2aea53615a378ce47d2a2b23ec2e1946c312eed --- tox.ini | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tox.ini b/tox.ini index 86af971d..8bfc03c3 100644 --- a/tox.ini +++ b/tox.ini @@ -12,11 +12,11 @@ setenv = VIRTUAL_ENV={envdir} OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 deps = -r{toxinidir}/test-requirements.txt -whitelist_externals = reno +allowlist_externals = reno [testenv:linters] basepython = python3 -whitelist_externals = bash +allowlist_externals = bash #bashate ignore errors #E010: do not on the same line as for #E006 Line too long @@ -77,7 +77,7 @@ deps = -r{toxinidir}/doc/requirements.txt commands = rm -rf doc/build sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html -whitelist_externals = rm +allowlist_externals = rm [testenv:releasenotes] basepython = python3 @@ -85,7 +85,7 @@ deps = -r{toxinidir}/doc/requirements.txt commands = rm -rf releasenotes/build sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html -whitelist_externals = rm +allowlist_externals = rm [testenv:newnote] basepython = python3 @@ -101,11 +101,11 @@ deps = commands = rm -rf api-ref/build 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] basepython = python3 -whitelist_externals = cat +allowlist_externals = cat commands = cat /etc/mtc.ini [testenv:bandit]