Henry Schreiner and Matthieu Darbois
2aaa489371
fix: support wider range of verbosity settings on other build backends ( #2339 )
...
* fix: support wider range of verbosity settings on other build backends
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* Apply suggestions from code review
Co-authored-by: Matthieu Darbois <mayeut@users.noreply.github.com >
* refactor: address review comments
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: Matthieu Darbois <mayeut@users.noreply.github.com >
2025-04-06 18:50:24 +02:00
cibuildwheel-bot[bot] and cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>
6c426a3a17
[Bot] Update dependencies ( #2346 )
...
Update dependencies
Co-authored-by: cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>
2025-04-01 23:28:17 -04:00
pre-commit-ci[bot] and pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
55bd91a92a
[pre-commit.ci] pre-commit autoupdate ( #2343 )
...
updates:
- [github.com/python-jsonschema/check-jsonschema: 0.31.3 → 0.32.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.31.3...0.32.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-04-01 10:25:09 -04:00
cibuildwheel-bot[bot] and cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>
279221e0d6
[Bot] Update dependencies ( #2341 )
...
Update dependencies
Co-authored-by: cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>
2025-03-31 12:46:45 -04:00
Matthieu Darbois
0dd98e95f1
ci: revert QEMU workaround ( #2340 )
2025-03-30 09:44:32 +01:00
Russell Keith-Magee
4ef7b3770f
ci: correct Github Actions CI instability for iOS. ( #2337 )
...
* Correct Github Actions CI instability for iOS.
* Add a dummy serial test so CircleCI passes serial test discovery.
2025-03-28 10:33:51 -04:00
Joe Rickerby
094782a41d
Merge branch '2.x'
2025-03-24 21:30:34 +00:00
Joe Rickerby
d04cacbc98
Bump version: v2.23.2
v2.23.2
2025-03-24 21:25:38 +00:00
Matthieu Darbois
5f4e019684
[2.x] Update dependencies ( #2334 )
2025-03-24 21:17:56 +00:00
pre-commit-ci[bot] and pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2bb8b1e73d
[pre-commit.ci] pre-commit autoupdate ( #2333 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.0 → v0.11.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.0...v0.11.2 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-03-24 20:58:34 +01:00
Matthieu Darbois
e6eff86c98
feat: move default manylinux build to manylinux_2_28 ( #2330 )
2025-03-24 17:00:44 +00:00
Joe Rickerby
141e702872
feat: stricter selector parsing, refactor to platforms module ( #2291 )
...
* feat: stricter selector parsing, refactor to `platforms` module
- Use a different method to build nothing
- Make the check aware of enable groups
* optimise unit tests - a specific platform module API for all configs
Unit test time: 26.2s -> 13.1s
* Remove unnecessary get_platform_module function
2025-03-24 16:58:47 +00:00
4db404ca50
[Bot] Update dependencies ( #2332 )
...
* Update dependencies
* fix: stop producing `cibuildwheel/resources/constraints-python37.txt`
---------
Co-authored-by: cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>
Co-authored-by: mayeut <mayeut@users.noreply.github.com >
2025-03-24 11:50:40 -04:00
Henry Schreiner
2efa648f38
fix: always resolve --python argument ( #2328 ) ( #2331 )
...
fix: always resolve --python argument (#2328 )
fix: always resolve the --python argument
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2025-03-23 15:03:30 -04:00
Matthieu Darbois and Joe Rickerby
059d8ea25a
feat: drop EOL manylinux images ( #2316 )
...
* drop EOL manylinux images
* chore: use multi-arch manylinux images as a source for image tag
Using multi-arch images directly messes with parallel tests for now.
Using them as a source for image tag ensures that all architecture specific tags are pointing to the same tag for a given manylinux / musllinux policy.
* Apply review suggestion
Co-authored-by: Joe Rickerby <joerick@mac.com >
---------
Co-authored-by: Joe Rickerby <joerick@mac.com >
2025-03-22 12:26:38 -04:00
Matthieu Darbois
3b9c8d4d22
fix: don't seed setuptools/wheel in tests virtual environments. ( #2329 )
2025-03-22 12:25:58 -04:00
Henry Schreiner
462c99589a
fix: always resolve --python argument ( #2328 )
...
fix: always resolve the --python argument
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2025-03-22 07:32:25 +01:00
Hadi Alqattan and Henry Schreiner
fccd32f9b2
Doc: add a note about Rustc's minimum MACOSX_DEPLOYMENT_TARGET requirement ( #2326 )
...
* doc: add a note about rustc's minimum MACOSX_DEPLOYMENT_TARGET requirement
* Update docs/platforms/macos.md
* Update faq.md
---------
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com >
2025-03-22 07:29:45 +01:00
Henry Schreiner and mayeut
be2a707315
feat: use build by default ( #2321 )
...
* feat: use build by default
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* fix: test/test_before_build.py:test
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: mayeut <mayeut@users.noreply.github.com >
2025-03-21 09:49:04 -04:00
21888b531f
[pre-commit.ci] pre-commit autoupdate ( #2320 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.10 → v0.11.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.10...v0.11.0 )
* chore: use Path.iterdir
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* fix: Path.iterdir usage
os.listdir returned entry names rather than their full path
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: mayeut <mayeut@users.noreply.github.com >
2025-03-21 12:51:51 +00:00
Joe Rickerby
54a0cd0b22
Merge branch '2.x'
...
# Conflicts:
# cibuildwheel/__init__.py
# cibuildwheel/options.py
# cibuildwheel/resources/pinned_docker_images.cfg
# cibuildwheel/resources/virtualenv.toml
# docs/setup.md
# examples/github-deploy.yml
# unit_test/options_test.py
2025-03-21 10:41:39 +00:00
cibuildwheel-bot[bot] and cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>
1826f70682
[Bot] Update dependencies ( #2319 )
...
Update dependencies
Co-authored-by: cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>
2025-03-17 10:10:58 -04:00
Joe Rickerby
42728e866b
Bump version: v2.23.1
v2.23.1
2025-03-15 17:58:14 +00:00
Joe Rickerby
6e1527b153
Fix unit test when other warnings are present
2025-03-15 17:54:37 +00:00
Matthieu Darbois
c25fe60385
fix: image deprecation warning ( #2314 )
2025-03-15 17:54:37 +00:00
Henry Schreiner and Joe Rickerby
a880bf5105
fix: warn on deprecated images being set ( #2312 )
...
* fix: warn on deprecated images being set
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* fix: handle repeated warning messages
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* Apply suggestions from code review
Co-authored-by: Joe Rickerby <joerick@mac.com >
* fix: try making the warnings once per Options
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: Joe Rickerby <joerick@mac.com >
2025-03-15 17:54:37 +00:00
Joe Rickerby
c087d85b69
Update dependencies
2025-03-15 17:54:37 +00:00
Matthieu Darbois
572f2a72b3
fix: image deprecation warning ( #2314 )
2025-03-12 08:41:51 +00:00
26e12290b5
feat: add support for building iOS wheels. ( #2286 )
...
* Add support for building iOS wheels.
* Replace use of system() in test binary module.
* Restored the 'minimal' approach of the minimal examples.
* Split out platform details into standalone pages, and expand iOS platform details.
* More doc corrections.
* Bump support package to include fix for python/cpython#130292
* Ensure iOS tests are all run on the same xdist worker.
* More iOS documentation tweaks.
* Factor out common xcode version test utility.
* Simplify iOS to a single platform with an expanded interpretation of arch.
* I guess I should update the iOS tests as well...
* Additional safety for missing iOS test output.
* Remove DYLD_LIBRARY_PATH from the iOS environment.
* Make test-sources mandatory for iOS builds.
* Updates and clarifications to documentation.
* Clarify what a slice is.
* Normalize use of underscores in platform name.
* Modify auto target to be matching CPU only.
* Use consistent ordering of platforms in examples.
* Use consistent naming in iOS archiectures.
* Placate the linter.
* Miscellaneous cleanups picked up by @joerick's review.
* Correct the list of expected wheels.
* Correct which 'native' we're actually checking.
* Correct the docs links so they're all relative.
* Correct the identification of free threaded builds.
* Use target instead of host to describe the platform we're building for.
* Rework iOS test to remove issue with log completeness.
* Convert errors to FatalError
Co-authored-by: Matthieu Darbois <mayeut@users.noreply.github.com >
Co-authored-by: Joe Rickerby <joerick@mac.com >
* Removed a repeated check for a valid python.
* Update bin/update_pythons.py to update iOS support packages.
* Document that iOS CI is available on other platforms.
* Restore a comment needed for some platforms.
* Small cleanups identified in code review
Co-authored-by: Joe Rickerby <joerick@mac.com >
* Simplify logic to appease linter.
* Modify dependency constraint handling to use new API.
* Cosmetic change to trigger a CI rebuild.
---------
Co-authored-by: Matthieu Darbois <mayeut@users.noreply.github.com >
Co-authored-by: Joe Rickerby <joerick@mac.com >
2025-03-11 16:48:35 -04:00
Matthieu Darbois
eefd48e266
chore: only build on push to main for Travis CI ( #2295 )
2025-03-11 16:44:25 -04:00
Henry Schreiner and Joe Rickerby
915d15cc32
fix: warn on deprecated images being set ( #2312 )
...
* fix: warn on deprecated images being set
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* fix: handle repeated warning messages
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
* Apply suggestions from code review
Co-authored-by: Joe Rickerby <joerick@mac.com >
* fix: try making the warnings once per Options
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: Joe Rickerby <joerick@mac.com >
2025-03-11 16:44:06 -04:00
Joe Rickerby and pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
25f2d3f313
Inline dependency-versions syntax ( #2122 )
...
* Write docs for inline dependency-versions
* Change the `inline` keyword to `packages` for better readability
* Implement inline package constraints
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add schema for TOML properties
* Change the parsing of the option to parse filenames as-is
* Add a unit test for table-parsing of the option
* Remove unneeded shlex.quote on the dependency-version test
* Tidy-ups, comments, docs fixes
* Add test for empty packages option value
* Fix empty packages scenario
And, remove some optionals to reduce the problem space
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-03-10 21:45:54 +00:00
pre-commit-ci[bot] and pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
f5e502aa88
[pre-commit.ci] pre-commit autoupdate ( #2311 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.9 → v0.9.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.9...v0.9.10 )
- [github.com/python-jsonschema/check-jsonschema: 0.31.2 → 0.31.3](https://github.com/python-jsonschema/check-jsonschema/compare/0.31.2...0.31.3 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-03-10 16:30:50 -04:00
dependabot[bot] and dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
849921caef
chore(deps): bump actions/attest-build-provenance from 2.2.2 to 2.2.3 in the actions group ( #2310 )
...
chore(deps): bump actions/attest-build-provenance in the actions group
Bumps the actions group with 1 update: [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance ).
Updates `actions/attest-build-provenance` from 2.2.2 to 2.2.3
- [Release notes](https://github.com/actions/attest-build-provenance/releases )
- [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md )
- [Commits](https://github.com/actions/attest-build-provenance/compare/bd77c077858b8d561b7a36cbe48ef4cc642ca39d...c074443f1aee8d4aeeae555aebba3282517141b2 )
---
updated-dependencies:
- dependency-name: actions/attest-build-provenance
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-10 16:30:36 -04:00
cibuildwheel-bot[bot] and cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>
8c51c26bf7
[Bot] Update dependencies ( #2309 )
...
Update dependencies
Co-authored-by: cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>
2025-03-10 16:30:18 -04:00
Joe Rickerby
c136aefe20
chore: optimise unit tests ( #2293 )
...
* optimise unit tests - Cache loading the config TOML
Unit test time: 13.1s -> 10.5s
* optimise unit tests - use the same pyproject validator across the tests
Unit test time: 10.5s -> 5.7s
* optimise unit tests - selector optimisation
Unit test time: 5.7s -> 5.1s
* optimise unit tests - build options computation cache
Unit test time: 5.1s -> 3.2s
* Use functools.cache rather than functools.lru_cache
* Don't overwrite build_options when applying functools.cache
2025-03-10 21:29:07 +01:00
dependabot[bot] and dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bddd438a88
chore(deps): bump actions/attest-build-provenance from 2.2.0 to 2.2.2 in the actions group ( #2299 )
...
chore(deps): bump actions/attest-build-provenance in the actions group
Bumps the actions group with 1 update: [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance ).
Updates `actions/attest-build-provenance` from 2.2.0 to 2.2.2
- [Release notes](https://github.com/actions/attest-build-provenance/releases )
- [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md )
- [Commits](https://github.com/actions/attest-build-provenance/compare/520d128f165991a6c774bcb264f323e3d70747f4...bd77c077858b8d561b7a36cbe48ef4cc642ca39d )
---
updated-dependencies:
- dependency-name: actions/attest-build-provenance
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-06 16:55:05 -05:00
cibuildwheel-bot[bot] and cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>
ee94e7fdf8
[Bot] Update dependencies ( #2298 )
...
Update dependencies
Co-authored-by: cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>
2025-03-06 16:54:56 -05:00
pre-commit-ci[bot] and pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
ea26d56b5a
[pre-commit.ci] pre-commit autoupdate ( #2301 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.7 → v0.9.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.7...v0.9.9 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-03-06 16:54:30 -05:00
Joe Rickerby
efa1bedd1f
Merge branch '2.x'
2025-03-01 13:35:51 +00:00
Joe Rickerby
6cccd09a31
Bump version: v2.23.0
v2.23.0
2025-03-01 13:27:50 +00:00
Matthieu Darbois
0b052a43b7
fix(ci): Cirrus CI does not allow armv7l builds on aarch64 ( #2296 )
2025-03-01 11:51:38 +00:00
Matthieu Darbois
aa1534d2a3
chore(2.x): update dependencies ( #2294 )
2025-03-01 11:49:19 +00:00
Joe Rickerby
9e72cd9b54
feat: Print FatalError messages using Logger ( #2292 )
...
* feat: Print FatalError messages using Logger
This makes them appear GHA annotations in CI logs, which makes them easier to spot. I've also added the "cibuildwheel: " prefix to those errors, I think it helps when viewing a log to know which tool is talking to you - it can be difficult to understand with build tools.
* Nicer error message on invalid architecture
* Fix some message formatting and test expectations
2025-03-01 10:47:44 +01:00
Henry Schreiner
708cf1d32b
style: remove from future import annotations
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2025-02-28 16:38:15 -05:00
Henry Schreiner
1b63074d76
chore: remove PopenBytes & TYPE_CHECKING
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2025-02-28 16:38:15 -05:00
Henry Schreiner
783be9bc2f
chore: add pathlib check
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2025-02-28 16:38:15 -05:00
Henry Schreiner
3e37148923
chore: remove staticmethod to appease buggy pylint check
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2025-02-28 16:38:15 -05:00
Henry Schreiner
183a7c3f1d
chore: some cleanup from ruff --preview checks
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2025-02-28 16:38:15 -05:00
Henry Schreiner
2f62696400
chore: use StrEnum from Python 3.11
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
2025-02-28 16:38:15 -05:00