From 676e9540670fa8ceee07ca28bb9ed61d7f2a3033 Mon Sep 17 00:00:00 2001 From: Yoann ONO <2242427+y0no@users.noreply.github.com> Date: Mon, 11 May 2026 10:23:14 +0200 Subject: [PATCH] fix(packaging): expose hexhttp command when installed via pipx/pip hexhttp.py and cli.py are top-level modules and were not included in the wheel by setuptools.packages.find, so the hexhttp console entry point failed at runtime with ModuleNotFoundError. Declare them via py-modules and switch packages.find to an include allowlist so the wheel ships exactly modules, utils and static. --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8b4ca0f..475a032 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,9 +70,11 @@ test = [ ] # setuptools package discovery +[tool.setuptools] +py-modules = ["hexhttp", "cli"] + [tool.setuptools.packages.find] -where = ["."] -exclude = ["tests*", "docs*"] +include = ["modules*", "utils*", "static*"] # Include package data [tool.setuptools.package-data]