Partially 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

skipsdist acts differently in tox 4.
Unable to get unit tests to pass with it removed.
pinning zuul to use tox < 4

Partial-Bug: #2000399

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I2efa39b371d89c4681c6d2f0cc9eb71ef6f0dbdb
This commit is contained in:
Al Bailey 2022-12-23 16:08:57 +00:00
parent 607632ed3b
commit 6d05e8ef38
4 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,7 @@
---
- project:
vars:
ensure_tox_version: '<4'
check:
jobs:
- openstack-tox-linters

View File

@ -14,6 +14,7 @@ doc/source/api/
dist
build
eggs
.eggs
parts
var
sdist

View File

@ -1,8 +1,6 @@
[tox]
envlist = flake8,py27,py36,py39,pylint,bandit
minversion = 1.6
# skipsdist = True
#,pip-missing-reqs
# tox does not work if the path to the workdir is too long, so move it to /tmp
toxworkdir = /tmp/{env:USER}_k8saudittox
@ -19,7 +17,7 @@ sitepackages = False
basepython = python3
# 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 \

View File

@ -1,8 +1,8 @@
[tox]
envlist = linters
minversion = 2.3
skipsdist = True
sitepackages=False
skipsdist=True
[testenv]
install_command = pip install -U {opts} {packages}
@ -15,7 +15,7 @@ setenv =
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals =
allowlist_externals =
bash
[testenv:bashate]