mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
Unpin build-system requirements, but impose an upper-bound (#14085)
* Revert to prior build-system requirements This reverts #14080. * Use normalised extra name, which poetry-core 1.3 will generate anyway * Changelog * Upper bound build-system requirements * Remove upgrade note; expand changelog entry a little. * Fix typo in build-system comment Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
parent
a98ac3cc1e
commit
f1673866ed
3 changed files with 10 additions and 4 deletions
1
changelog.d/14085.misc
Normal file
1
changelog.d/14085.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Rename the `url_preview` extra to `url-preview`, for compatability with poetry-core 1.3.0 and [PEP 685](https://peps.python.org/pep-0685/). From-source installations using this extra will need to install using the new name.
|
|
@ -219,7 +219,7 @@ oidc = ["authlib"]
|
||||||
# `systemd.journal.JournalHandler`, as is documented in
|
# `systemd.journal.JournalHandler`, as is documented in
|
||||||
# `contrib/systemd/log_config.yaml`.
|
# `contrib/systemd/log_config.yaml`.
|
||||||
systemd = ["systemd-python"]
|
systemd = ["systemd-python"]
|
||||||
url_preview = ["lxml"]
|
url-preview = ["lxml"]
|
||||||
sentry = ["sentry-sdk"]
|
sentry = ["sentry-sdk"]
|
||||||
opentracing = ["jaeger-client", "opentracing"]
|
opentracing = ["jaeger-client", "opentracing"]
|
||||||
jwt = ["authlib"]
|
jwt = ["authlib"]
|
||||||
|
@ -250,7 +250,7 @@ all = [
|
||||||
"pysaml2",
|
"pysaml2",
|
||||||
# oidc and jwt
|
# oidc and jwt
|
||||||
"authlib",
|
"authlib",
|
||||||
# url_preview
|
# url-preview
|
||||||
"lxml",
|
"lxml",
|
||||||
# sentry
|
# sentry
|
||||||
"sentry-sdk",
|
"sentry-sdk",
|
||||||
|
@ -307,7 +307,12 @@ twine = "*"
|
||||||
towncrier = ">=18.6.0rc1"
|
towncrier = ">=18.6.0rc1"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core==1.2.0", "setuptools_rust==1.5.2"]
|
# The upper bounds here are defensive, intended to prevent situations like
|
||||||
|
# #13849 and #14079 where we see buildtime or runtime errors caused by build
|
||||||
|
# system changes.
|
||||||
|
# We are happy to raise these upper bounds upon request,
|
||||||
|
# provided we check that it's safe to do so (i.e. that CI passes).
|
||||||
|
requires = ["poetry-core>=1.0.0,<=1.3.1", "setuptools_rust>=1.3,<=1.5.2"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -205,7 +205,7 @@ class ContentRepositoryConfig(Config):
|
||||||
)
|
)
|
||||||
self.url_preview_enabled = config.get("url_preview_enabled", False)
|
self.url_preview_enabled = config.get("url_preview_enabled", False)
|
||||||
if self.url_preview_enabled:
|
if self.url_preview_enabled:
|
||||||
check_requirements("url_preview")
|
check_requirements("url-preview")
|
||||||
|
|
||||||
proxy_env = getproxies_environment()
|
proxy_env = getproxies_environment()
|
||||||
if "url_preview_ip_range_blacklist" not in config:
|
if "url_preview_ip_range_blacklist" not in config:
|
||||||
|
|
Loading…
Reference in a new issue