mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Fix libs deps check (#7732)
* Convert parsing logic to python
* Trigger job. (DROP ME BEFORE MERGE!)
* Missing EOF
* Add found modules to set
* Suggestion by @fanninpm
* Fix missing trailing slash
* Ensure no `.py` at module name
* Strip any file auffix
* Revert "Trigger job. (DROP ME BEFORE MERGE!)"
This reverts commit 8cf9651a24.
* Handle quoted args
This commit is contained in:
1 parent
5498f8a75c
commit
fb6142621f
2 files changed
+46
-25
No files matched your search
@@ -392,7 +392,7 @@ def show_deps(
|
||||
"""Show all dependency information for modules."""
|
||||
# Expand "all" to all module names
|
||||
expanded_names = []
|
||||
for name in names:
|
||||
for name in set(names):
|
||||
if name == "all":
|
||||
expanded_names.extend(get_all_modules(cpython_prefix))
|
||||
else:
|
||||
@@ -446,6 +446,11 @@ def main(argv: list[str] | None = None) -> int:
|
||||
|
||||
args = parser.parse_args(argv)
|
||||
|
||||
# When user does `./update_lib/ deps "foo bar" "baz"`
|
||||
# We still want to get a list of
|
||||
# ["foo", "bar", "baz"], not ["foo bar", "baz"]
|
||||
args.names = [name for names in args.names for name in names.split()]
|
||||
|
||||
try:
|
||||
show_deps(args.names, args.cpython, args.lib, args.depth)
|
||||
return 0
|
||||
|
||||
Reference in new issue
Block a user