From 287f55a5d30717a7dd2f2f5edf6294f4643f5553 Mon Sep 17 00:00:00 2001 From: Jericho Tolentino <68654047+jericht@users.noreply.github.com> Date: Thu, 9 Jul 2026 02:58:47 +0000 Subject: [PATCH] fix: separate version injection commands to unblock release Signed-off-by: Jericho Tolentino <68654047+jericht@users.noreply.github.com> --- .../workflows/reusable_maturin_prerelease.yml | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable_maturin_prerelease.yml b/.github/workflows/reusable_maturin_prerelease.yml index 63c23f1..342c89f 100644 --- a/.github/workflows/reusable_maturin_prerelease.yml +++ b/.github/workflows/reusable_maturin_prerelease.yml @@ -22,13 +22,21 @@ on: { "os": "macos-latest", "target": "aarch64-apple-darwin" }, { "os": "macos-15-intel", "target": "x86_64-apple-darwin" } ] + version-script-deps: + required: false + type: string + description: > + Pip packages to install before running the version script. + Space-separated. Skipped if empty. + default: "setuptools_scm" version-script: required: false type: string description: > - Shell command to inject VCS version before building. + Command to inject VCS version before building. + Must be a simple command (no shell operators like && || ;). Run in bash. Skipped if empty. - default: "pip install setuptools_scm && python scripts/maturin_build.py --version-only" + default: "python scripts/maturin_build.py --version-only" jobs: BuildWheels: @@ -51,6 +59,13 @@ jobs: with: python-version: "3.12" + - name: Install version script dependencies + if: inputs.version-script-deps != '' + env: + DEPS: ${{ inputs.version-script-deps }} + run: "pip install $DEPS" + shell: bash + - name: Inject version if: inputs.version-script != '' env: @@ -88,6 +103,13 @@ jobs: with: python-version: "3.12" + - name: Install version script dependencies + if: inputs.version-script-deps != '' + env: + DEPS: ${{ inputs.version-script-deps }} + run: "pip install $DEPS" + shell: bash + - name: Inject version if: inputs.version-script != '' env: