From 4b05f5dcc0c744c575ddbaa0c2d0cd3cd358b527 Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Mon, 26 Dec 2022 18:27:41 +0000 Subject: [PATCH] Update tox.ini to work with tox 4 Tox 4 deprecated whitelist_externals. Replace whitelist_externals with allowlist_externals Partial-Bug: #2000399 Signed-off-by: Al Bailey Change-Id: I128a047f569fc3e07fdb0b78e6b57a074c056e15 --- distributedcloud/tox.ini | 10 +++++----- tox.ini | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/distributedcloud/tox.ini b/distributedcloud/tox.ini index 026c9e6fe..4ad81f754 100644 --- a/distributedcloud/tox.ini +++ b/distributedcloud/tox.ini @@ -47,7 +47,7 @@ setenv = deps = -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt -whitelist_externals = +allowlist_externals = rm find reno @@ -146,7 +146,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 @@ -155,7 +155,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 @@ -171,7 +171,7 @@ deps = -r{toxinidir}/doc/requirements.txt 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:debug] basepython = python3 @@ -236,7 +236,7 @@ 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 \) \ diff --git a/tox.ini b/tox.ini index f9afc8317..1605bad22 100644 --- a/tox.ini +++ b/tox.ini @@ -19,7 +19,7 @@ deps = -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt keyring -whitelist_externals = +allowlist_externals = rm find reno @@ -50,7 +50,7 @@ description = Dummy environment to allow pylint to be run in subdir tox [testenv:linters] basepython = python3 -whitelist_externals = bash +allowlist_externals = bash commands = bash -c "find {toxinidir} \ \( -name .tox -prune \) \ @@ -63,7 +63,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 @@ -71,7 +71,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 = +allowlist_externals = rm reno @@ -89,7 +89,7 @@ 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:bandit] basepython = python3