From ecb8e9f2d66e285cfa6ceca2f56ef9c8738d9673 Mon Sep 17 00:00:00 2001 From: James Le Houx Date: Sun, 29 Mar 2026 14:04:53 +0000 Subject: [PATCH] Fix setuptools_scm version detection in wheel workflows Add fetch-depth: 0 to checkout steps in both CPU and GPU wheel workflows so setuptools_scm can find git tags and produce clean version strings (e.g. "4.0.1" instead of "4.0.1.dev0+gXXX"). https://claude.ai/code/session_01RKnn97qiD7sbCeABHH3eQk --- .github/workflows/pypi-wheels-cpu.yml | 1 + .github/workflows/pypi-wheels-gpu.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/pypi-wheels-cpu.yml b/.github/workflows/pypi-wheels-cpu.yml index e3f85ec..9fd6762 100644 --- a/.github/workflows/pypi-wheels-cpu.yml +++ b/.github/workflows/pypi-wheels-cpu.yml @@ -16,6 +16,7 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive # Fetches Catch2, nlohmann/json, or pybind11 if needed + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v5 diff --git a/.github/workflows/pypi-wheels-gpu.yml b/.github/workflows/pypi-wheels-gpu.yml index 82b2227..f7023bf 100644 --- a/.github/workflows/pypi-wheels-gpu.yml +++ b/.github/workflows/pypi-wheels-gpu.yml @@ -16,6 +16,7 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v5