From 52fc66cb5ff19bf0def001ae50acc1b465a0b977 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 12 Nov 2026 23:34:46 +0100 Subject: fix(core): decouple task imports from app initialization Keep stable lazy task handles that register against the active Huey backend so modules can be imported before app creation and survive backend reinitialization. Separate package metadata and the shared blueprint from application startup to remove import-order dependencies and keep build-time version lookup lightweight. --- tests/test_packaging.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test_packaging.py') diff --git a/tests/test_packaging.py b/tests/test_packaging.py index 34c0d72..e0b4fb1 100644 --- a/tests/test_packaging.py +++ b/tests/test_packaging.py @@ -35,3 +35,11 @@ def test_no_legacy_ratelimit_only_groups() -> None: assert not any( group.startswith("ratelimit-") for group in metadata["dependency-groups"] ) + + +def test_hatch_version_does_not_import_the_flask_package() -> None: + project_root = Path(__file__).resolve().parents[1] + metadata = tomllib.loads((project_root / "pyproject.toml").read_text()) + assert metadata["tool"]["hatch"]["version"]["path"] == ( + "webmentions_ssg/version.py" + ) -- cgit v1.3.1