Skip to content

Commit

Permalink
Enable build for Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
awvwgk committed Sep 18, 2024
1 parent 5024500 commit 8e0216e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ jobs:
matrix:
os: [ubuntu-latest]
gcc_v: [10]
python_v: ['3.8', '3.9', '3.10', '3.11', '3.12']
python_v: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']

env:
FC: gfortran
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ jobs:
matrix:
os:
- ubuntu-latest
# windows-latest
- windows-latest
- macos-12
python: ['38', '39', '310', '311', '312']
- macos-13
python: ['38', '39', '310', '311', '312', '313']

defaults:
run:
Expand All @@ -83,7 +84,7 @@ jobs:
python-version: '3.x'

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.18.1
run: python -m pip install cibuildwheel==2.21.1

- name: Download sdist
uses: actions/download-artifact@v4
Expand All @@ -96,8 +97,11 @@ jobs:
CIBW_ARCHS: auto64
CIBW_BUILD: "*${{ matrix.python }}-*"
CIBW_BUILD_VERBOSITY: 1
CIBW_ARCHS_MACOS: x86_64
CIBW_ENVIRONMENT_MACOS: CC=gcc-12 CXX=g++-12 FC=gfortran-12 MACOSX_DEPLOYMENT_TARGET=12.0
CIBW_ARCHS_MACOS: ${{ matrix.os == 'macos-13' && 'arm64' || 'x86_64' }}
CIBW_ENVIRONMENT_MACOS: >
CC=gcc-14 CXX=g++-14 FC=gfortran-14
MACOSX_DEPLOYMENT_TARGET=${{ matrix.os == 'macos-13' && '14.0' || '12.0' }}
CIBW_BEFORE_ALL_MACOS: brew install gcc@14 && brew uninstall gcc@11 gcc@12 gcc@13 && brew autoremove
CIBW_BEFORE_BUILD_WINDOWS: choco upgrade mingw && pip install delvewheel
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel show {wheel} && delvewheel repair -w {dest_dir} {wheel} --no-mangle-all"

Expand Down

0 comments on commit 8e0216e

Please sign in to comment.