From 944cfc6d09065f61d18ca4d32c88f6a495516398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Hensgen?= <24550538+sebhmg@users.noreply.github.com> Date: Wed, 19 Nov 2025 16:23:58 -0500 Subject: [PATCH 1/2] [DEVOPS-922] test _version.py is in conda package --- recipe.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipe.yaml b/recipe.yaml index 307498bb..6b5f1bb3 100644 --- a/recipe.yaml +++ b/recipe.yaml @@ -4,6 +4,7 @@ context: name: "simpeg-drivers" version: "0.0.0.dev0" # This will be replaced by the actual version in the build process python_min: "3.10" + module_name: ${{ name|lower|replace("-", "_") }} package: name: ${{ name|lower }} @@ -76,6 +77,10 @@ tests: files: source: - tests/ + + - package_contents: + files: + - site-packages/${{ module_name }}/_version.py about: license: MIT From 5beeead97a457708778de0eae48e36a3e999a21e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Hensgen?= <24550538+sebhmg@users.noreply.github.com> Date: Wed, 19 Nov 2025 16:25:07 -0500 Subject: [PATCH 2/2] [DEVOPS-922] do not hard-code module name in conda recipe tests --- recipe.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipe.yaml b/recipe.yaml index 6b5f1bb3..c64122e7 100644 --- a/recipe.yaml +++ b/recipe.yaml @@ -59,14 +59,14 @@ requirements: tests: - python: imports: + - ${{ module_name }} + - ${{ module_name }}._version - dask - distributed - geoapps_utils - geoh5py - grid_apps - simpeg - - simpeg_drivers - - simpeg_drivers._version pip_check: true - script: @@ -77,7 +77,7 @@ tests: files: source: - tests/ - + - package_contents: files: - site-packages/${{ module_name }}/_version.py