Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29db988

Browse files
authored
Disable uwsgi, pyaudio, jack-client stubtest on macOS (#11821)
1 parent 7ed91bc commit 29db988

5 files changed

Lines changed: 10 additions & 13 deletions

File tree

stubs/JACK-Client/METADATA.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ requires = ["numpy>=1.20", "types-cffi"]
55

66
[tool.stubtest]
77
# darwin and win32 are equivalent
8-
platforms = ["darwin", "linux"]
8+
platforms = ["linux"]
99
apt_dependencies = ["libjack-dev"]
10-
brew_dependencies = ["jack"]
10+
# brew_dependencies = ["jack"]
1111
# No need to install on the CI. Leaving here as information for Windows contributors.
1212
# choco_dependencies = ["jack"]

stubs/pyaudio/METADATA.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ version = "0.2.*"
44

55
[tool.stubtest]
66
# linux and win32 are equivalent
7-
platforms = ["darwin", "linux"]
7+
platforms = ["linux"]
88
apt_dependencies = ["portaudio19-dev"]
9-
brew_dependencies = ["portaudio"]
9+
# brew_dependencies = ["portaudio"]

stubs/uWSGI/METADATA.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@ extra_description = """\
99
"""
1010

1111
[tool.stubtest]
12-
# Run stubtest on MacOS as well, to check that the
13-
# uWSGI-specific parts of stubtest_third_party.py
14-
# also work there
15-
platforms = ["linux", "darwin"]
12+
platforms = ["linux"]

tests/parse_metadata.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class StubtestSettings:
5757
Don't construct instances directly; use the `read_stubtest_settings` function.
5858
"""
5959

60-
skipped: bool
60+
skip: bool
6161
apt_dependencies: list[str]
6262
brew_dependencies: list[str]
6363
choco_dependencies: list[str]
@@ -79,7 +79,7 @@ def read_stubtest_settings(distribution: str) -> StubtestSettings:
7979
with Path("stubs", distribution, "METADATA.toml").open("rb") as f:
8080
data: dict[str, object] = tomli.load(f).get("tool", {}).get("stubtest", {})
8181

82-
skipped: object = data.get("skip", False)
82+
skip: object = data.get("skip", False)
8383
apt_dependencies: object = data.get("apt_dependencies", [])
8484
brew_dependencies: object = data.get("brew_dependencies", [])
8585
choco_dependencies: object = data.get("choco_dependencies", [])
@@ -88,7 +88,7 @@ def read_stubtest_settings(distribution: str) -> StubtestSettings:
8888
specified_platforms: object = data.get("platforms", ["linux"])
8989
stubtest_requirements: object = data.get("stubtest_requirements", [])
9090

91-
assert type(skipped) is bool
91+
assert type(skip) is bool
9292
assert type(ignore_missing_stub) is bool
9393

9494
# It doesn't work for type-narrowing if we use a for loop here...
@@ -110,7 +110,7 @@ def read_stubtest_settings(distribution: str) -> StubtestSettings:
110110
)
111111

112112
return StubtestSettings(
113-
skipped=skipped,
113+
skip=skip,
114114
apt_dependencies=apt_dependencies,
115115
brew_dependencies=brew_dependencies,
116116
choco_dependencies=choco_dependencies,

tests/stubtest_third_party.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def run_stubtest(
2727
print(f"{dist_name}... ", end="", flush=True)
2828

2929
stubtest_settings = metadata.stubtest_settings
30-
if stubtest_settings.skipped:
30+
if stubtest_settings.skip:
3131
print(colored("skipping", "yellow"))
3232
return True
3333

0 commit comments

Comments
 (0)