Skip to content

Commit

Permalink
Add support for building Python 3.13 wheels, and bump MacOS version (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marsfan authored Dec 14, 2024
1 parent a63f9c9 commit 87e98c4
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 11 deletions.
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
80 changes: 69 additions & 11 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,31 +92,43 @@ 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-image: macos-13
os-name: mac
macos-min-version: '10.9'
python-arch: 'x86_64'
python-version: '3.9'
numpy-version: '2.0.*'
- os-image: macos-12
- os-image: macos-13
os-name: mac
macos-min-version: '10.9'
python-arch: 'x86_64'
python-version: '3.10'
numpy-version: '2.0.*'
- os-image: macos-12
- os-image: macos-13
os-name: mac
macos-min-version: '10.9'
python-arch: 'x86_64'
python-version: '3.11'
numpy-version: '2.0.*'
- os-image: macos-12
- os-image: macos-13
os-name: mac
macos-min-version: '10.9'
python-arch: 'x86_64'
python-version: '3.12'
numpy-version: '2.0.*'
- os-image: macos-13
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,37 +310,49 @@ 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-image: macos-13
os-name: mac
macos-min-version: '10.9'
python-arch: 'x86_64'
python-version: '3.9'
numpy-version: '2.0.*'
- os-image: macos-12
- os-image: macos-13
os-name: mac
macos-min-version: '10.9'
python-arch: 'x86_64'
python-version: '3.10'
numpy-version: '2.0.*'
- os-image: macos-12
- os-image: macos-13
os-name: mac
macos-min-version: '10.9'
python-arch: 'x86_64'
python-version: '3.11'
numpy-version: '2.0.*'
- os-image: macos-12
- os-image: macos-13
os-name: mac
macos-min-version: '10.9'
python-arch: 'x86_64'
python-version: '3.12'
numpy-version: '2.0.*'
- os-image: macos-12
- os-image: macos-13
os-name: mac
macos-min-version: '10.9'
python-arch: 'x86_64'
python-version: '3.12'
numpy-version: '1.26.4'
- os-image: macos-13
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

0 comments on commit 87e98c4

Please sign in to comment.