This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Repository navigation
Require poetry>=1.3.2 #14860
Merged
Merged
Require poetry>=1.3.2 #14860
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
99718bd
Upgrade to new lockfile format
bede638
Use Poetry 1.3.2 when reading or writing lockfile
133172d
Remove unneeded(?) poetry dep for cibuildwheel
3f079ee
Update docs
23b812e
Remove redundant call to setup-python
92fb840
Remove outdated comments related to Poetry 1.x
99c32fe
Remove outdated docs line
927a050
Minor improvements to poetry cheat sheet
9430bf2
Invoke setup-python-poetry with explicit version
b7137a2
Changelog
9382733
Check the lockfile is version 2.0
f811ff5
Typo fixes, thanks Sean
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #! /usr/bin/env python | ||
| import sys | ||
|
|
||
| if sys.version_info < (3, 11): | ||
| raise RuntimeError("Requires at least Python 3.11, to import tomllib") | ||
|
|
||
| import tomllib | ||
|
|
||
| with open("poetry.lock", "rb") as f: | ||
| lockfile = tomllib.load(f) | ||
|
|
||
| try: | ||
| lock_version = lockfile["metadata"]["lock-version"] | ||
| assert lock_version == "2.0" | ||
| except Exception: | ||
| print( | ||
| """\ | ||
| Lockfile is not version 2.0. You probably need to upgrade poetry on your local box | ||
| and re-run `poetry lock --no-update`. See the Poetry cheat sheet at | ||
| https://matrix-org.github.io/synapse/develop/development/dependencies.html | ||
| """ | ||
| ) | ||
| raise |
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Poetry 1.3.2 or higher is now required when `poetry install`ing from source. |
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.