From c7030f3c32f72ac5d62bb7827848fcba0d665bbb Mon Sep 17 00:00:00 2001 From: Bonelli Date: Mon, 23 Feb 2026 07:32:36 -0500 Subject: [PATCH] fix(models): fix model registry generation from release assets --- modflow_devtools/models/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modflow_devtools/models/__init__.py b/modflow_devtools/models/__init__.py index a6436f0d..75fd7f7b 100644 --- a/modflow_devtools/models/__init__.py +++ b/modflow_devtools/models/__init__.py @@ -1178,6 +1178,11 @@ def index( examples: dict[str, list[str]] = {} is_zip = url.endswith((".zip", ".tar")) if url else False + # For zip-based registries, add the zip file itself to the files dict + # so Pooch can fetch it + if url and is_zip: + files[url.rpartition("/")[2]] = {"hash": None, "url": url} + model_paths = get_model_paths(path, namefile=namefile) for model_path in model_paths: model_path = model_path.expanduser().resolve().absolute()