Skip to content

Commit

Permalink
Update lockfile rebuild workflow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
s0600204 committed Aug 16, 2023
1 parent 23eb7d9 commit 05d7916
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/lockfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 05d7916

Please sign in to comment.