Resolve stubtest allowlist entries for ldap3 (#9532)

This commit is contained in:
Avasam
2023-01-14 13:11:17 -05:00
committed by GitHub
parent 85792bca71
commit 0e36622c72
4 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1 @@
gssapi

View File

@@ -1 +0,0 @@
ldap3.protocol.sasl.kerberos # requires gssapi package to import

View File

@@ -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"]

View File

@@ -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}"