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 a51e047 commit 54a1114Copy full SHA for 54a1114
setup.py
@@ -8,15 +8,7 @@ def version(version) -> str:
8
Format the version string.
9
This function is called by setuptools_scm to determine the distribution version.
10
"""
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"
+ vers = str(version.tag).lstrip("v") if hasattr(version, "tag") else "0.0.0"
20
21
return vers
22
0 commit comments