Skip to content

Exclude docs/ from wheel#17

Merged
OnFreund merged 1 commit into
masterfrom
claude/jovial-babbage-04e219
Jun 27, 2026
Merged

Exclude docs/ from wheel#17
OnFreund merged 1 commit into
masterfrom
claude/jovial-babbage-04e219

Conversation

@OnFreund

Copy link
Copy Markdown
Owner

What changed

setuptools-scm's file finder hooks into setuptools and includes all git-tracked files in the built wheel. This caused docs/rs232-protocol.md to appear as a top-level docs/ directory in the wheel, which Home Assistant flags as unexpected.

Fix

Two changes to pyproject.toml:

  • include-package-data = false — disables the setuptools-scm file finder from auto-including non-package files
  • packages.find.include = ["pymonoprice*"] — replaces the old exclude = ["tests*"] with an explicit allowlist (safer and clearer)

Verification

Built the wheel from a clean state and confirmed the contents are now only pymonoprice/__init__.py, pymonoprice/py.typed, and dist-info metadata. docs/ is gone.

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 <noreply@anthropic.com>
@OnFreund
OnFreund merged commit 2329906 into master Jun 27, 2026
5 checks passed
@OnFreund
OnFreund deleted the claude/jovial-babbage-04e219 branch June 27, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant