This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[WIP] Use Poetry to manage Synapse's dependencies #12337
Closed
Closed
Conversation
This file contains 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
- 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 <[email protected]>
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
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.
skimmed the changes - would appreciate more eyes on this!
babolivier
suggested changes
Mar 31, 2022
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.
Thanks a lot for working on this! Really looking forward to seeing this PR land.
Not sure if the failing CI job is a flake or not...
DMRobertson
commented
Mar 31, 2022
Co-authored-by: Sean Quah <[email protected]> Co-authored-by: Brendan Abolivier <[email protected]>
DMRobertson
commented
Mar 31, 2022
Co-authored-by: Brendan Abolivier <[email protected]>
Co-authored-by: Brendan Abolivier <[email protected]>
Signed-off-by: Dan Callahan <[email protected]>
Signed-off-by: Dan Callahan <[email protected]>
Signed-off-by: Dan Callahan <[email protected]>
Signed-off-by: Dan Callahan <[email protected]>
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
I think these may have been retained in merge confusion.
we did need it to `install` though, (I think?)
DMRobertson
changed the title
Use Poetry to manage Synapse's dependencies
[WIP] Use Poetry to manage Synapse's dependencies
Apr 14, 2022
I've ripped out what I need to from this. Many thanks all for you eyes and words. |
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:
poetry
for 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: