Skip to content

Commit 3547e22

Browse files
committed
Use importlib.metadata for version, single source of truth
Remove hardcoded version string from __init__.py and use importlib.metadata.version() instead. Version is now defined only in pyproject.toml. Closes #22
1 parent 3a3901b commit 3547e22

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

l9format/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
__version__ = "1.4.0"
1+
from importlib.metadata import version
2+
3+
__version__ = version("l9format")
24

35
from l9format.l9format import (
46
Certificate,

0 commit comments

Comments
 (0)