Bump pypa/cibuildwheel from 2.23 to 3.0 (#91)

* Bump pypa/cibuildwheel from 2.23 to 3.0

Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.23 to 3.0.
- [Release notes](https://github.com/pypa/cibuildwheel/releases)
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
- [Commits](https://github.com/pypa/cibuildwheel/compare/v2.23...v3.0)

---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
  dependency-version: '3.0'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Stop skipping tests?

* Switch config to pyproject.toml, build only universal2

* They're bigger on older versions it seems

* Build all, build PyPy

* PyPy 3.9 is broken on Windows

* Build on macOS 14 for PyPy ARM

* clarify

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hynek Schlawack <hs@ox.cx>
This commit is contained in:
dependabot[bot] 2025-07-10 08:52:38 +02:00 committed by GitHub
parent c2bc26268c
commit 3ed9734847
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 11 deletions

View File

@ -20,8 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# macOS-13 is Intel, macOS-14 is ARM
os: [ubuntu-22.04, ubuntu-22.04-arm, windows-2022, windows-11-arm, macOS-13, macOS-14]
os: [ubuntu-22.04, ubuntu-22.04-arm, windows-2022, windows-11-arm, macOS-14]
steps:
- uses: actions/checkout@v4
@ -31,15 +30,8 @@ jobs:
fetch-tags: true
persist-credentials: false
- uses: pypa/cibuildwheel@v2.23
env:
# Only build CPython 3.9, because we have portable abi3 wheels.
CIBW_BUILD: "cp39-*"
CIBW_ARCHS_LINUX: "auto"
CIBW_ARCHS_MACOS: "auto universal2"
CIBW_TEST_COMMAND: python -Ic "from _argon2_cffi_bindings import ffi, lib; print(lib.ARGON2_VERSION_NUMBER)"
# https://github.com/pypa/cibuildwheel/pull/1169
CIBW_TEST_SKIP: "*-macosx_universal2:arm64"
# See pyproject.toml for config.
- uses: pypa/cibuildwheel@v3.0
- uses: actions/upload-artifact@v4
with:

View File

@ -58,6 +58,20 @@ where = ["src"]
local_scheme = "no-local-version"
[tool.cibuildwheel]
build = [
"cp39-*" , # We have portable abi3 wheels.
"pp310-*", # PyPy 3.9 is EOL and doesn't build on Windows anymore.
]
enable = ["pypy"]
before-all = "uname -a"
test-command = 'python -Ic "from _argon2_cffi_bindings import ffi, lib; print(lib.ARGON2_VERSION_NUMBER)"'
[tool.cibuildwheel.macos]
# PyPy has no universal2, so let's build them all, always.
archs = ["all"]
[tool.pytest.ini_options]
addopts = ["-ra", "--strict-markers", "--strict-config", "--capture=no"]
xfail_strict = true