From cbaae108c0801b0b2691f01259d25008df7ab9c0 Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Thu, 19 Sep 2024 11:36:58 +0200 Subject: [PATCH] Enable build for Python 3.13 (#82) --- .github/workflows/wheel.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index 0e3ab9f4..a752cd16 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -68,9 +68,17 @@ jobs: matrix: os: - ubuntu-latest - # windows-latest + - windows-latest - macos-12 - python: ['38', '39', '310', '311', '312'] + - macos-latest + python: ['38', '39', '310', '311', '312', '313'] + exclude: + - os: windows-latest + python: '39' + - os: windows-latest + python: '310' + - os: macos-latest + python: '38' defaults: run: @@ -83,7 +91,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 @@ -96,8 +104,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-latest' && 'arm64' || 'x86_64' }} + CIBW_ENVIRONMENT_MACOS: > + CC=gcc-14 CXX=g++-14 FC=gfortran-14 + MACOSX_DEPLOYMENT_TARGET=${{ matrix.os == 'macos-latest' && '14.0' || '12.0' }} + CIBW_BEFORE_ALL_MACOS: brew install gcc@14 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"