From e66e868a4e4581cfe9b93c4541e8a6227e6d80ca Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Thu, 19 Sep 2024 22:17:23 +0200 Subject: [PATCH] improve cibuildwheel tasks --- .github/workflows/pythonbuild.yml | 24 ++++++------------------ HISTORY.md | 1 + 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/pythonbuild.yml b/.github/workflows/pythonbuild.yml index 292655e..df303df 100644 --- a/.github/workflows/pythonbuild.yml +++ b/.github/workflows/pythonbuild.yml @@ -58,24 +58,13 @@ jobs: fail-fast: false matrix: arch: [auto32, auto64, ARM64] - python_tag: ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*", "pp39-*", "pp310-*"] - exclude: - # PyPy only supports x86_64 on Windows - - arch: auto32 - python_tag: "pp39-*" - - arch: auto32 - python_tag: "pp310-*" - - arch: ARM64 - python_tag: "pp39-*" - - arch: ARM64 - python_tag: "pp310-*" - env: - CIBW_BUILD: ${{matrix.python_tag}} CIBW_ARCHS: ${{matrix.arch}} + CIBW_TEST_SKIP: "*-win32" CIBW_TEST_REQUIRES: pytest hypothesis CIBW_TEST_COMMAND: pytest {package}/tests CIBW_BUILD_VERBOSITY: 3 + CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9" steps: - uses: actions/download-artifact@v4 @@ -107,15 +96,14 @@ jobs: strategy: fail-fast: false matrix: - arch: [x86_64, arm64, universal2] - python_tag: ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*", "pp39-*", "pp310-*"] + os: [macos-13, macos-14] env: - CIBW_BUILD: ${{matrix.python_tag}} - CIBW_ARCHS: ${{matrix.arch}} - CIBW_TEST_SKIP: "*-macosx_{arm64,universal2}" + CIBW_ARCHS: native + CIBW_TEST_SKIP: "pp*-macosx_*" CIBW_TEST_REQUIRES: pytest hypothesis CIBW_TEST_COMMAND: pytest {package}/tests CIBW_BUILD_VERBOSITY: 3 + CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9" steps: - uses: actions/download-artifact@v4 diff --git a/HISTORY.md b/HISTORY.md index 42c44e5..6bb47fb 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -3,6 +3,7 @@ ### v0.26.0 #### Changed - add support for Python 3.13 +- drop support for Python 3.8 - switch build system to `scikit-build-core` ### v0.25.1