You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If two tags are assigned to the same git-commit, setuptools-scm seems to get confused (especially if the secondary tag contains digits or ends with digits).
How to repeat
Use a python-project repository that uses setuptools-scm
# -- BASH SHELL (or similar):
$ git tag v1.2.3
$ python -msetuptools_scm
1.2.3
# OR: 1.2.4.dev0+gd... - If DIRTY# -- CASE: Secondary tag with digits -- SYNDROME HERE
$ git tag BASELINE_D2024-10-03
$ python -msetuptools_scm
3
# -- CASE: Secondary tag without any digits -- OK# CLEANUP: First remove last secondary tag.
$ git tag --delete BASELINE_D2024-10-03
$ git tag BASELINE
$ python -msetuptools_scm
1.2.3
# OR: 1.2.4.dev0+gd... - If DIRTY
If two tags are assigned to the same git-commit,
setuptools-scm
seems to get confused (especially if the secondary tag contains digits or ends with digits).How to repeat
setuptools-scm
RELATED:
The text was updated successfully, but these errors were encountered: