summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-03-31 18:21:31 +0100
committerDavid Robertson <davidr@element.io>2022-03-31 18:22:14 +0100
commite96fd31ef15810d84f7d5d4dc3a16be0ef28e1bb (patch)
tree9e6964487aff32a004d89b5e7b7efd78c0a5123f
parentolddeps: echo patch to confirm sed is sensible (diff)
downloadsynapse-e96fd31ef15810d84f7d5d4dc3a16be0ef28e1bb.tar.xz
Olddeps: leave a TODO for caret bounds
-rwxr-xr-x.ci/scripts/test_old_deps.sh18
1 files changed, 12 insertions, 6 deletions
diff --git a/.ci/scripts/test_old_deps.sh b/.ci/scripts/test_old_deps.sh
index 3a227f530a..a08e0d3150 100755
--- a/.ci/scripts/test_old_deps.sh
+++ b/.ci/scripts/test_old_deps.sh
@@ -25,12 +25,18 @@ export VIRTUALENV_NO_DOWNLOAD=1
 #   https://github.com/pypa/pip/issues/8085
 # to select the lowest possible versions, rather than resorting to this sed script.
 
-# patch the project definitions in-place
-# replace all lower bounds with exact bounds
-# but make the pyopenssl 17.0, which can work against an
-# OpenSSL 1.1 compiled cryptography (as older ones don't compile on Travis).
-# delete all lines referring to psycopg2 --- so no testing of postgres support
-# Omit systemd: we're not logging to journal here.
+# Patch the project definitions in-place:
+# - Replace all lower and tilde bounds with exact bounds
+# - Make the pyopenssl 17.0, which can work against an
+#   OpenSSL 1.1 compiled cryptography (as older ones don't compile on Travis).
+# - Delete all lines referring to psycopg2 --- so no testing of postgres support.
+# - Omit systemd: we're not logging to journal here.
+
+# TODO: also replace caret bounds, see https://python-poetry.org/docs/dependency-specification/#version-constraints
+# We don't use these yet, but IIRC they are the default bound used when you `poetry add`.
+# The sed expression 's/\^/==/g' ought to do the trick. But it would also change
+# `python = "^3.7"` to `python = "==3.7", which would mean we fail because olddeps
+# runs on 3.8 (#12343).
 
 sed -i-backup \
    -e "s/[~>]=/==/g" \