summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelajkat <lajos.katona@est.tech>2023-01-13 16:22:06 +0100
committerLajos Katona <katonalala@gmail.com>2023-01-16 08:34:36 +0000
commit33f1c89a840262ad378bf82fde5b42a07ad271db (patch)
tree204aeefdf55187bcb80385c72bdf935ee481d654
parent776e360e351c4b0c754fec5ad6308323adb44437 (diff)
downloadpython-neutronclient-33f1c89a840262ad378bf82fde5b42a07ad271db.tar.gz
Tox4: add allowlist_externals where necessary
With tox4 allowlist_externals is more strictly checked, so fix it where necessary and fix pylint version. Depends-On: https://review.opendev.org/c/zuul/zuul-jobs/+/866943 Related-Bug: #1999558 Change-Id: Id115a436b95b3ede5a1f3102b4bb9e3ade75c970
-rw-r--r--doc/requirements.txt1
-rw-r--r--tox.ini7
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/requirements.txt b/doc/requirements.txt
index 76ce5cd..718a239 100644
--- a/doc/requirements.txt
+++ b/doc/requirements.txt
@@ -4,3 +4,4 @@
openstackdocstheme>=2.2.0 # Apache-2.0
reno>=3.1.0 # Apache-2.0
sphinx>=2.0.0,!=2.1.0 # BSD
+cliff>=3.4.0 # Apache-2.0
diff --git a/tox.ini b/tox.ini
index bd42172..06f5829 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,7 @@
[tox]
envlist = py39,pep8
minversion = 3.18.0
-skipsdist = True
+skipsdist = False
ignore_basepython_conflict = True
[testenv]
@@ -12,18 +12,17 @@ setenv = VIRTUAL_ENV={envdir}
LC_ALL=C
PYTHONWARNINGS=default::DeprecationWarning
usedevelop = True
-install_command = pip install {opts} {packages}
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
# Delete bytecodes from normal directories before running tests.
# Note that bytecodes in dot directories will not be deleted
# to keep bytecodes of python modules installed into virtualenvs.
-commands = sh -c "find . -type d -name '.?*' -prune -o \
+commands = bash -c "find . -type d -name '.?*' -prune -o \
\( -type d -name '__pycache__' -o -type f -name '*.py[co]' \) \
-print0 | xargs -0 rm -rf"
stestr run {posargs}
-allowlist_externals = sh
+allowlist_externals = bash
[testenv:pep8]
commands =