From c5658dd430e42eb16fd7edb26f919ef28f321c14 Mon Sep 17 00:00:00 2001 From: Matthieu Ancellin <31126826+mancellin@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:45:41 +0200 Subject: [PATCH] chore: update build_wheel action (#597) --- .github/workflows/build_wheels.yaml | 34 +++++++++++++++++++------ .github/workflows/test_new_commits.yaml | 2 +- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_wheels.yaml b/.github/workflows/build_wheels.yaml index 44422bdb..d1fb5a7c 100644 --- a/.github/workflows/build_wheels.yaml +++ b/.github/workflows/build_wheels.yaml @@ -28,17 +28,35 @@ jobs: version: '13' - name: Build wheels - uses: pypa/cibuildwheel@v2.17.0 + if: matrix.os == 'ubuntu-20.04' + uses: pypa/cibuildwheel@v2.21.1 env: - CIBW_SKIP: "pp* *i686* *musllinux* *win32*" - # Package the DLL dependencies in the wheel for windows (done by default for the other platforms). - # delvewheel cannot mangle the libraries, stripping does not work. + CIBW_SKIP: "pp* *i686* *musllinux*" + # As of Sept 2024, Python 3.13 is troublesome because of lack of Pandas for Python 3.13. + + - name: Build wheels + if: matrix.os == 'macos-12' + uses: pypa/cibuildwheel@v2.21.1 + env: + CIBW_SKIP: "pp* cp313*" + CIBW_ENVIRONMENT: MACOSX_DEPLOYMENT_TARGET=12.0 + + - name: Build wheels + if: matrix.os == 'macos-14' + uses: pypa/cibuildwheel@v2.21.1 + env: + CIBW_SKIP: "pp* cp313*" + CIBW_ENVIRONMENT: MACOSX_DEPLOYMENT_TARGET=14.0 + + - name: Build wheels + if: matrix.os == 'windows-2019' + uses: pypa/cibuildwheel@v2.21.1 + env: + CIBW_SKIP: "pp* cp313* *win32*" CIBW_BEFORE_BUILD_WINDOWS: pip install delvewheel CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel show {wheel} && delvewheel repair -w {dest_dir} {wheel} --no-mangle-all" - # with: - # package-dir: . - # output-dir: wheelhouse - # config-file: "{package}/pyproject.toml" + # Package the DLL dependencies in the wheel for windows (done by default for the other platforms). + # delvewheel cannot mangle the libraries, stripping does not work. - uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/test_new_commits.yaml b/.github/workflows/test_new_commits.yaml index c55f029b..fb29e11f 100644 --- a/.github/workflows/test_new_commits.yaml +++ b/.github/workflows/test_new_commits.yaml @@ -44,7 +44,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Set up nox - uses: wntrblm/nox@2024.03.02 + uses: wntrblm/nox@2024.04.15 - name: Run nox session run: nox -s build_and_test_on_locked_env