Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split tool.stubtest.platforms metadata key #13746

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Mar 31, 2025

The new supported_platforms and ci_platforms keys
allow better control over the platforms stubtest is run on
locally and in CI.

Rename stubtest_third_party.py command line option
--supported-platforms-only to --ci-platforms-only to match
this change.

This fixes spurious warnings when running locally using Linux.

Cf. #13643

srittau added 2 commits March 31, 2025 13:33
Previously, when running it on Linux without the `--specified-platforms-only`
flag, it printed spurious warnings and ran stubtest anyway for distributions
that didn't include `linux` as a supported platform.

Rearrange things:

* The `--specified-platforms-only` now works consistently on all platforms.
  Previously, it was ignored on Linux.
* Instead, in CI the flag is added only for non-Linux platforms.
* The note about stubtest not running for a certain platform in CI is now
  printed only after stubtest tested a distribution successfully to avoid
  breaking the output.

Closes: python#13641
The new `supported_platforms` and `ci_platforms` keys
allow better control over the platforms stubtest is run on
locally and in CI.

Rename `stubtest_third_party.py` command line option
`--supported-platforms-only` to `--ci-platforms-only` to match
this change.
@srittau srittau changed the title Split-platform Split tool.stubtest.platforms metadata key Mar 31, 2025
@srittau srittau requested a review from Avasam March 31, 2025 12:20
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