From 94ec34ebb9e077d5c0811539e54159f185df6b1e Mon Sep 17 00:00:00 2001 From: isilber Date: Fri, 6 Feb 2026 18:33:20 +0000 Subject: [PATCH 1/2] FIX: set setuptools-scm version from git tag in pypi-release workflow --- .github/workflows/pypi-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index 8789e18..c28651a 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -26,6 +26,8 @@ jobs: git clean -xdf git restore -SW . python -m build --sdist --wheel . + env: + SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.ref_name }} - name: Check built artifacts run: | python -m twine check dist/* From 08f158e8fe95870cdac4f3de829e675a8f1dddee Mon Sep 17 00:00:00 2001 From: isilber Date: Fri, 6 Feb 2026 18:52:07 +0000 Subject: [PATCH 2/2] FIX: explicitly checkout release tag in pypi-release workflow --- .github/workflows/pypi-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index c28651a..3bbd799 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -12,6 +12,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref }} - uses: actions/setup-python@v5 name: Install Python with: