Skip to content

Commit ef7f81c

Browse files
authored
update to PyO3 0.22, add 3.13 support (#1340)
1 parent aba682e commit ef7f81c

26 files changed

+173
-251
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
- '3.10'
6969
- '3.11'
7070
- '3.12'
71+
- '3.13'
7172
- 'pypy3.9'
7273
- 'pypy3.10'
7374

@@ -88,6 +89,7 @@ jobs:
8889
uses: actions/setup-python@v5
8990
with:
9091
python-version: ${{ matrix.python-version }}
92+
allow-prereleases: true
9193

9294
- run: pip install -r tests/requirements.txt
9395

@@ -411,15 +413,15 @@ jobs:
411413
- os: linux
412414
manylinux: auto
413415
target: armv7
414-
interpreter: 3.8 3.9 3.10 3.11 3.12
416+
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
415417
- os: linux
416418
manylinux: auto
417419
target: ppc64le
418-
interpreter: 3.8 3.9 3.10 3.11 3.12
420+
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
419421
- os: linux
420422
manylinux: auto
421423
target: s390x
422-
interpreter: 3.8 3.9 3.10 3.11 3.12
424+
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
423425
- os: linux
424426
manylinux: auto
425427
target: x86_64
@@ -436,27 +438,33 @@ jobs:
436438
# macos;
437439
# all versions x86_64
438440
# arm pypy and older pythons which can't be run on the arm hardware for PGO
441+
#
442+
# FIXME https://github.com/PyO3/maturin-action/issues/275
443+
# cffi prevents `maturin-action` working on macOS 3.13 for now for the optimized build
439444
- os: macos
440445
target: x86_64
441446
- os: macos
442447
target: aarch64
443-
interpreter: 3.8 3.9 pypy3.9 pypy3.10
448+
interpreter: 3.8 3.9 pypy3.9 pypy3.10 # 3.13
444449

445450
# windows;
446451
# x86_64 pypy builds are not PGO optimized
447452
# i686 not supported by pypy
448453
# aarch64 only 3.11 and up, also not PGO optimized
454+
#
455+
# FIXME https://github.com/PyO3/maturin-action/issues/275
456+
# cffi prevents `maturin-action` working on Windows 3.13 for now for the optimized build
449457
- os: windows
450458
target: x86_64
451-
interpreter: pypy3.9 pypy3.10
459+
interpreter: pypy3.9 pypy3.10 3.13
452460
- os: windows
453461
target: i686
454462
python-architecture: x86
455-
interpreter: 3.8 3.9 3.10 3.11 3.12
463+
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
456464
# FIXME aarch64 builds broken, see https://github.com/PyO3/maturin/issues/2110
457465
# - os: windows
458466
# target: aarch64
459-
# interpreter: 3.11 3.12
467+
# interpreter: 3.11 3.12 3.13
460468

461469
exclude:
462470
# See above; disabled for now.
@@ -483,7 +491,7 @@ jobs:
483491
with:
484492
target: ${{ matrix.target }}
485493
manylinux: ${{ matrix.manylinux }}
486-
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 pypy3.9 pypy3.10' }}
494+
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10' }}
487495
rust-toolchain: stable
488496
docker-options: -e CI
489497

@@ -504,7 +512,7 @@ jobs:
504512
fail-fast: false
505513
matrix:
506514
os: [linux, windows, macos]
507-
interpreter: ['3.8', '3.9', '3.10', '3.11', '3.12']
515+
interpreter: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
508516
include:
509517
# standard runners with override for macos arm
510518
- os: linux
@@ -520,6 +528,12 @@ jobs:
520528
interpreter: '3.8'
521529
- os: macos
522530
interpreter: '3.9'
531+
# https://github.com/PyO3/maturin-action/issues/275
532+
# cffi prevents `maturin-action` working on Windows & macOS 3.13 for now
533+
- os: windows
534+
interpreter: '3.13'
535+
- os: macos
536+
interpreter: '3.13'
523537

524538
runs-on: ${{ matrix.runs-on }}
525539
steps:
@@ -529,6 +543,7 @@ jobs:
529543
uses: actions/setup-python@v5
530544
with:
531545
python-version: ${{ matrix.interpreter }}
546+
allow-prereleases: true
532547

533548
- name: install rust stable
534549
id: rust-toolchain

0 commit comments

Comments
 (0)