Skip to content
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

Add support for building Python 3.13 wheels #249

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
2 changes: 2 additions & 0 deletions .github/scripts/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ elif [ $PYTHON_VERSION == "3.11" ]; then
PYBIN="/opt/python/cp311-cp311/bin"
elif [ $PYTHON_VERSION == "3.12" ]; then
PYBIN="/opt/python/cp312-cp312/bin"
elif [ $PYTHON_VERSION == "3.13" ]; then
PYBIN="/opt/python/cp313-cp313/bin"
else
echo "Unsupported Python version $PYTHON_VERSION"
exit 1
Expand Down
2 changes: 2 additions & 0 deletions .github/scripts/test-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ elif [ $PYTHON_VERSION == "3.11" ]; then
PYBIN="/opt/python/cp311-cp311/bin"
elif [ $PYTHON_VERSION == "3.12" ]; then
PYBIN="/opt/python/cp312-cp312/bin"
elif [ $PYTHON_VERSION == "3.13" ]; then
PYBIN="/opt/python/cp313-cp313/bin"
else
echo "Unsupported Python version $PYTHON_VERSION"
exit 1
Expand Down
62 changes: 60 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ jobs:
python-arch: 'x86_64'
python-version: '3.12'
numpy-version: '2.0.*'
- os-image: ubuntu-latest
os-name: linux
docker-image: quay.io/pypa/manylinux2014_x86_64
python-arch: 'x86_64'
python-version: '3.13'
numpy-version: '2.1.*'

- os-image: ubuntu-latest
os-name: linux
Expand All @@ -86,6 +92,12 @@ jobs:
python-arch: 'aarch64'
python-version: '3.12'
numpy-version: '2.0.*'
- os-image: ubuntu-latest
os-name: linux
docker-image: quay.io/pypa/manylinux2014_aarch64
python-arch: 'aarch64'
python-version: '3.13'
numpy-version: '2.1.*'

- os-image: macos-12
os-name: mac
Expand All @@ -111,6 +123,12 @@ jobs:
python-arch: 'x86_64'
python-version: '3.12'
numpy-version: '2.0.*'
- os-image: macos-12
os-name: mac
macos-min-version: '10.9'
python-arch: 'x86_64'
python-version: '3.13'
numpy-version: '2.1.*'

- os-image: macos-14 # M1
os-name: mac
Expand All @@ -136,6 +154,12 @@ jobs:
python-arch: 'arm64'
python-version: '3.12'
numpy-version: '2.0.*'
- os-image: macos-14 # M1
os-name: mac
macos-min-version: '11.0'
python-arch: 'arm64'
python-version: '3.13'
numpy-version: '2.1.*'

- os-image: windows-2019
os-name: windows
Expand All @@ -157,6 +181,11 @@ jobs:
python-arch: 'x86_64'
python-version: '3.12'
numpy-version: '2.0.*'
- os-image: windows-2019
os-name: windows
python-arch: 'x86_64'
python-version: '3.13'
numpy-version: '2.1.*'

runs-on: ${{ matrix.config.os-image }}

Expand Down Expand Up @@ -244,6 +273,12 @@ jobs:
python-arch: 'x86_64'
python-version: '3.12'
numpy-version: '1.26.4'
- os-image: ubuntu-latest
os-name: linux
docker-image: quay.io/pypa/manylinux2014_x86_64
python-arch: 'x86_64'
python-version: '3.13'
numpy-version: '2.1.*'

- os-image: ubuntu-latest
os-name: linux
Expand Down Expand Up @@ -275,6 +310,12 @@ jobs:
python-arch: 'aarch64'
python-version: '3.12'
numpy-version: '1.26.4'
- os-image: ubuntu-latest
os-name: linux
docker-image: quay.io/pypa/manylinux2014_aarch64
python-arch: 'aarch64'
python-version: '3.13'
numpy-version: '2.1.*'

- os-image: macos-12
os-name: mac
Expand Down Expand Up @@ -306,6 +347,12 @@ jobs:
python-arch: 'x86_64'
python-version: '3.12'
numpy-version: '1.26.4'
- os-image: macos-12
os-name: mac
macos-min-version: '10.9'
python-arch: 'x86_64'
python-version: '3.13'
numpy-version: '2.1.*'

- os-image: macos-14 # M1
os-name: mac
Expand Down Expand Up @@ -337,6 +384,12 @@ jobs:
python-arch: 'arm64'
python-version: '3.12'
numpy-version: '1.26.4'
- os-image: macos-14 # M1
os-name: mac
macos-min-version: '11.0'
python-arch: 'arm64'
python-version: '3.13'
numpy-version: '2.1.*'

- os-image: windows-2019
os-name: windows
Expand All @@ -363,6 +416,11 @@ jobs:
python-arch: 'x86_64'
python-version: '3.12'
numpy-version: '1.26.4'
- os-image: windows-2019
os-name: windows
python-arch: 'x86_64'
python-version: '3.13'
numpy-version: '2.1.*'

runs-on: ${{ matrix.config.os-image }}

Expand Down Expand Up @@ -428,7 +486,7 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -471,7 +529,7 @@ jobs:

- name: Setup Python
uses: actions/setup-python@v5

- name: Upload wheels to PyPI
run: |
pip install twine
Expand Down