-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Do we need --specified-platforms-only in stubtest_third_party? #13641
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
Comments
Added in #9173; it may be useful to review the discussion in that PR thread |
The original comment by @Avasam was in #8923 (comment):
Which is of course true. I think I slightly misunderstood the purpose of the flag. So another solution:
|
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
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
When this option is specified (which it is when running in CI), stubtest won't run when a platform is not specified in METADATA.toml. The test is marked as "skipped". When it's not specified (the default), stubtest will run and will most likely case an error.
I noticed this when running
stubtest_third_party.py
locally on my Linux system and it errored on pywin32.I suggest we either:
METADATA.toml
; orThe text was updated successfully, but these errors were encountered: