Skip to content

Commit 8f3ec92

Browse files
Guard against pyproject version drift
Adds tests/test_version.py which asserts the pyproject.toml version matches __version__ so future drift trips a test, not a bug report. Updates uv.lock to reflect the version bumps in the downstream wire and client packages (both now 0.1.3). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 54fb12a commit 8f3ec92

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

tests/test_version.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""Guard against drift between pyproject.toml version and __version__."""
2+
3+
import pathlib
4+
import tomllib
5+
6+
import sqlalchemydqlite
7+
8+
9+
def test_pyproject_matches_package_version() -> None:
10+
pyproject = pathlib.Path(__file__).resolve().parent.parent / "pyproject.toml"
11+
with pyproject.open("rb") as f:
12+
metadata = tomllib.load(f)
13+
assert metadata["project"]["version"] == sqlalchemydqlite.__version__

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)