Allow older version of tox to still work for this repo
When updating the tox.ini files to support tox 4 the older tox 2.9 support became broken. That version of tox is still being used by several contributors to this repo. The proposed change is to manually alias whitelist_externals to allowlist_externals in the tox.ini sections. Partial-Bug: #2000399 Signed-off-by: Al Bailey <al.bailey@windriver.com> Change-Id: I2cbd04b8170ae30cbfa8e9e93cc67af54e0cf602
This commit is contained in:
parent
a7927db517
commit
79e88eaa4d
7
tox.ini
7
tox.ini
@ -1,6 +1,6 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = docs,linters
|
envlist = docs,linters
|
||||||
minversion = 2.3
|
minversion = 2.9
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
@ -34,6 +34,7 @@ allowlist_externals = bash
|
|||||||
get-remote-files.sh
|
get-remote-files.sh
|
||||||
git
|
git
|
||||||
# hw-updates.sh
|
# hw-updates.sh
|
||||||
|
whitelist_externals = {[testenv:docs]allowlist_externals}
|
||||||
|
|
||||||
[testenv:api-ref]
|
[testenv:api-ref]
|
||||||
deps = {[testenv:docs]deps}
|
deps = {[testenv:docs]deps}
|
||||||
@ -41,9 +42,11 @@ 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
|
||||||
allowlist_externals = rm
|
allowlist_externals = rm
|
||||||
|
whitelist_externals = {[testenv:api-ref]allowlist_externals}
|
||||||
|
|
||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
allowlist_externals = bash
|
allowlist_externals = bash
|
||||||
|
whitelist_externals = {[testenv:linters]allowlist_externals}
|
||||||
commands =
|
commands =
|
||||||
bash -c "find {toxinidir} \
|
bash -c "find {toxinidir} \
|
||||||
\( -name .tox -prune \) \
|
\( -name .tox -prune \) \
|
||||||
@ -63,12 +66,14 @@ commands =
|
|||||||
bash new-topic.sh {env:PWD} {toxinidir}
|
bash new-topic.sh {env:PWD} {toxinidir}
|
||||||
allowlist_externals = new-topic.sh
|
allowlist_externals = new-topic.sh
|
||||||
bash
|
bash
|
||||||
|
whitelist_externals = {[testenv:newfile]allowlist_externals}
|
||||||
|
|
||||||
[testenv:picks]
|
[testenv:picks]
|
||||||
commands =
|
commands =
|
||||||
./pickCompare.sh
|
./pickCompare.sh
|
||||||
allowlist_externals = pickCompare.sh
|
allowlist_externals = pickCompare.sh
|
||||||
bash
|
bash
|
||||||
|
whitelist_externals = {[testenv:picks]allowlist_externals}
|
||||||
|
|
||||||
|
|
||||||
[testenv:linkcheck]
|
[testenv:linkcheck]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user