From b0c37814ae51a0f8ccef0678b4d61173f9a59919 Mon Sep 17 00:00:00 2001 From: Kyle Benesch <4b796c65+github@gmail.com> Date: Thu, 29 Aug 2024 12:19:43 -0700 Subject: [PATCH] Suppress dirty git tag on tagged releases setuptools-scm defaults to adding dirty tags to builds when the repo is dirty The current test data is not reproducible which is causing this issue --- .github/workflows/python-package.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index f3515bc0..05dfed8b 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -79,6 +79,10 @@ jobs: run: | pip install -r test-requirements.txt build - name: Build delocate + env: + # @HexDecimal - Suppress dirty git-describe tag from dirty test data + # Remove this after test data is reproducible + SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '' }} run: | python -m build - name: Install delocate