From a6aa42b99aaedfebcf4e4b2f1c09b910529fb972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Hensgen?= <24550538+sebhmg@users.noreply.github.com> Date: Mon, 1 Jun 2026 12:21:52 -0400 Subject: [PATCH 1/2] [GEOPY-2809] protect version string in conda recipe --- recipe.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipe.yaml b/recipe.yaml index fb245cf..3134a9b 100644 --- a/recipe.yaml +++ b/recipe.yaml @@ -2,14 +2,14 @@ schema_version: 1 context: name: "mira-omf" + python_min: "3.12" # Extract version from auto-generated _version.json - version: ${{ load_from_file("_version.json").version | trim }} - python_min: '3.12' + version: "${{ load_from_file('_version.json').version | trim }}" module_name: omf package: name: ${{ name|lower }} - version: ${{ version }} + version: "${{ version }}" source: path: ../omf From cbc6aa361d4f09196b03ec034a217756217e9159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Hensgen?= <24550538+sebhmg@users.noreply.github.com> Date: Mon, 1 Jun 2026 12:22:08 -0400 Subject: [PATCH 2/2] [GEOPY-2809] use version from conda recipe when building local package --- recipe.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipe.yaml b/recipe.yaml index 3134a9b..0749da8 100644 --- a/recipe.yaml +++ b/recipe.yaml @@ -17,7 +17,11 @@ source: build: number: 1 noarch: python - script: ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + script: + env: + POETRY_DYNAMIC_VERSIONING_BYPASS: "${{ version }}" + content: + ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation python: entry_points: - geoh5_to_omf = omf.scripts.geoh5_to_omf:main