Skip to content

MNT: move cibw's configuration to TOML#159

Merged
brandon-rhodes merged 1 commit into
brandon-rhodes:masterfrom
neutrinoceros:mnt/static-cibw-conf
May 1, 2026
Merged

MNT: move cibw's configuration to TOML#159
brandon-rhodes merged 1 commit into
brandon-rhodes:masterfrom
neutrinoceros:mnt/static-cibw-conf

Conversation

@neutrinoceros
Copy link
Copy Markdown
Contributor

Based off #155 which introduced pyproject.toml
Incidentally also includes #153

Comment thread .github/workflows/ci.yml
uses: pypa/cibuildwheel@v3.3.1
env:
# if adding python 3.15, just add cp315-*
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
Copy link
Copy Markdown
Contributor Author

@neutrinoceros neutrinoceros Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intentionally didn't reproduce this line verbatim because cibw's already parses project.requires-python from pyproject.toml, and set the appropriate upper bound itself.

@neutrinoceros neutrinoceros force-pushed the mnt/static-cibw-conf branch 2 times, most recently from 79c19d1 to 5aa8436 Compare March 12, 2026 12:20
Comment thread pyproject.toml
[tool.cibuildwheel]
build-verbosity = 0
skip = [
"*-musllinux_*", # not sure there's a good reason for this anymore ?
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very likely this was done because numpy didn't serve this target at the time, but it does now, so maybe we can re-enable it here or in a follow up PR ?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, let's save that for a future PR. Thanks for pointing it out; in the original commit that added it, I don't see a comment from the contributor explaining why, so we're left with the guess that it was NumPy.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#161 👀

Comment thread pyproject.toml
build-verbosity = 0
skip = [
"*-musllinux_*", # not sure there's a good reason for this anymore ?
"cp314t-*",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recent versions of cibw include Free-threading 3.14 (3.14t) by default (though, not 3.13t). I assume we don't want to add it here.
FWIW it might get significantly easier to serve both builds (3.1x and 3.1xt) with a single wheel per platform in the near future, provided PEP 803 is accepted for Python 3.15

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that this would not be the PR for introducing a free-threading build, and that it might be useful to hold off and see what happens with PEP 803. I'll have to go read it sometime. Thanks!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PEP 803 is now accepted and implementation is expected to land in 3.15.0b1, FYI

@neutrinoceros neutrinoceros force-pushed the mnt/static-cibw-conf branch 3 times, most recently from dabd17c to 4541eb0 Compare April 20, 2026 08:16
@neutrinoceros neutrinoceros changed the title MNT: move cibw's configuration to TOML MNT: move cibw's configuration to TOML (wait for #155) Apr 20, 2026
@neutrinoceros neutrinoceros force-pushed the mnt/static-cibw-conf branch 2 times, most recently from 542618c to 74639d1 Compare April 20, 2026 10:42
@neutrinoceros neutrinoceros changed the title MNT: move cibw's configuration to TOML (wait for #155) MNT: move cibw's configuration to TOML Apr 30, 2026
@neutrinoceros neutrinoceros marked this pull request as ready for review April 30, 2026 12:11
@brandon-rhodes
Copy link
Copy Markdown
Owner

I like how this pulls project data out of a proprietary CI YAML file, and into the main project configuration. Thanks for working on it!

@brandon-rhodes brandon-rhodes merged commit 7805490 into brandon-rhodes:master May 1, 2026
21 checks passed
@neutrinoceros neutrinoceros deleted the mnt/static-cibw-conf branch May 1, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants