Skip to content

Commit 08a54c0

Browse files
committed
fix: prepend 'v' to version string in snapshotter/version.py
- Update version string format to include a 'v' prefix for consistency. - Adjust print statement to reflect the new version format without the extra 'v' in the output.
1 parent dd41e0f commit 08a54c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snapshotter/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Read version from pyproject.toml
44
with open("pyproject.toml", "r") as f:
55
pyproject = toml.load(f)
6-
__version__ = pyproject["tool"]["poetry"]["version"]
6+
__version__ = "v" + pyproject["tool"]["poetry"]["version"]
77

88
if __name__ == "__main__":
9-
print(f"Snapshotter Lite v2 version: v{__version__}")
9+
print(f"Snapshotter Lite v2 version: {__version__}")

0 commit comments

Comments
 (0)