From b0ef95a31dbae04af5a5edf0c02a8b5cccc6b51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Vandecr=C3=A8me?= Date: Wed, 30 Oct 2024 10:37:21 +0100 Subject: [PATCH] Build wheels for python 3.13 Also make the supported versions explicit instead of relying on versions installed on the running container --- .github/workflows/distribute.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/distribute.yml b/.github/workflows/distribute.yml index 60b5d15..5cf574e 100644 --- a/.github/workflows/distribute.yml +++ b/.github/workflows/distribute.yml @@ -12,6 +12,10 @@ on: tags: - '*' +env: + UNIX_PYTHON_VERSIONS: 3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.7 pypy3.8 pypy3.9 pypy3.10 + WINDOWS_PYTHON_VERSIONS: 3.7 3.8 3.9 3.10 3.11 3.12 + permissions: contents: read @@ -30,7 +34,7 @@ jobs: uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --release --out dist --find-interpreter + args: --release --out dist --interpreter ${{ env.UNIX_PYTHON_VERSIONS }} sccache: 'true' manylinux: auto - name: Upload wheels @@ -63,7 +67,7 @@ jobs: uses: PyO3/maturin-action@v1 with: target: ${{ matrix.platform.target }} - args: --release --out dist --find-interpreter + args: --release --out dist --interpreter ${{ env.UNIX_PYTHON_VERSIONS }} sccache: 'true' manylinux: musllinux_1_1 container: off @@ -88,7 +92,7 @@ jobs: uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --release --out dist --find-interpreter + args: --release --out dist --interpreter ${{ env.WINDOWS_PYTHON_VERSIONS }} sccache: 'true' - name: Upload wheels uses: actions/upload-artifact@v3 @@ -110,7 +114,7 @@ jobs: uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --release --out dist --find-interpreter + args: --release --out dist --interpreter ${{ env.UNIX_PYTHON_VERSIONS }} sccache: 'true' - name: Upload wheels uses: actions/upload-artifact@v3