Skip to content

Commit

Permalink
Suppress dirty git tag on tagged releases
Browse files Browse the repository at this point in the history
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
  • Loading branch information
HexDecimal committed Aug 29, 2024
1 parent e2982ae commit b0c3781
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0c3781

Please sign in to comment.