Skip to content

Commit 54a1114

Browse files
committed
base_version giving unwanted output, just use tag
1 parent a51e047 commit 54a1114

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

setup.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,7 @@ def version(version) -> str:
88
Format the version string.
99
This function is called by setuptools_scm to determine the distribution version.
1010
"""
11-
# Use base_version if available, otherwise fall back to a default
12-
if hasattr(version, "base_version") and version.base_version:
13-
vers = version.base_version
14-
elif hasattr(version, "tag") and version.tag:
15-
# If we have a tag but no base_version, try to extract from tag
16-
vers = str(version.tag).lstrip("v")
17-
else:
18-
# Default fallback version if nothing else is available
19-
vers = "0.0.0"
11+
vers = str(version.tag).lstrip("v") if hasattr(version, "tag") else "0.0.0"
2012

2113
return vers
2214

0 commit comments

Comments
 (0)