We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26bc5c6 commit 6c903adCopy full SHA for 6c903ad
duckdb_packaging/setuptools_scm_version.py
@@ -132,7 +132,11 @@ def _git_describe_override_to_pep_440(override_value: str) -> str:
132
version = version.replace("-rc", "rc")
133
134
# Bump version and format according to PEP440
135
- pep440_version = _bump_dev_version(version, int(distance or 0))
+ distance = int(distance or 0)
136
+ if distance == 0 and not version.dirty:
137
+ pep440_version = _tag_to_version(str(version))
138
+ else:
139
+ pep440_version = _bump_dev_version(str(version), distance)
140
if commit_hash:
141
pep440_version += f"+g{commit_hash.lower()}"
142
0 commit comments