Skip to content

update to PyO3 0.22, add 3.13 support #1340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 24 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- 'pypy3.9'
- 'pypy3.10'

Expand All @@ -88,6 +89,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

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

Expand Down Expand Up @@ -411,15 +413,15 @@ jobs:
- os: linux
manylinux: auto
target: armv7
interpreter: 3.8 3.9 3.10 3.11 3.12
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
- os: linux
manylinux: auto
target: ppc64le
interpreter: 3.8 3.9 3.10 3.11 3.12
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
- os: linux
manylinux: auto
target: s390x
interpreter: 3.8 3.9 3.10 3.11 3.12
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
- os: linux
manylinux: auto
target: x86_64
Expand All @@ -436,27 +438,33 @@ jobs:
# macos;
# all versions x86_64
# arm pypy and older pythons which can't be run on the arm hardware for PGO
#
# FIXME https://github.com/PyO3/maturin-action/issues/275
# cffi prevents `maturin-action` working on macOS 3.13 for now for the optimized build
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cffi is close, they have a pre release out with support :)

- os: macos
target: x86_64
- os: macos
target: aarch64
interpreter: 3.8 3.9 pypy3.9 pypy3.10
interpreter: 3.8 3.9 pypy3.9 pypy3.10 # 3.13

# windows;
# x86_64 pypy builds are not PGO optimized
# i686 not supported by pypy
# aarch64 only 3.11 and up, also not PGO optimized
#
# FIXME https://github.com/PyO3/maturin-action/issues/275
# cffi prevents `maturin-action` working on Windows 3.13 for now for the optimized build
- os: windows
target: x86_64
interpreter: pypy3.9 pypy3.10
interpreter: pypy3.9 pypy3.10 3.13
- os: windows
target: i686
python-architecture: x86
interpreter: 3.8 3.9 3.10 3.11 3.12
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
# FIXME aarch64 builds broken, see https://github.com/PyO3/maturin/issues/2110
# - os: windows
# target: aarch64
# interpreter: 3.11 3.12
# interpreter: 3.11 3.12 3.13

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

Expand All @@ -504,7 +512,7 @@ jobs:
fail-fast: false
matrix:
os: [linux, windows, macos]
interpreter: ['3.8', '3.9', '3.10', '3.11', '3.12']
interpreter: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
include:
# standard runners with override for macos arm
- os: linux
Expand All @@ -520,6 +528,12 @@ jobs:
interpreter: '3.8'
- os: macos
interpreter: '3.9'
# https://github.com/PyO3/maturin-action/issues/275
# cffi prevents `maturin-action` working on Windows & macOS 3.13 for now
- os: windows
interpreter: '3.13'
- os: macos
interpreter: '3.13'

runs-on: ${{ matrix.runs-on }}
steps:
Expand All @@ -529,6 +543,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.interpreter }}
allow-prereleases: true

- name: install rust stable
id: rust-toolchain
Expand Down
Loading
Loading