Merge "Use global upper-constraints"

This commit is contained in:
Zuul 2024-10-21 16:42:51 +00:00 committed by Gerrit Code Review
commit 31b53f222c
3 changed files with 17 additions and 28 deletions

View File

@ -25,22 +25,6 @@ classifier =
packages = packages =
aodhclient aodhclient
[options.extras_require]
test =
coverage>=3.6
oslotest>=1.10.0 # Apache-2.0
reno>=1.6.2 # Apache2
tempest>=10
stestr>=2.0.0 # Apache-2.0
testtools>=1.4.0
pifpaf[gnocchi]>=0.23
gnocchi[postgresql,file]
# FIXME: Remove these caps when aodh supports SQLAlchemy 2.0
SQLAlchemy-Utils<0.42.0
SQLAlchemy<1.5.0
;Disabled due to https://github.com/pypa/twine/issues/726
;aodh @ https://tarballs.openstack.org/aodh/aodh-master.tar.gz#egg=aodh[mysql]
[entry_points] [entry_points]
console_scripts = console_scripts =
aodh = aodhclient.shell:main aodh = aodhclient.shell:main

View File

@ -1 +1,8 @@
os-client-config>=1.28.0 # Apache-2.0 os-client-config>=1.28.0 # Apache-2.0
coverage>=3.6
oslotest>=1.10.0 # Apache-2.0
tempest>=10
stestr>=2.0.0 # Apache-2.0
testtools>=1.4.0
pifpaf[gnocchi]>=0.23
gnocchi[postgresql,file]

22
tox.ini
View File

@ -16,25 +16,22 @@ passenv =
OS_STDOUT_CAPTURE OS_STDOUT_CAPTURE
OS_STDERR_CAPTURE OS_STDERR_CAPTURE
OS_LOG_CAPTURE OS_LOG_CAPTURE
# NOTE(tonyb): This project has chosen to *NOT* consume upper-constraints.txt
# NOTE(jd): the -e is on its own line so it is passed a separate argument to pip
deps = deps =
.[test] -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs} commands = stestr run --slowest {posargs}
[testenv:functional] [testenv:functional]
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:8042 AODH_ENDPOINT=http://localhost:8042
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
deps = .[test]
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
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}
@ -69,6 +66,7 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b
[testenv:docs] [testenv:docs]
deps = deps =
-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 =