Skip to content

Commit 44e50e5

Browse files
authored
Merge pull request #40 from LeakIX/copilot/deduplicate-version-info
Use importlib.metadata for version, single source of truth
2 parents 3a3901b + db172c7 commit 44e50e5

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ and this project adheres to
1616

1717
### Changed
1818

19+
- Use `importlib.metadata.version()` for `__version__`, single source of truth
20+
in `pyproject.toml` ([3547e22], [#22])
1921
- Re-export all public models from `__init__.py` and define `__all__`
2022
([1dcfbef], [#21])
2123
- Tests now import from `l9format` package directly instead of
@@ -148,6 +150,7 @@ and this project adheres to
148150

149151
<!-- Commit links -->
150152

153+
[3547e22]: https://github.com/LeakIX/l9format-python/commit/3547e22
151154
[1ca6e4d]: https://github.com/LeakIX/l9format-python/commit/1ca6e4d
152155
[0d8736e]: https://github.com/LeakIX/l9format-python/commit/0d8736e
153156
[d30efd2]: https://github.com/LeakIX/l9format-python/commit/d30efd2
@@ -212,6 +215,7 @@ and this project adheres to
212215
[#16]: https://github.com/LeakIX/l9format-python/pull/16
213216
[#18]: https://github.com/LeakIX/l9format-python/pull/18
214217
[#21]: https://github.com/LeakIX/l9format-python/issues/21
218+
[#22]: https://github.com/LeakIX/l9format-python/issues/22
215219
[#27]: https://github.com/LeakIX/l9format-python/issues/27
216220
[#33]: https://github.com/LeakIX/l9format-python/issues/33
217221
[#35]: https://github.com/LeakIX/l9format-python/issues/35

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)