Merge "Use tox 4"

This commit is contained in:
Zuul
2023-05-05 22:27:42 +00:00
committed by Gerrit Code Review

29
tox.ini
View File

@@ -1,9 +1,10 @@
[tox]
distribute = False
envlist = py3,pep8
minversion = 3.18.0
requires = tox<4
skipsdist = True
minversion = 4.4.1
# specify virtualenv here to keep local runs consistent with the
# gate (it sets the versions of pip, setuptools, and wheel)
requires = virtualenv>=20.17.1
# this allows tox to infer the base python from the environment name
# and override any basepython configured in this file
ignore_basepython_conflict=true
@@ -17,7 +18,9 @@ setenv =
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
passenv = *_proxy *_PROXY
passenv =
*_proxy
*_PROXY
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
@@ -83,8 +86,13 @@ deps =
tempest>=26.0.0
commands = stestr run {posargs}
setenv =
{[testenv]setenv}
OS_TEST_PATH = ./cinderclient/tests/functional
# can't use {[testenv]setenv} here due to tox 4 issue
# https://github.com/tox-dev/tox/issues/2831
VIRTUAL_ENV={envdir}
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
OS_TEST_PATH=./cinderclient/tests/functional
OS_VOLUME_API_VERSION = 3
# must define this here so it can be inherited by the -py3* environments
OS_CINDERCLIENT_EXEC_DIR = {envdir}/bin
@@ -99,13 +107,7 @@ setenv =
# TLS (https) server certificate.
passenv = OS_*
[testenv:functional-py38]
deps = {[testenv:functional]deps}
setenv = {[testenv:functional]setenv}
passenv = {[testenv:functional]passenv}
commands = {[testenv:functional]commands}
[testenv:functional-py39]
[testenv:functional-py{3,38,39,310,311}]
deps = {[testenv:functional]deps}
setenv = {[testenv:functional]setenv}
passenv = {[testenv:functional]passenv}
@@ -121,4 +123,3 @@ import-order-style = pep8
[doc8]
ignore-path=.tox,*.egg-info,doc/src/api,doc/source/drivers.rst,doc/build,.eggs/*/EGG-INFO/*.txt,doc/source/configuration/tables,./*.txt,releasenotes/build,doc/source/cli/details.rst
extension=.txt,.rst,.inc