Bump version to 0.2.0 and derive __version__ dynamically from package metadata

This commit is contained in:
Jan Doubravský
2026-06-02 07:38:36 +02:00
parent 74772cee4a
commit b79d66d36b
3 changed files with 17 additions and 2 deletions
+9
View File
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
## [Unreleased] ## [Unreleased]
### Changed
- `_meta.py` now reads version dynamically from installed package metadata via `importlib.metadata` instead of a hardcoded string
- Bumped version to `0.2.0` in `pyproject.toml`
- `CHANGELOG.md` restructured with `[0.2.0]` release section
---
## [0.2.0] - 2026-06-01
### Added ### Added
- Project specification in `project.md` — architecture, API design, cache backend, metadata schema, logging strategy, and TODO for future features (JOIN, SELECT * support) - Project specification in `project.md` — architecture, API design, cache backend, metadata schema, logging strategy, and TODO for future features (JOIN, SELECT * support)
- `.gitignore` for Python/Poetry project - `.gitignore` for Python/Poetry project
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "sqlmem" name = "sqlmem"
version = "0.1.0" version = "0.2.0"
description = "" description = ""
authors = [ authors = [
{name = "jan.doubravsky@gmail.com"} {name = "jan.doubravsky@gmail.com"}
+7 -1
View File
@@ -1 +1,7 @@
__version__ = "0.1.0" from importlib.metadata import PackageNotFoundError, version
try:
__version__ = version("sqlmem")
except PackageNotFoundError:
# fallback when package is not installed (e.g. running from source without build)
__version__ = "0.0.0+dev"