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:
parent
4fad452db5
commit
4e2a8fcba8
10
.zuul.yaml
10
.zuul.yaml
@ -27,14 +27,6 @@
|
|||||||
post:
|
post:
|
||||||
jobs:
|
jobs:
|
||||||
- stx-monitoring-upload-git-mirror
|
- 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:
|
- job:
|
||||||
name: stx-monitoring-upload-git-mirror
|
name: stx-monitoring-upload-git-mirror
|
||||||
@ -56,7 +48,7 @@
|
|||||||
Run pylint test for kube-cpusets
|
Run pylint test for kube-cpusets
|
||||||
required-projects:
|
required-projects:
|
||||||
- starlingx/config
|
- starlingx/config
|
||||||
nodeset: ubuntu-bionic
|
nodeset: debian-bullseye
|
||||||
files:
|
files:
|
||||||
- kube-cpusets/*
|
- kube-cpusets/*
|
||||||
vars:
|
vars:
|
||||||
|
@ -30,7 +30,7 @@ install_command = pip install \
|
|||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
-e{[tox]stxdir}/config/tsconfig/tsconfig
|
-e{[tox]stxdir}/config/tsconfig/tsconfig
|
||||||
whitelist_externals = find
|
allowlist_externals = find
|
||||||
sh
|
sh
|
||||||
[testenv:stestr]
|
[testenv:stestr]
|
||||||
commands =
|
commands =
|
||||||
@ -83,9 +83,13 @@ commands =
|
|||||||
flake8 {posargs} .
|
flake8 {posargs} .
|
||||||
|
|
||||||
[testenv:pylint]
|
[testenv:pylint]
|
||||||
|
basepython = python3.9
|
||||||
deps = {[testenv]deps}
|
deps = {[testenv]deps}
|
||||||
pylint
|
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
|
sitepackages = False
|
||||||
commands = pylint kube_cpusets --rcfile=./pylint.rc
|
commands = pylint kube_cpusets --rcfile=./pylint.rc
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ install_command = pip install \
|
|||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
-e{[tox]stxdir}/config/tsconfig/tsconfig
|
-e{[tox]stxdir}/config/tsconfig/tsconfig
|
||||||
whitelist_externals = find
|
allowlist_externals = find
|
||||||
sh
|
sh
|
||||||
[testenv:stestr]
|
[testenv:stestr]
|
||||||
commands =
|
commands =
|
||||||
|
Loading…
Reference in New Issue
Block a user