From c1b2846af28976662345f5e222b52975cea0fc48 Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Tue, 27 Dec 2022 01:24:14 +0000 Subject: [PATCH] Update tox.ini to work with tox 4 This change will allow this repo to pass zuul now that this has merged: https://review.opendev.org/c/zuul/zuul-jobs/+/866943 Tox 4 deprecated whitelist_externals. Replace whitelist_externals with allowlist_externals Partial-Bug: #2000399 Signed-off-by: Al Bailey Change-Id: I401bae2a4bf76010ec83665ac2e1aa0ef7f26c42 --- .../k8sapp_ptp_notification/tox.ini | 2 +- tox.ini | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python-k8sapp-ptp-notification/k8sapp_ptp_notification/tox.ini b/python-k8sapp-ptp-notification/k8sapp_ptp_notification/tox.ini index e9ef124..2cc9b04 100644 --- a/python-k8sapp-ptp-notification/k8sapp_ptp_notification/tox.ini +++ b/python-k8sapp-ptp-notification/k8sapp_ptp_notification/tox.ini @@ -18,7 +18,7 @@ distshare={toxworkdir}/.tox/distshare sitepackages = True # tox is silly... these need to be separated by a newline.... -whitelist_externals = bash +allowlist_externals = bash find install_command = pip install -v -v -v \ diff --git a/tox.ini b/tox.ini index 9789b30..f5b049c 100644 --- a/tox.ini +++ b/tox.ini @@ -15,7 +15,7 @@ setenv = deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -whitelist_externals = +allowlist_externals = bash [testenv:py36] @@ -51,7 +51,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:api-ref] basepython = python3 @@ -60,7 +60,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:pylint] basepython = python3