-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Unpin build-system requirements, but impose an upper-bound #14085
Changes from 3 commits
4203187
4a01f01
6b0d81b
045cecd
a722cf5
1be40c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Rename the `url_preview` extra to `url-preview`, for compatability with poetry-core 1.3.0. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -219,7 +219,7 @@ oidc = ["authlib"] | |
# `systemd.journal.JournalHandler`, as is documented in | ||
# `contrib/systemd/log_config.yaml`. | ||
systemd = ["systemd-python"] | ||
url_preview = ["lxml"] | ||
url-preview = ["lxml"] | ||
sentry = ["sentry-sdk"] | ||
opentracing = ["jaeger-client", "opentracing"] | ||
jwt = ["authlib"] | ||
|
@@ -250,7 +250,7 @@ all = [ | |
"pysaml2", | ||
# oidc and jwt | ||
"authlib", | ||
# url_preview | ||
# url-preview | ||
"lxml", | ||
# sentry | ||
"sentry-sdk", | ||
|
@@ -307,7 +307,7 @@ twine = "*" | |
towncrier = ">=18.6.0rc1" | ||
|
||
[build-system] | ||
requires = ["poetry-core==1.2.0", "setuptools_rust==1.5.2"] | ||
requires = ["poetry-core>=1.0.0", "setuptools_rust>=1.3"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. perhaps we should cap these to known-good versions, to avoid #13849 situations? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No strong opinions here. I'd be happy to cap to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please don't do There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Discussed among the team. We'll constrain to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is 045cecd. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think making a too-conservative upper bound conserves frustration by replacing "Synapse is broken" issues with "Requirements need updating" issues. Limiting to the current minor version might thread the needle by minimizing the likelihood of breakage while still allowing upgrades. (Of course, given how some Python projects seem to bump patch versions with ever merge and minor versions every third hour of every fourth day, maybe the relaxation isn't all that significant.) |
||
build-backend = "poetry.core.masonry.api" | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are either of these things that people are likely to be doing every upgrade?
I'm not entirely sure this needs calling out in the upgrade notes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As noted in the description: if you're installing from source, you need to be doing
pip install
orpoetry install
to pick up the latest version of the Rust source. So reinstalls are likely.I think installations that specifically name url_previews are unlikely.
(Also a factor: if you install an extra with
poetry install --extras EXTRA_NAME
once, you have to keep supplying that EXTRA_NAME in futurepoetry install
calls, or else it will remove unused dependencies.)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, fair.
Yeah. On this occasion, I feel like this is unlikely to be useful to anyone. We do need to find some sort of balance in these upgrade notes: if they describe every single change, then people won't read them at all. IMHO this is on the "not worth including" side of the balance (though it might be worth an explicit shoutout in the changelog). YMMV though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mainly want to have something here to point people to if they encounter this problem on upgrade. Can remove it if you think it's too niche.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, sorry. I missed your earlier comment.
I'll omit this from the notes and add a "BTW" in the changelog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a722cf5.