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

Also fixed the zuul configuration.

Partial-Bug: #2000399

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Id7f7fb8e75a98df73bf4d14caeeecb9dc5ffb976
This commit is contained in:
Al Bailey 2022-12-26 23:30:45 +00:00
parent 4fad452db5
commit 4e2a8fcba8
4 changed files with 9 additions and 13 deletions

View File

@ -27,14 +27,6 @@
post:
jobs:
- stx-monitoring-upload-git-mirror
- kube-cpusets-tox-py27
- kube-cpusets-tox-py39
- kube-cpusets-tox-flake8
- kube-cpusets-tox-pylint
- kube-memory-tox-py27
- kube-memory-tox-py39
- kube-memory-tox-flake8
- kube-memory-tox-pylint
- job:
name: stx-monitoring-upload-git-mirror
@ -56,7 +48,7 @@
Run pylint test for kube-cpusets
required-projects:
- starlingx/config
nodeset: ubuntu-bionic
nodeset: debian-bullseye
files:
- kube-cpusets/*
vars:

View File

@ -30,7 +30,7 @@ install_command = pip install \
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-e{[tox]stxdir}/config/tsconfig/tsconfig
whitelist_externals = find
allowlist_externals = find
sh
[testenv:stestr]
commands =
@ -83,9 +83,13 @@ commands =
flake8 {posargs} .
[testenv:pylint]
basepython = python3.9
deps = {[testenv]deps}
pylint
basepython = python3.6
install_command = pip install \
-v -v -v \
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt} \
{opts} {packages}
sitepackages = False
commands = pylint kube_cpusets --rcfile=./pylint.rc

View File

@ -31,7 +31,7 @@ install_command = pip install \
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-e{[tox]stxdir}/config/tsconfig/tsconfig
whitelist_externals = find
allowlist_externals = find
sh
[testenv:stestr]
commands =

View File

@ -15,7 +15,7 @@ setenv =
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals =
allowlist_externals =
bash
[testenv:bashate]