summary refs log tree commit diff
path: root/.ci/scripts/prepare_old_deps.sh
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-05-12 11:21:11 +0100
committerGitHub <noreply@github.com>2023-05-12 11:21:11 +0100
commitc96a1d2a27e3fe84b2648d375317cba38bc4654b (patch)
treec2b036cfc463e4df15be733451fcebcc12f84196 /.ci/scripts/prepare_old_deps.sh
parentAdd pkg-config package to Stage 0 (#15567) (diff)
downloadsynapse-c96a1d2a27e3fe84b2648d375317cba38bc4654b.tar.xz
Relax poetry-core lower bound to 1.1.0 (#15571)
See https://github.com/matrix-org/synapse/pull/15566#issuecomment-1543844104

Also check you can `pip install` in the old-deps CI job
Diffstat (limited to '.ci/scripts/prepare_old_deps.sh')
-rwxr-xr-x.ci/scripts/prepare_old_deps.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/.ci/scripts/prepare_old_deps.sh b/.ci/scripts/prepare_old_deps.sh

index e536a9db8b..580f87bbdf 100755 --- a/.ci/scripts/prepare_old_deps.sh +++ b/.ci/scripts/prepare_old_deps.sh
@@ -31,35 +31,6 @@ sed -i \ -e '/systemd/d' \ pyproject.toml -# Use poetry to do the installation. This ensures that the versions are all mutually -# compatible (as far the package metadata declares, anyway); pip's package resolver -# is more lax. -# -# Rather than `poetry install --no-dev`, we drop all dev dependencies and the dev-docs -# group from the toml file. This means we don't have to ensure compatibility between -# old deps and dev tools. - -pip install toml wheel - -REMOVE_DEV_DEPENDENCIES=" -import toml -with open('pyproject.toml', 'r') as f: - data = toml.loads(f.read()) - -del data['tool']['poetry']['dev-dependencies'] -del data['tool']['poetry']['group']['dev-docs'] - -with open('pyproject.toml', 'w') as f: - toml.dump(data, f) -" -python3 -c "$REMOVE_DEV_DEPENDENCIES" - -pip install poetry==1.3.2 -poetry lock - echo "::group::Patched pyproject.toml" cat pyproject.toml echo "::endgroup::" -echo "::group::Lockfile after patch" -cat poetry.lock -echo "::endgroup::"