From c9a0807f305f8367348390e22c93f1954e6c68e7 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Thu, 27 Jun 2024 08:33:01 -0400 Subject: [PATCH] ci(release): omit backwards particle tracking examples (#1903) Temporary hack to exclude backwards tracking examples from the distribution until supported without a Python post-processing step, see MODFLOW-USGS/modflow6-examples#214. --- distribution/build_dist.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/distribution/build_dist.py b/distribution/build_dist.py index 79627da8070..a5a06c9283c 100644 --- a/distribution/build_dist.py +++ b/distribution/build_dist.py @@ -123,8 +123,14 @@ def setup_examples( download_and_unzip(asset["browser_download_url"], examples_path, verbose=True) # filter examples for models selected for release + # and omit any excluded models + excluded = ["ex-prt-mp7-p02", "ex-prt-mp7-p04"] for p in examples_path.glob("*"): if not any(m in p.stem for m in models): + print(f"Omitting example due to model selection: {p.stem}") + rmtree(p) + if any(e in p.stem for e in excluded): + print(f"Omitting deliberately excluded example: {p.stem}") rmtree(p) # list folders with mfsim.nam (recursively)