diff options
author | Sean Quah <seanq@element.io> | 2022-03-16 15:48:27 +0000 |
---|---|---|
committer | Sean Quah <seanq@element.io> | 2022-03-16 15:48:27 +0000 |
commit | 05eaeb4deff151e1af70ba46528c80b1e97494bc (patch) | |
tree | 3be12afade40b0ee7d09ae2ead5162d2a9b36bba | |
parent | Use pip to install olddeps, as suggested by dmr (diff) | |
download | synapse-05eaeb4deff151e1af70ba46528c80b1e97494bc.tar.xz |
Work around twisted trunk test installing an old treq version
-rwxr-xr-x | .ci/patch_for_twisted_trunk.sh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/.ci/patch_for_twisted_trunk.sh b/.ci/patch_for_twisted_trunk.sh index d1c50f69f7..96368f9ba2 100755 --- a/.ci/patch_for_twisted_trunk.sh +++ b/.ci/patch_for_twisted_trunk.sh @@ -1,16 +1,22 @@ #!/bin/sh # replaces the dependency on Twisted with Twisted's trunk. -# We make full use of the poetry machinery (rather than just `pip install ...`) -# so that we'll catch dependency resolver problems that could arise from twisted -# bumping its dependencies. set -xe cd "$(dirname "$0")"/.. -sed -ibackup -e 's!^Twisted = .*!Twisted = { git = "https://github.com/twisted/twisted.git", rev = "trunk" }!' pyproject.toml +# We could make full use of the poetry machinery (rather than just `pip install ...`) +# so that we can catch dependency resolver problems that could arise from twisted +# bumping its dependencies... +# sed -ibackup -e 's!^Twisted = .*!Twisted = { git = "https://github.com/twisted/twisted.git", rev = "trunk" }!' pyproject.toml +# poetry lock --no-update +# poetry install --no-interaction --extras "all test" -poetry lock --no-update +# ...except we run into https://github.com/python-poetry/poetry/issues/5311, where +# poetry insists on installing an old version of treq, which isn't actually compatible +# with recent twisted releases. So let's just install twisted trunk using pip. poetry install --no-interaction --extras "all test" +poetry run pip install git+https://github.com/twisted/twisted.git@trunk + # Confirm the version of twisted in use poetry run pip show twisted |