From f3abd509f94dffa6f46b99212ca5f4b216729d11 Mon Sep 17 00:00:00 2001 From: Harvey Chui Date: Mon, 2 Mar 2026 15:35:20 +1100 Subject: [PATCH] [FDE-360] Fix hatch wheel package path for pylogtracer The previous path `packages = ["pylogtracer"]` caused hatch to include the outer pylogtracer/ directory (which has no __init__.py), resulting in a namespace package at install time. Consumers had to use `from pylogtracer.pylogtracer import ...` instead of `from pylogtracer import ...`. Change to `packages = ["pylogtracer/pylogtracer"]` so hatch uses the last path component as the top-level package name, installing the inner directory with __init__.py directly as `pylogtracer`. Co-Authored-By: Claude Opus 4.6 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 46eddaa..d23d55f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,4 +28,4 @@ requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] -packages = ["pylogtracer"] +packages = ["pylogtracer/pylogtracer"]