fix: add tox 4 support in tox.ini
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 3 Jan 2023 21:28:49 +0000 (16:28 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 16 Jan 2023 21:04:39 +0000 (16:04 -0500)
Tox 4 introduced configuration syntax changes to tox.ini that requires
at least tox 3.18 for compatibility.

The 'passenv' configuration was documented as space separated in tox 3
and is now comma separated in tox 4. However, newline separated works in
both tox versions [1].

The 'whitelist_externals' configuration was replaced by
'allowlist_externals', the new value was introduced in 3.18 as an
alternative.

[1] https://tox.wiki/en/latest/upgrading.html#upgrading

Change-Id: Ibe6d16f7a180d4341f1a2c0f4a6343d72210cd94
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
tox.ini

diff --git a/tox.ini b/tox.ini
index 9b6de43997741008bc8bb82cd2a6dfefb0d1e225..beab0c6c7824765adee9d49574d2ed08f2f178fc 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,12 +1,14 @@
 [tox]
-minversion = 3.3
+minversion = 3.18
 isolated_build = true
 envlist = tests
 skipsdist = True
 
 [testenv]
-whitelist_externals = poetry
-passenv = TERM TERMINFO
+allowlist_externals = poetry
+passenv =
+    TERM
+    TERMINFO
 
 [testenv:tests]
 changedir = tests
This page took 0.039336 seconds and 4 git commands to generate.