Merge "Fix tox.ini styling"

This commit is contained in:
Zuul
2025-10-14 09:07:36 +00:00
committed by Gerrit Code Review

76
tox.ini
View File

@@ -7,38 +7,38 @@ ignore_basepython_conflict = True
basepython = python3 basepython = python3
usedevelop = True usedevelop = True
setenv = setenv =
VIRTUAL_ENV={envdir} VIRTUAL_ENV={envdir}
AODH_CLIENT_EXEC_DIR={envdir}/bin AODH_CLIENT_EXEC_DIR={envdir}/bin
passenv = passenv =
GNOCCHI_* GNOCCHI_*
AODH_* AODH_*
OS_TEST_TIMEOUT OS_TEST_TIMEOUT
OS_STDOUT_CAPTURE OS_STDOUT_CAPTURE
OS_STDERR_CAPTURE OS_STDERR_CAPTURE
OS_LOG_CAPTURE OS_LOG_CAPTURE
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}/requirements.txt -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs} commands = stestr run --slowest {posargs}
[testenv:functional] [testenv:functional]
deps = deps =
{[testenv]deps} {[testenv]deps}
pifpaf[gnocchi]>=0.23 pifpaf[gnocchi]>=0.23
gnocchi[postgresql,file] gnocchi[postgresql,file]
setenv = setenv =
OS_TEST_PATH = ./aodhclient/tests/functional OS_TEST_PATH = ./aodhclient/tests/functional
OS_TESTENV_NAME = {envname} OS_TESTENV_NAME = {envname}
AODH_CLIENT_EXEC_DIR={envdir}/bin AODH_CLIENT_EXEC_DIR={envdir}/bin
AODH_ENDPOINT=http://localhost/alarming/ AODH_ENDPOINT=http://localhost/alarming/
GNOCCHI_ENDPOINT=http://localhost/metric/ GNOCCHI_ENDPOINT=http://localhost/metric/
PROMETHEUS_ENDPOINT=http://localhost:9090 PROMETHEUS_ENDPOINT=http://localhost:9090
allowlist_externals = allowlist_externals =
bash bash
commands = commands =
bash tools/fix_ca_bundle.sh bash tools/fix_ca_bundle.sh
stestr --test-path {env:OS_TEST_PATH} run --slowest {posargs} stestr --test-path {env:OS_TEST_PATH} run --slowest {posargs}
[testenv:pep8] [testenv:pep8]
skip_install = true skip_install = true
@@ -54,31 +54,31 @@ commands = {posargs}
[testenv:cover] [testenv:cover]
setenv = setenv =
{[testenv]setenv} {[testenv]setenv}
PYTHON=coverage run --source aodhclient --parallel-mode PYTHON=coverage run --source aodhclient --parallel-mode
commands = commands =
stestr run {posargs} stestr run {posargs}
coverage combine coverage combine
coverage html -d cover coverage html -d cover
coverage xml -o cover/coverage.xml coverage xml -o cover/coverage.xml
coverage report coverage report
[testenv:releasenotes] [testenv:releasenotes]
deps = deps =
-r{toxinidir}/doc/requirements.txt -r{toxinidir}/doc/requirements.txt
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
allowlist_externals = allowlist_externals =
sphinx-build sphinx-build
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html commands = sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
[testenv:docs] [testenv:docs]
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
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
commands = commands =
rm -rf doc/build rm -rf doc/build
sphinx-build -W --keep-going -b html doc/source doc/build/html sphinx-build -W --keep-going -b html doc/source doc/build/html
allowlist_externals = rm allowlist_externals = rm
[testenv:debug] [testenv:debug]