From 05d79167c262c9c0fbcb4c12e56a776610291bb3 Mon Sep 17 00:00:00 2001 From: s0600204 Date: Wed, 16 Aug 2023 02:38:40 +0100 Subject: [PATCH] Update lockfile rebuild workflow 2023-08-16 * Add newer versions of poetry * Attempt to pin poetry's jsonschema to a version prior to v4.18.0 - See issues 1114, 1115, 1116, 1117 and discussion 1118 in the jsonschema repo on GitHub. --- .github/workflows/lockfile.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/lockfile.yml b/.github/workflows/lockfile.yml index 35c2fe66a..7cde7921c 100644 --- a/.github/workflows/lockfile.yml +++ b/.github/workflows/lockfile.yml @@ -35,6 +35,10 @@ jobs: shell: bash poetVers: + - 1.5.1 + - 1.5.0 + - 1.4.2 + - 1.4.1 - 1.4.0 - 1.3.1 - 1.3.0 @@ -69,6 +73,18 @@ jobs: run: | python -m pip install -U pip + # poetry requires jsonschema which, as of jsonschema v4.18.0, requires rpds-py, which + # requires a rust compiler (unless rpds-py is installed from a wheel, and there isn't one + # provided for use with MSys2 on Windows). + # + # Besides the question of why one should need a rust compiler to build a python package, + # as this is only a build-time dependancy, we should be able to satisfy poetry's requirement + # by specifying a version, and hope that pip doesn't try to update it to a newer version. + - name: Pin jsonschema + if: ${{ matrix.sys.os == 'windows-2019' }} + run: | + pip install "jsonschema<4.18.0" + - name: Install Poetry via pip run: | pip install poetry==${{ matrix.poetVers }}