Unbreak CI: pin prometheus-client dep

This commit is contained in:
Andrew Morgan
2026-01-15 11:40:58 +00:00
parent 6cf4cab1dc
commit d9c55189f4
2 changed files with 9 additions and 0 deletions
@@ -20,6 +20,10 @@ venv_path=${repo_root:-./}.venv
if [ ! -d "$venv_path" ]; then
"python${PYTHON_VERSION:-3}" -m venv "$venv_path"
"$venv_path/bin/pip" install -e '.[dev]'
# Temp: downgrade prometheus-client until Synapse is compatible with 0.24.0+
# See https://github.com/element-hq/synapse/issues/19375
"$venv_path/bin/pip" install --force prometheus-client==0.23.1
fi
[ $# -gt 1 ] && . "$venv_path/bin/activate" && "$@"
@@ -6,6 +6,11 @@ isolated_build = true
[testenv:py]
deps =
# Temp: downgrade prometheus-client until Synapse is compatible with 0.24.0+
# See https://github.com/element-hq/synapse/issues/19375
prometheus-client==0.23.1
extras = dev
commands =