Update tox.ini to work with tox 4
Tox 4 deprecated whitelist_externals. Replace whitelist_externals with allowlist_externals. Also, add bash to allowlist_externals on generatepot tox env. Related-Bug: #2000399 Change-Id: I3bb050b8abf3b32929eb0379eb8ac1bb84951803
This commit is contained in:
8
tox.ini
8
tox.ini
@@ -31,7 +31,7 @@ commands =
|
|||||||
docstheme-build-translated.sh
|
docstheme-build-translated.sh
|
||||||
|
|
||||||
[testenv:pdf-docs]
|
[testenv:pdf-docs]
|
||||||
whitelist_externals =
|
allowlist_externals =
|
||||||
make
|
make
|
||||||
commands =
|
commands =
|
||||||
sphinx-build -W -b latex doc/source doc/build/pdf
|
sphinx-build -W -b latex doc/source doc/build/pdf
|
||||||
@@ -44,11 +44,13 @@ commands =
|
|||||||
python {toxinidir}/tools/check_yaml_file.py {toxinidir}/tools/zanata/translation_team.yaml
|
python {toxinidir}/tools/check_yaml_file.py {toxinidir}/tools/zanata/translation_team.yaml
|
||||||
bash {toxinidir}/tools/check-zanata-users-list.sh
|
bash {toxinidir}/tools/check-zanata-users-list.sh
|
||||||
{[testenv:generatepot]commands}
|
{[testenv:generatepot]commands}
|
||||||
whitelist_externals = bash
|
allowlist_externals = bash
|
||||||
|
|
||||||
[testenv:generatepot]
|
[testenv:generatepot]
|
||||||
# Generate POT files for translation
|
# Generate POT files for translation
|
||||||
commands = {toxinidir}/tools/generatepot.sh
|
commands =
|
||||||
|
bash {toxinidir}/tools/generatepot.sh
|
||||||
|
allowlist_externals = bash
|
||||||
|
|
||||||
[testenv:zanata-users-sync]
|
[testenv:zanata-users-sync]
|
||||||
commands =
|
commands =
|
||||||
|
|||||||
Reference in New Issue
Block a user