mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-02 14:10:23 +08:00
Split tool.stubtest.platforms metadata key (#13746)
Co-authored-by: Avasam <samuel.06@hotmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Avasam
pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
parent
07bbe5e18c
commit
3f08a4ed10
@@ -5,7 +5,7 @@ requires = ["numpy>=1.20", "types-cffi"]
|
||||
|
||||
[tool.stubtest]
|
||||
# darwin and win32 are equivalent
|
||||
platforms = ["darwin", "linux"]
|
||||
ci_platforms = ["darwin", "linux"]
|
||||
apt_dependencies = ["libjack-dev"]
|
||||
brew_dependencies = ["jack"]
|
||||
# No need to install on the CI. Leaving here as information for Windows contributors.
|
||||
|
||||
@@ -4,7 +4,7 @@ requires = ["Pillow>=10.3.0"]
|
||||
|
||||
[tool.stubtest]
|
||||
# Linux has extra constants, win32 has different definitions
|
||||
platforms = ["linux", "win32"]
|
||||
ci_platforms = ["linux", "win32"]
|
||||
# PyScreeze has an odd setup.py file
|
||||
# that doesn't list Pillow as a dependency for py312+ yet:
|
||||
# https://github.com/asweigart/pyscreeze/blob/eeca245a135cf171c163b3691300138518efa64e/setup.py#L38-L46
|
||||
|
||||
@@ -2,7 +2,9 @@ version = "0.7.*"
|
||||
upstream_repository = "https://sourceforge.net/p/raspberry-gpio-python/code/"
|
||||
|
||||
[tool.stubtest]
|
||||
# When stubtest tries to import this module:
|
||||
# error: RPi.GPIO failed to import. RuntimeError: This module can only be run on a Raspberry Pi!
|
||||
# This package is only supported on Raspberry Pi hardware, which identifies
|
||||
# itself as 'linux'. When run on other hardware, it raises a RuntimeError:
|
||||
# RPi.GPIO failed to import. RuntimeError: This module can only be run on a Raspberry Pi!
|
||||
# https://sourceforge.net/p/raspberry-gpio-python/code/ci/08048dd1894a6b09a104557b6eaa6bb68b6baac5/tree/source/py_gpio.c#l1008
|
||||
skip = true
|
||||
supported_platforms = []
|
||||
ci_platforms = []
|
||||
|
||||
@@ -3,4 +3,4 @@ upstream_repository = "https://github.com/Tinche/aiofiles"
|
||||
|
||||
[tool.stubtest]
|
||||
# linux and darwin are equivalent
|
||||
platforms = ["linux", "win32"]
|
||||
ci_platforms = ["linux", "win32"]
|
||||
|
||||
@@ -2,4 +2,4 @@ version = "4.13.*"
|
||||
upstream_repository = "https://github.com/antlr/antlr4"
|
||||
|
||||
[tool.stubtest]
|
||||
platforms = ["linux", "win32"]
|
||||
ci_platforms = ["linux", "win32"]
|
||||
|
||||
@@ -4,4 +4,4 @@ requires = ["types-setuptools"]
|
||||
|
||||
[tool.stubtest]
|
||||
# linux and darwin are mostly equivalent, except for a single `RTLD_DEEPBIND` variable
|
||||
platforms = ["linux", "win32"]
|
||||
ci_platforms = ["linux", "win32"]
|
||||
|
||||
@@ -2,4 +2,4 @@ version = "0.4.*"
|
||||
upstream_repository = "https://github.com/tartley/colorama"
|
||||
|
||||
[tool.stubtest]
|
||||
platforms = ["linux", "win32"]
|
||||
ci_platforms = ["linux", "win32"]
|
||||
|
||||
@@ -11,5 +11,5 @@ extra_description = """\
|
||||
"""
|
||||
|
||||
[tool.stubtest]
|
||||
platforms = ["linux"]
|
||||
ci_platforms = ["linux"]
|
||||
apt_dependencies = ["gdb"]
|
||||
|
||||
@@ -5,7 +5,7 @@ requires = ["types-greenlet", "types-psutil"]
|
||||
[tool.stubtest]
|
||||
# Run stubtest on all platforms, since there is some platform specific stuff
|
||||
# especially in the stdlib module replacement
|
||||
platforms = ["linux", "darwin", "win32"]
|
||||
ci_platforms = ["linux", "darwin", "win32"]
|
||||
# for testing the ffi loop implementations on all platforms
|
||||
stubtest_requirements = ["cffi", "dnspython"]
|
||||
apt_dependencies = ["libev4", "libev-dev", "libuv1", "libuv1-dev"]
|
||||
|
||||
@@ -6,4 +6,4 @@ upstream_repository = "https://github.com/boppreh/keyboard"
|
||||
# It's only by possible mouse buttons and event literal types.
|
||||
# As well as returning a tuple of int/long from keyboard.mouse.get_position
|
||||
# The "mouse" module is obsoleted by the "mouse" package.
|
||||
# platforms =
|
||||
# ci_platforms = ["linux"]
|
||||
|
||||
@@ -5,4 +5,4 @@ requires = ["cryptography>=37.0.0"]
|
||||
|
||||
[tool.stubtest]
|
||||
# linux and darwin are equivalent
|
||||
platforms = ["linux", "win32"]
|
||||
ci_platforms = ["linux", "win32"]
|
||||
|
||||
@@ -2,4 +2,4 @@ version = "7.0.*"
|
||||
upstream_repository = "https://github.com/giampaolo/psutil"
|
||||
|
||||
[tool.stubtest]
|
||||
platforms = ["darwin", "linux", "win32"]
|
||||
ci_platforms = ["darwin", "linux", "win32"]
|
||||
|
||||
@@ -4,6 +4,6 @@ version = "0.2.*"
|
||||
|
||||
[tool.stubtest]
|
||||
# linux and win32 are equivalent
|
||||
platforms = ["darwin", "linux"]
|
||||
ci_platforms = ["darwin", "linux"]
|
||||
apt_dependencies = ["portaudio19-dev"]
|
||||
brew_dependencies = ["portaudio"]
|
||||
|
||||
@@ -2,4 +2,4 @@ version = "7.45.6"
|
||||
upstream_repository = "https://github.com/pycurl/pycurl"
|
||||
|
||||
[tool.stubtest]
|
||||
platforms = ["darwin", "linux", "win32"]
|
||||
ci_platforms = ["darwin", "linux", "win32"]
|
||||
|
||||
@@ -2,4 +2,4 @@ version = "~=1.8.1"
|
||||
upstream_repository = "https://github.com/moses-palmer/pynput"
|
||||
|
||||
[tool.stubtest]
|
||||
platforms = ["darwin", "linux", "win32"]
|
||||
ci_platforms = ["darwin", "linux", "win32"]
|
||||
|
||||
@@ -2,5 +2,5 @@ version = "1.9.*"
|
||||
upstream_repository = "https://github.com/asweigart/pyperclip"
|
||||
|
||||
[tool.stubtest]
|
||||
platforms = ["win32", "linux", "darwin"]
|
||||
ci_platforms = ["win32", "linux", "darwin"]
|
||||
apt_dependencies = ["xclip"]
|
||||
|
||||
@@ -2,5 +2,5 @@ version = "3.5.*"
|
||||
upstream_repository = "https://github.com/pyserial/pyserial"
|
||||
|
||||
[tool.stubtest]
|
||||
platforms = ["darwin", "linux", "win32"]
|
||||
ci_platforms = ["darwin", "linux", "win32"]
|
||||
extras = ["cp2110"]
|
||||
|
||||
@@ -2,4 +2,5 @@ version = "311.*"
|
||||
upstream_repository = "https://github.com/mhammond/pywin32"
|
||||
|
||||
[tool.stubtest]
|
||||
platforms = ["win32"]
|
||||
supported_platforms = ["win32"]
|
||||
ci_platforms = ["win32"]
|
||||
|
||||
@@ -7,5 +7,5 @@ it is no longer included with `types-setuptools`.
|
||||
|
||||
[tool.stubtest]
|
||||
# darwin is equivalent to linux for OS-specific methods
|
||||
platforms = ["linux", "win32"]
|
||||
ci_platforms = ["linux", "win32"]
|
||||
stubtest_requirements = ["tomli"]
|
||||
|
||||
@@ -12,4 +12,4 @@ extra_description = """\
|
||||
# Run stubtest on MacOS as well, to check that the
|
||||
# uWSGI-specific parts of stubtest_third_party.py
|
||||
# also work there
|
||||
platforms = ["linux", "darwin"]
|
||||
ci_platforms = ["linux", "darwin"]
|
||||
|
||||
@@ -3,4 +3,4 @@ upstream_repository = "https://github.com/Pylons/waitress"
|
||||
|
||||
[tool.stubtest]
|
||||
# linux and darwin are equivalent
|
||||
platforms = ["linux", "win32"]
|
||||
ci_platforms = ["linux", "win32"]
|
||||
|
||||
Reference in New Issue
Block a user