From 9b939e1b404a96a70961b6e1099e5f0b291af4da Mon Sep 17 00:00:00 2001 From: "Ian Y. Choi" Date: Sat, 2 Sep 2023 11:35:34 +0900 Subject: [PATCH] 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 --- tox.ini | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 4c0c5f4..9819a21 100644 --- a/tox.ini +++ b/tox.ini @@ -31,7 +31,7 @@ commands = docstheme-build-translated.sh [testenv:pdf-docs] -whitelist_externals = +allowlist_externals = make commands = 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 bash {toxinidir}/tools/check-zanata-users-list.sh {[testenv:generatepot]commands} -whitelist_externals = bash +allowlist_externals = bash [testenv:generatepot] # Generate POT files for translation -commands = {toxinidir}/tools/generatepot.sh +commands = + bash {toxinidir}/tools/generatepot.sh +allowlist_externals = bash [testenv:zanata-users-sync] commands =