From 1715b971d7d06d799317ef9dc841364bf377d478 Mon Sep 17 00:00:00 2001 From: Dusten Hubbard Date: Tue, 7 Jul 2026 18:22:20 -0500 Subject: [PATCH] ci(release): name the Linux asset with the PEP 440 version (align with mac/Windows) --- .github/workflows/build-installers.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-installers.yml b/.github/workflows/build-installers.yml index 051c1229..b077375c 100644 --- a/.github/workflows/build-installers.yml +++ b/.github/workflows/build-installers.yml @@ -129,7 +129,12 @@ jobs: # The Linux installer is a script bundle (no frozen binary), so it has no # build-matrix leg — assemble it here and ship it as a release asset. run: | - VERSION="${GITHUB_REF_NAME#v}" + # Name the asset with the PEP 440 public version (what setuptools-scm + # bakes in, and what the frozen mac/Windows assets use) rather than the + # raw tag, so a v1.21.0-beta-1 tag yields 1.21.0b1 like the others. The + # install-source pin below still uses the exact tag ref. + python3 -m pip install --quiet --disable-pip-version-check packaging + VERSION="$(python3 -c "from packaging.version import Version; print(Version('${GITHUB_REF_NAME#v}'))")" STAGE="PyReconstruct-linux-installer" mkdir -p "$STAGE" cp packaging/linux/install.sh packaging/linux/uninstall.sh \