From 0bb2174fb55a00130dbe310dd1f2cedb8d6e7db3 Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Mon, 26 Dec 2022 18:23:34 +0000 Subject: [PATCH] Update tox.ini to work with tox 4 Tox 4 deprecated whitelist_externals The fix is to replace whitelist_externals with allowlist_externals Partial-Bug: #2000399 Signed-off-by: Al Bailey Change-Id: I0c3e7e9699a221704b7cb983acd873014ffdba0b --- tox.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tox.ini b/tox.ini index e52ab375..c2c55467 100644 --- a/tox.ini +++ b/tox.ini @@ -10,14 +10,14 @@ 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 # bashate ignore: # E006 - accept long lines # E040 - false positive on |& syntax (new in bash 4) -whitelist_externals = bash +allowlist_externals = bash commands = bash -c "find {toxinidir} \ \( -name .tox -prune \) \ @@ -74,7 +74,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 @@ -82,7 +82,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