Fix issues related to tox4

Related to https://lists.openstack.org/pipermail/openstack-discuss/2023-February/032247.html

Change-Id: I38b5e7fe25820ffda712bbc983e4ea3d6c3bf17d
This commit is contained in:
Hervé Beraud 2023-02-17 10:25:41 +01:00 committed by Hervé Beraud
parent d1f07ad353
commit 0af59425ad

View File

@ -1,15 +1,13 @@
[tox]
minversion = 3.2.0
envlist = py3,pep8
ignore_basepython_conflict = True
[testenv]
basepython = python3
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
# We want to support both vanilla stdlib and eventlet monkey patched
whitelist_externals = env
allowlist_externals = env
commands =
env TEST_EVENTLET=0 lockutils-wrapper stestr run --slowest {posargs}
env TEST_EVENTLET=1 lockutils-wrapper stestr run --slowest {posargs}
@ -25,7 +23,7 @@ commands =
commands = {posargs}
[testenv:docs]
whitelist_externals = rm
allowlist_externals = rm
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt