summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Grasza <xek@redhat.com>2023-01-03 12:44:42 +0100
committerGrzegorz Grasza <xek@redhat.com>2023-01-03 14:35:58 +0100
commit9a457b434d16821e9449113a5835e8ce9ef26ba7 (patch)
tree439e390cd55b7669eb0efa361b621e71590aea45
parent8a509d0670b16c5e35d4deb05f1ab6d0b2a63816 (diff)
downloadpython-barbicanclient-9a457b434d16821e9449113a5835e8ce9ef26ba7.tar.gz
Bump tox minversion to 3.18.0
Since tox 3.18.0, the whitelist_externals option has been deprecated in favor of the new allow_list_externals option[1]. This change bumps the minversion of tox so that we can replace the deprecated option. This also adds requirements.txt to the docs tox environment, to fix the openstack-tox-docs job. [1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23 Co-Authored-By: Grzegorz Grasza <xek@redhat.com> Change-Id: I9066385091c80405c265bf95728c2011a8ad4780
-rw-r--r--tox.ini12
1 files changed, 7 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index c70d79d..a4fb94e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-minversion = 3.1.1
+minversion = 3.18.0
envlist = py38,py39,pep8
skipsdist = True
ignore_basepython_conflict = True
@@ -24,7 +24,7 @@ commands =
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report -m
-whitelist_externals = rm
+allowlist_externals = rm
[testenv:debug]
commands = oslo_debug_helper -t barbicanclient/tests {posargs}
@@ -40,15 +40,17 @@ commands = {posargs}
# the main docs to https://docs.openstack.org/python-barbicanclient
description = Build main documentation
basepython = python3
-deps = -r{toxinidir}/doc/requirements.txt
+deps =
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/doc/requirements.txt
commands=
rm -rf doc/build/html doc/build/doctrees
sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
-whitelist_externals = rm
+allowlist_externals = rm
[testenv:pdf-docs]
deps = {[testenv:docs]deps}
-whitelist_externals =
+allowlist_externals =
make
rm
commands =