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 <al.bailey@windriver.com> Change-Id: I128a047f569fc3e07fdb0b78e6b57a074c056e15
This commit is contained in:
parent
7414d1c526
commit
4b05f5dcc0
|
@ -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 \) \
|
||||
|
|
10
tox.ini
10
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
|
||||
|
|
Loading…
Reference in New Issue