This repository was archived by the owner on Apr 26, 2024. It is now read-only.
[WIP] Use Poetry to manage Synapse's dependencies#12337
Closed
DMRobertson wants to merge 42 commits intodevelopfrom
Closed
[WIP] Use Poetry to manage Synapse's dependencies#12337DMRobertson wants to merge 42 commits intodevelopfrom
DMRobertson wants to merge 42 commits intodevelopfrom
Conversation
- Nuke python_dependencies and setup.py - Allow commiting poetry.lock - Initial lockfile pulling in the latest version of deps at the time of locking
Missed in #12088. We got away with it because we were indirectly importing it in other places. Without this, we encounter pain in `poetry export`; and besides, we should be explicit about our direct dependencies.
See comment in the toml file: > The duplication here is awful. I hate hate hate hate hate it. I don't think that we're going to be adding many extras any time soon, and I think this is the least bad option.
After #12107 it's much easier for black, isort and flake8 to find the scripts we want them to lint.
Signed-off-by: Sean Quah <seanq@element.io>
In particular the documentaion for contributors should only advocate poetry. I am not thrilled at the propsect of now having N+1 installation methods---but at the very least we ought to mention poetry here.
DMRobertson
commented
Mar 30, 2022
DMRobertson
commented
Mar 30, 2022
- Stop always running twisted trunk on this branch - Stop building all devs on this branch - Run olddeps after linting
squahtx
reviewed
Mar 31, 2022
Contributor
squahtx
left a comment
There was a problem hiding this comment.
skimmed the changes - would appreciate more eyes on this!
babolivier
suggested changes
Mar 31, 2022
DMRobertson
commented
Mar 31, 2022
Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com> Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
DMRobertson
commented
Mar 31, 2022
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
Contributor
|
Note: CI is currently passing across the board except for Complement, which will be resolved by: |
Signed-off-by: Dan Callahan <danc@element.io>
Signed-off-by: Dan Callahan <danc@element.io>
Signed-off-by: Dan Callahan <danc@element.io>
Signed-off-by: Dan Callahan <danc@element.io>
Signed-off-by: Dan Callahan <danc@element.io>
DMRobertson
pushed a commit
that referenced
this pull request
Apr 11, 2022
DMRobertson
pushed a commit
that referenced
this pull request
Apr 11, 2022
Olddeps and twisted trunk tests are handled in separate PRs. The PyPy config is a best-effort only; it's completely untested. Pulled out from #12337.
This was referenced Apr 11, 2022
DMRobertson
pushed a commit
that referenced
this pull request
Apr 12, 2022
* Run "main" trial tests under poetry Olddeps and twisted trunk tests are handled in separate PRs. The PyPy config is a best-effort only; it's completely untested. Pulled out from #12337. * Changelog
added 3 commits
April 14, 2022 10:42
I think these may have been retained in merge confusion.
we did need it to `install` though, (I think?)
Contributor
Author
|
I've ripped out what I need to from this. Many thanks all for you eyes and words. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reviewable commit-by-commit. Hopefully. Ignoring the lockfile, the diffstats for each individual commit should hopefully be managable.
I'd appreciate eyes on the output from CI. I'd like to ensure that it's still reasonably easy to follow, and clear that we're using the poetry locked environment rather than pip-installing the newest version of everything.
This set of changes:
poetryfor development purposes.Included at the start are a couple of DEBUG commits which will ensure that the CI run for
5f8db3e will build all debian packages and run the twisted CI job. Before this is merged, they'll need to be undone.
Closes #11537.
TODO: