mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-17 08:35:03 +08:00
Add support for Homebrew and Chocolatey (#9187)
This commit is contained in:
@@ -27,7 +27,17 @@ metadata_keys = {
|
||||
"upload",
|
||||
"tool",
|
||||
}
|
||||
tool_keys = {"stubtest": {"skip", "apt_dependencies", "extras", "ignore_missing_stub", "platforms"}}
|
||||
tool_keys = {
|
||||
"stubtest": {
|
||||
"skip",
|
||||
"apt_dependencies",
|
||||
"brew_dependencies",
|
||||
"choco_dependencies",
|
||||
"extras",
|
||||
"ignore_missing_stub",
|
||||
"platforms",
|
||||
}
|
||||
}
|
||||
extension_descriptions = {".pyi": "stub", ".py": ".py"}
|
||||
supported_stubtest_platforms = {"win32", "darwin", "linux"}
|
||||
|
||||
|
||||
@@ -9,12 +9,7 @@ distributions = sys.argv[1:]
|
||||
if not distributions:
|
||||
distributions = os.listdir("stubs")
|
||||
|
||||
metadata_mapping = {
|
||||
"linux": "apt_dependencies",
|
||||
# We could add others here if we run into stubs that need it:
|
||||
# "darwin": "brew_dependencies",
|
||||
# "win32": "choco_dependencies",
|
||||
}
|
||||
metadata_mapping = {"linux": "apt_dependencies", "darwin": "brew_dependencies", "win32": "choco_dependencies"}
|
||||
|
||||
if platform in metadata_mapping:
|
||||
for distribution in distributions:
|
||||
|
||||
Reference in New Issue
Block a user