Merge "Changed minversion in tox to 3.18.0"

This commit is contained in:
Zuul 2021-07-01 11:28:34 +00:00 committed by Gerrit Code Review
commit 8bedfea54b

26
tox.ini
View File

@ -1,5 +1,5 @@
[tox] [tox]
minversion = 2.5.0 minversion = 3.18.0
envlist = docs,py3,functional-py3,pep8,specs,pip-missing-reqs,pip-extra-reqs envlist = docs,py3,functional-py3,pep8,specs,pip-missing-reqs,pip-extra-reqs
skipsdist = True skipsdist = True
ignore_basepython_conflict = True ignore_basepython_conflict = True
@ -11,7 +11,7 @@ setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning PYTHONWARNINGS=default::DeprecationWarning
install_command = install_command =
pip install {opts} {packages} pip install {opts} {packages}
whitelist_externals = find allowlist_externals = find
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
@ -26,13 +26,13 @@ deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt -r{toxinidir}/doc/requirements.txt
whitelist_externals = rm allowlist_externals = rm
commands = commands =
rm -rf api-ref/build rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
[testenv:cover] [testenv:cover]
whitelist_externals = sh allowlist_externals = sh
setenv = setenv =
{[testenv]setenv} {[testenv]setenv}
PYTHON=coverage run --source octavia --parallel-mode PYTHON=coverage run --source octavia --parallel-mode
@ -85,7 +85,7 @@ commands = flake8
{toxinidir}/tools/coding-checks.sh --pylint {posargs} {toxinidir}/tools/coding-checks.sh --pylint {posargs}
{toxinidir}/tools/check_unit_test_structure.sh {toxinidir}/tools/check_unit_test_structure.sh
{[testenv:bashate]commands} {[testenv:bashate]commands}
whitelist_externals = allowlist_externals =
sh sh
find find
bash bash
@ -96,7 +96,7 @@ deps =
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
-r{toxinidir}/doc/requirements.txt -r{toxinidir}/doc/requirements.txt
whitelist_externals = rm allowlist_externals = rm
commands = commands =
rm -rf doc/build api-guide/build api-ref/build doc/source/contributor/modules rm -rf doc/build api-guide/build api-ref/build doc/source/contributor/modules
sphinx-build -W -b html doc/source doc/build/html sphinx-build -W -b html doc/source doc/build/html
@ -104,7 +104,7 @@ commands =
[testenv:pdf-docs] [testenv:pdf-docs]
deps = {[testenv:docs]deps} deps = {[testenv:docs]deps}
whitelist_externals = allowlist_externals =
make make
rm rm
commands = commands =
@ -116,7 +116,7 @@ commands =
commands = {posargs} commands = {posargs}
[testenv:genconfig] [testenv:genconfig]
whitelist_externals = mkdir allowlist_externals = mkdir
commands = commands =
mkdir -p etc/octavia mkdir -p etc/octavia
oslo-config-generator --output-file etc/octavia/octavia.conf.sample \ oslo-config-generator --output-file etc/octavia/octavia.conf.sample \
@ -128,14 +128,14 @@ commands =
--namespace cotyledon --namespace cotyledon
[testenv:genpolicy] [testenv:genpolicy]
whitelist_externals = mkdir allowlist_externals = mkdir
commands = commands =
mkdir -p etc/octavia mkdir -p etc/octavia
oslopolicy-sample-generator \ oslopolicy-sample-generator \
--config-file etc/policy/octavia-policy-generator.conf --config-file etc/policy/octavia-policy-generator.conf
[testenv:specs] [testenv:specs]
whitelist_externals = allowlist_externals =
rm rm
find find
commands = commands =
@ -201,7 +201,7 @@ max-line-length = 79
deps = deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt -r{toxinidir}/doc/requirements.txt
whitelist_externals = rm allowlist_externals = rm
commands = commands =
rm -rf releasenotes/build rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
@ -211,7 +211,7 @@ deps =
-c{toxinidir}/lower-constraints.txt -c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
whitelist_externals = sh allowlist_externals = sh
commands = commands =
sh -c 'OS_TEST_PATH={toxinidir}/octavia/tests/unit stestr run {posargs}' sh -c 'OS_TEST_PATH={toxinidir}/octavia/tests/unit stestr run {posargs}'
sh -c 'OS_TEST_PATH={toxinidir}/octavia/tests/functional stestr run {posargs}' sh -c 'OS_TEST_PATH={toxinidir}/octavia/tests/functional stestr run {posargs}'
@ -219,7 +219,7 @@ commands =
[testenv:requirements] [testenv:requirements]
deps = deps =
-egit+https://opendev.org/openstack/requirements#egg=openstack-requirements -egit+https://opendev.org/openstack/requirements#egg=openstack-requirements
whitelist_externals = sh allowlist_externals = sh
commands = commands =
sh -c '{envdir}/src/openstack-requirements/playbooks/files/project-requirements-change.py --req {envdir}/src/openstack-requirements --local {toxinidir} master' sh -c '{envdir}/src/openstack-requirements/playbooks/files/project-requirements-change.py --req {envdir}/src/openstack-requirements --local {toxinidir} master'