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
Poetry: select olddeps using poetry
#12407
Merged
Merged
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
50910da
CI: Fix the olddeps job to run under poetry
a075c2d
olddeps: echo patch to confirm sed is sensible
cae1cf4
Olddeps: leave a TODO for caret bounds
544ef60
Olddeps: cat patched pyproject, instead of diffing
507d9e0
Changelog
35b546c
Confirm caret bound problem
fe43772
Add issue link
ae33fc5
Use `--jobs=2` for consistency with other CI
992caed
Update pyopenssl comment
204e419
Rearrange and improve comments
d8bee66
Remove debug, so oldeps runs after linting
695eb3c
Add suggestions missed when cherry-picking from #12337
160bbd9
No need for sed to make a backup
192d1ab
Don't use the old comment about pyopenssl 17
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 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 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 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 @@ | ||
Run the olddeps CI job using Poetry. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,29 +105,7 @@ commands = | |
# ) | ||
usedevelop=true | ||
|
||
# A test suite for the oldest supported versions of Python libraries, to catch | ||
# any uses of APIs not available in them. | ||
[testenv:py3-old] | ||
skip_install = true | ||
usedevelop = false | ||
deps = | ||
Automat == 0.8.0 | ||
lxml | ||
Comment on lines
-114
to
-115
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 don't see these being moved into the new bits, but maybe that's OK? 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. It should be okay.
|
||
# markupsafe 2.1 introduced a change that breaks Jinja 2.x. Since we depend on | ||
# Jinja >= 2.9, it means this test suite will fail if markupsafe >= 2.1 is installed. | ||
markupsafe < 2.1 | ||
{[base]deps} | ||
|
||
commands = | ||
# Make all greater-thans equals so we test the oldest version of our direct | ||
# dependencies, but make the pyopenssl 17.0, which can work against an | ||
# OpenSSL 1.1 compiled cryptography (as older ones don't compile on Travis). | ||
/bin/sh -c 'python -m synapse.python_dependencies | sed -e "s/>=/==/g" -e "/psycopg2/d" -e "s/pyopenssl==16.0.0/pyopenssl==17.0.0/" | xargs -d"\n" pip install' | ||
|
||
# Install Synapse itself. This won't update any libraries. | ||
pip install -e ".[test]" | ||
|
||
{[testenv]commands} | ||
|
||
[testenv:benchmark] | ||
deps = | ||
|
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.
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.
Moved into the script file as an explicit argument rather than
I don't think TRIAL_FLAGS is something trial actually supports; I think we just hacked it into our tox config:
synapse/tox.ini
Line 83 in 50910da