Add the ability to run third-party stubtest on Windows or MacOS when needed (#8923)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Nikita Sobolev
2022-11-11 16:40:50 +03:00
committed by GitHub
parent 0f33721c52
commit 9cd9f6f6e0
15 changed files with 129 additions and 61 deletions

View File

@@ -192,6 +192,11 @@ This has the following keys:
* `apt_dependencies` (default: `[]`): A list of Ubuntu APT packages
that need to be installed for stubtest to run successfully. These are
usually packages needed to pip install the implementation distribution.
* `platforms` (default: `["linux"]`): A list of OSes on which to run stubtest.
Can contain `win32`, `linux`, and `darwin` values.
If not specified, stubtest is run only on `linux`.
Only add extra OSes to the test
if there are platform-specific branches in a stubs package.
The format of all `METADATA.toml` files can be checked by running
`python3 ./tests/check_consistent.py`.