mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Resolve stubtest allowlist entries for ldap3 (#9532)
This commit is contained in:
1
stubs/ldap3/@tests/requirements-stubtest.txt
Normal file
1
stubs/ldap3/@tests/requirements-stubtest.txt
Normal file
@@ -0,0 +1 @@
|
||||
gssapi
|
||||
@@ -1 +0,0 @@
|
||||
ldap3.protocol.sasl.kerberos # requires gssapi package to import
|
||||
@@ -1,2 +1,8 @@
|
||||
version = "2.9.*"
|
||||
requires = ["types-pyasn1"]
|
||||
|
||||
[tool.stubtest]
|
||||
apt_dependencies = ["libkrb5-dev"]
|
||||
# No need to install on the CI. Leaving here as information for MacOs/Windows contributors.
|
||||
# brew_dependencies = ["krb5"]
|
||||
# choco_dependencies = ["mitkerberos"]
|
||||
|
||||
@@ -191,7 +191,7 @@ def check_metadata() -> None:
|
||||
assert key in tk, f"Unrecognised {tool} key {key} for {distribution}"
|
||||
|
||||
tool_stubtest = data.get("tool", {}).get("stubtest", {})
|
||||
specified_stubtest_platforms = set(tool_stubtest.get("platforms", []))
|
||||
specified_stubtest_platforms = set(tool_stubtest.get("platforms", ["linux"]))
|
||||
assert (
|
||||
specified_stubtest_platforms <= supported_stubtest_platforms
|
||||
), f"Unrecognised platforms specified: {supported_stubtest_platforms - specified_stubtest_platforms} for {distribution}"
|
||||
|
||||
Reference in New Issue
Block a user