We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 479c1f7 commit 0fcdb49Copy full SHA for 0fcdb49
warehouse/forklift/legacy.py
@@ -52,10 +52,19 @@
52
53
PATH_HASHER = "blake2_256"
54
55
+
56
+def namespace_stdlib_list(module_list):
57
+ for module_name in module_list:
58
+ parts = module_name.split('.')
59
+ for i, part in enumerate(parts):
60
+ yield '.'.join(parts[:i + 1])
61
62
63
STDLIB_PROHIBITTED = {
64
packaging.utils.canonicalize_name(s.rstrip('-_.').lstrip('-_.'))
- for s in chain.from_iterable(stdlib_list.stdlib_list(version)
- for version in stdlib_list.short_versions)
65
+ for s in chain.from_iterable(
66
+ namespace_stdlib_list(stdlib_list.stdlib_list(version))
67
+ for version in stdlib_list.short_versions)
68
}
69
70
# Wheel platform checking
0 commit comments