mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 10:29:22 -05:00
Remove version pin prometheus_client dependency (#8875)
This removes the version pin of the `prometheus_client` dependency, in direct response to #8831. If merged, this will close #8831 As far as I can tell, no other changes are needed, but as I'm no synapse expert, I'm relying heavily on CI and maintainer reviews for this. My very primitive test of synapse with prometheus_client v0.9.0 on my home server didn't bring up any issues, so we'll see what happens. Signed-off-by: Jordan Bancino
This commit is contained in:
parent
e41720d85f
commit
295c209cdd
1
changelog.d/8875.misc
Normal file
1
changelog.d/8875.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Add support for the latest third-party libraries. Contributed by Jordan Bancino.
|
@ -37,7 +37,7 @@ RUN pip install --prefix="/install" --no-warn-script-location \
|
|||||||
jaeger-client \
|
jaeger-client \
|
||||||
opentracing \
|
opentracing \
|
||||||
# Match the version constraints of Synapse
|
# Match the version constraints of Synapse
|
||||||
"prometheus_client>=0.4.0,<0.9.0" \
|
"prometheus_client>=0.4.0" \
|
||||||
psycopg2 \
|
psycopg2 \
|
||||||
pycparser \
|
pycparser \
|
||||||
pyrsistent \
|
pyrsistent \
|
||||||
|
@ -40,6 +40,10 @@ logger = logging.getLogger(__name__)
|
|||||||
# Note that these both represent runtime dependencies (and the versions
|
# Note that these both represent runtime dependencies (and the versions
|
||||||
# installed are checked at runtime).
|
# installed are checked at runtime).
|
||||||
#
|
#
|
||||||
|
# Also note that we replicate these constraints in the Synapse Dockerfile while
|
||||||
|
# pre-installing dependencies. If these constraints are updated here, the same
|
||||||
|
# change should be made in the Dockerfile.
|
||||||
|
#
|
||||||
# [1] https://pip.pypa.io/en/stable/reference/pip_install/#requirement-specifiers.
|
# [1] https://pip.pypa.io/en/stable/reference/pip_install/#requirement-specifiers.
|
||||||
|
|
||||||
REQUIREMENTS = [
|
REQUIREMENTS = [
|
||||||
@ -69,14 +73,7 @@ REQUIREMENTS = [
|
|||||||
"msgpack>=0.5.2",
|
"msgpack>=0.5.2",
|
||||||
"phonenumbers>=8.2.0",
|
"phonenumbers>=8.2.0",
|
||||||
# we use GaugeHistogramMetric, which was added in prom-client 0.4.0.
|
# we use GaugeHistogramMetric, which was added in prom-client 0.4.0.
|
||||||
# prom-client has a history of breaking backwards compatibility between
|
"prometheus_client>=0.4.0",
|
||||||
# minor versions (https://github.com/prometheus/client_python/issues/317),
|
|
||||||
# so we also pin the minor version.
|
|
||||||
#
|
|
||||||
# Note that we replicate these constraints in the Synapse Dockerfile while
|
|
||||||
# pre-installing dependencies. If these constraints are updated here, the
|
|
||||||
# same change should be made in the Dockerfile.
|
|
||||||
"prometheus_client>=0.4.0,<0.9.0",
|
|
||||||
# we use attr.validators.deep_iterable, which arrived in 19.1.0 (Note:
|
# we use attr.validators.deep_iterable, which arrived in 19.1.0 (Note:
|
||||||
# Fedora 31 only has 19.1, so if we want to upgrade we should wait until 33
|
# Fedora 31 only has 19.1, so if we want to upgrade we should wait until 33
|
||||||
# is out in November.)
|
# is out in November.)
|
||||||
|
Loading…
Reference in New Issue
Block a user