From 1aa58c7d9ba5b31538c211909c7a8d9ffd48f53e Mon Sep 17 00:00:00 2001 From: On Freund Date: Sat, 27 Jun 2026 12:26:36 +0300 Subject: [PATCH] Exclude docs/ from wheel setuptools-scm's file finder includes all git-tracked files in the wheel, causing HA to flag an unexpected top-level docs/ directory. Setting include-package-data = false disables that auto-inclusion, and switching packages.find to an explicit allowlist ensures only the pymonoprice package is picked up. Co-Authored-By: Claude Sonnet 4.6 --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8883cb6..0de5a40 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,8 +22,11 @@ classifiers = [ [project.urls] Homepage = "https://github.com/OnFreund/pymonoprice" +[tool.setuptools] +include-package-data = false + [tool.setuptools.packages.find] -exclude = ["tests*"] +include = ["pymonoprice*"] [tool.setuptools.package-data] pymonoprice = ["py.typed"]