From 0b686721451fe6b7f43363f1ef1a399c1da6d9bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Mon, 26 Oct 2026 13:47:18 -0700 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20fix:=20check=20out=20full=20?= =?UTF-8?q?history=20for=20builds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The build job lost fetch-depth 0 together with the tag identity check, so hatch-vcs saw no tag and built 0.1.dev1+g. --- .github/workflows/validate-python-release.yaml | 1 + changelog.d/+build-fetch-depth.bugfix.md | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/+build-fetch-depth.bugfix.md diff --git a/.github/workflows/validate-python-release.yaml b/.github/workflows/validate-python-release.yaml index b4dee61..2aa9d08 100644 --- a/.github/workflows/validate-python-release.yaml +++ b/.github/workflows/validate-python-release.yaml @@ -36,6 +36,7 @@ jobs: - name: 📥 Check out repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: + fetch-depth: 0 persist-credentials: false ref: ${{ github.sha }} - name: 🐍 Install uv and Python diff --git a/changelog.d/+build-fetch-depth.bugfix.md b/changelog.d/+build-fetch-depth.bugfix.md new file mode 100644 index 0000000..d8bc766 --- /dev/null +++ b/changelog.d/+build-fetch-depth.bugfix.md @@ -0,0 +1 @@ +Check out the full history in the `validate-python-release` build job again, so version tools such as hatch-vcs and setuptools-scm see the release tag. 6.0.0 built `0.1.dev1+g` instead of the tagged version. From 546135a98f2ada5f5cb45120ec2dbf16d894d99e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 Oct 2026 20:47:29 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- changelog.d/+build-fetch-depth.bugfix.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.d/+build-fetch-depth.bugfix.md b/changelog.d/+build-fetch-depth.bugfix.md index d8bc766..1ec91a0 100644 --- a/changelog.d/+build-fetch-depth.bugfix.md +++ b/changelog.d/+build-fetch-depth.bugfix.md @@ -1 +1,2 @@ -Check out the full history in the `validate-python-release` build job again, so version tools such as hatch-vcs and setuptools-scm see the release tag. 6.0.0 built `0.1.dev1+g` instead of the tagged version. +Check out the full history in the `validate-python-release` build job again, so version tools such as hatch-vcs and +setuptools-scm see the release tag. 6.0.0 built `0.1.dev1+g` instead of the tagged version.