Skip to content

fix: move skip to global [tool.cibuildwheel] to fix validate-pyprojec… - #1095

Closed
sun-9545sunoj wants to merge 2 commits into
quantumlib:mainfrom
sun-9545sunoj:main
Closed

fix: move skip to global [tool.cibuildwheel] to fix validate-pyprojec…#1095
sun-9545sunoj wants to merge 2 commits into
quantumlib:mainfrom
sun-9545sunoj:main

Conversation

@sun-9545sunoj

Copy link
Copy Markdown
Contributor

The property is a global-only key in the cibuildwheel JSON schema. Placing it inside [tool.cibuildwheel.linux] caused validate-pyproject to reject the file with:

[ERROR] must not contain {'skip'} properties

Moving up to [tool.cibuildwheel] satisfies the
schema validator while keeping identical runtime behaviour — musllinux build identifiers do not exist on macOS or Windows, so the glob pattern still only ever matches Linux builds.

Fixes #1084

…t error

The  property is a global-only key in the cibuildwheel JSON schema.
Placing it inside [tool.cibuildwheel.linux] caused validate-pyproject to
reject the file with:

  [ERROR]  must not contain {'skip'} properties

Moving  up to [tool.cibuildwheel] satisfies the
schema validator while keeping identical runtime behaviour — musllinux
build identifiers do not exist on macOS or Windows, so the glob pattern
still only ever matches Linux builds.

Fixes quantumlib#1084
@google-cla

google-cla Bot commented Jul 29, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request moves the skip = "*musllinux*" configuration in pyproject.toml from the Linux-specific [tool.cibuildwheel.linux] section to the global [tool.cibuildwheel] section. There are no review comments, and I have no feedback to provide.

@github-actions github-actions Bot added the size: XS <10 lines changed label Jul 29, 2026
On GitHub Windows runners, running cmake from a plain bash shell has no
MSVC Developer Command Prompt environment loaded, so the default NMake
generator fails immediately with:

  CMake Error: Running 'nmake' '-?' failed with: The system cannot find
  the file specified

Fix:
- Add microsoft/setup-msbuild before the cmake step (Windows only) to
  initialize the MSVC environment.
- Set CMAKE_GENERATOR=Ninja on Windows. Ninja is pre-installed on all
  GitHub Windows runners and does not require a Developer Command Prompt
  the way NMake or Visual Studio generators do.
@github-actions github-actions Bot added size: S 10< lines changed <50 and removed size: XS <10 lines changed labels Jul 29, 2026
@sun-9545sunoj

Copy link
Copy Markdown
Contributor Author

closing this pr due to some issues with cla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: S 10< lines changed <50

Projects

None yet

Development

Successfully merging this pull request may close these issues.

validate-pyproject complains about skip property under [tool.cibuildwheel.linux]

1 participant