Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
olddeps: support caret bounds
Browse files Browse the repository at this point in the history
With a bit of extra sed we can ensure that we use old versions of caret
bounds [1] without knobbling the range of Python versions we support.

[1]: https://python-poetry.org/docs/dependency-specification/#caret-requirements
  • Loading branch information
David Robertson committed Jun 16, 2022
1 parent 90cadcd commit 21f2100
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .ci/scripts/test_old_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ export VIRTUALENV_NO_DOWNLOAD=1

# Patch the project definitions in-place:
# - Replace all lower and tilde bounds with exact bounds
# - Make the pyopenssl 17.0, which is the oldest version that works with
# a `cryptography` compiled against OpenSSL 1.1.
# - Replace all caret bounds---but not the one that defines the supported Python version!
# - Delete all lines referring to psycopg2 --- so no testing of postgres support.
# - Use pyopenssl 17.0, which is the oldest version that works with
# a `cryptography` compiled against OpenSSL 1.1.
# - Omit systemd: we're not logging to journal here.

# TODO: also replace caret bounds, see https://python-poetry.org/docs/dependency-specification/#version-constraints
Expand All @@ -40,6 +41,7 @@ export VIRTUALENV_NO_DOWNLOAD=1

sed -i \
-e "s/[~>]=/==/g" \
-e '/^python = "^/!s/\^/==/g' \
-e "/psycopg2/d" \
-e 's/pyOpenSSL = "==16.0.0"/pyOpenSSL = "==17.0.0"/' \
-e '/systemd/d' \
Expand Down

0 comments on commit 21f2100

Please sign in to comment.