Skip to content

Commit

Permalink
fix(ci): restrict Python versions in Python CI (#67)
Browse files Browse the repository at this point in the history
Builds are currently failing because the maturin action is attempting to
build the wheel for every Python interpreter in the linux job. This
includes an alpha version of 3.13, but since 0.20.3 pyo3 will refuse to
build for that version of Python because forward-compatibility with
future 3.13 versions isn't guaranteed. We've also ended up with some
3.13 versions of augurs on PyPI :(

This commit restricts the versions to 3.7 - 3.12, the currently
supported versions of Python.

In future it's possible that maturin will allow us to only include
non-alpha/beta versions of Python with the '--find-interpreter' flag,
but until then we'll need to update them manually.

Relevant issue: PyO3/maturin#1960
  • Loading branch information
sd2k authored Feb 29, 2024
1 parent 2280146 commit 4b8d597
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter --manifest-path crates/pyaugurs/Cargo.toml
args: --release --out dist -i 3.7 -i 3.8 -i 3.9 -i 3.10 -i 3.11 -i 3.12 --manifest-path crates/pyaugurs/Cargo.toml
sccache: 'true'
manylinux: auto
- name: Upload wheels
Expand All @@ -57,7 +57,7 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter --manifest-path crates/pyaugurs/Cargo.toml
args: --release --out dist -i 3.7 -i 3.8 -i 3.9 -i 3.10 -i 3.11 -i 3.12 --manifest-path crates/pyaugurs/Cargo.toml
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v3
Expand All @@ -79,7 +79,7 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter --manifest-path crates/pyaugurs/Cargo.toml
args: --release --out dist -i 3.7 -i 3.8 -i 3.9 -i 3.10 -i 3.11 -i 3.12 --manifest-path crates/pyaugurs/Cargo.toml
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 4b8d597

Please sign in to comment.