From 14655ee4d789124d3a1ebb96188a5b9916a65657 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Tue, 18 Aug 2026 06:47:58 +0000 Subject: [PATCH] Ship pagerite/themes in the built package hatchling's only-packages=true drops directories without an __init__.py, so pagerite/themes never made it into the wheel/sdist (this also means the banner.svg artwork was never packaged). Force-include it as a build artifact like frontend-build. --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 26ff4fd..7fd3935 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,9 @@ source = "vcs" packages = ["pagerite"] [tool.hatch.build] -artifacts = ["pagerite/frontend-build"] +# `only-packages` drops directories without an __init__.py, so the theme +# files must be force-included as artifacts (like the frontend build). +artifacts = ["pagerite/frontend-build", "pagerite/themes"] only-packages = true [tool.hatch.build.targets.sdist.hooks.custom]