Skip to content

Commit 2884c7f

Browse files
committed
fixed bug caused by package name normalization
1 parent ae4ace3 commit 2884c7f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/import_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ def gen(packages: List[str], packages_dir = Path("packages")):
2222
if len(imports) > 0:
2323
res[package] = list(imports)
2424
except FileNotFoundError:
25-
pass
25+
print(f"package {package}'s meta.yaml not found")
2626
return res

packages/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def gen_bzl_config(tag, dist):
3131

3232
with open(dist / "pyodide-lock.json", "r") as file:
3333
lock = json.load(file)
34-
packages = lock["packages"].keys()
34+
packages = [package["name"] for package in lock["packages"].values()]
3535
imports_to_test = import_tests.gen(packages)
3636

3737
with open("pyodide_bucket.bzl", "w") as f:

0 commit comments

Comments
 (0)