Skip to content

Commit

Permalink
Ignore internal packages in requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Oct 25, 2024
1 parent 30ab1eb commit 63ec718
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tools/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@

packages = dict()

IGNORE_PACKAGES = []
IGNORE_PACKAGES = [
"git2", # not a real package, experiment-in-progress
"jupyterlite-preload", # climet-eu/lab implementation detail
"matplotlib-pyodide", # pyodide implementation detail
"micropip", # pyodide implementation detail
"pyodide-http", # pyodide implementation detail
]

for package in lock["packages"].values():
if package["package_type"] != "package":
Expand All @@ -25,6 +31,9 @@
if package["name"] in IGNORE_PACKAGES:
continue

if package["name"].replace("-", "_") != package["file_name"].split("-")[0]:
print(package["name"], package["file_name"].split("-")[0])

packages[package["name"]] = package["version"]

with requirements_path.open("w") as f:
Expand Down

0 comments on commit 63ec718

Please sign in to comment.