From 4e268d3567b2ab3f0a9a29106351e233da2d3c2f Mon Sep 17 00:00:00 2001 From: shbatm Date: Fri, 8 May 2026 11:21:47 -0500 Subject: [PATCH] fix: exclude tests/ from built wheel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 3.6.0 wheel shipped a top-level `tests` package because setup.py called `find_packages()` without exclusions. This collides with downstream consumers that have their own `tests/` directory — most notably Home Assistant Core, where hassfest rejects the dependency: [ERROR] [REQUIREMENTS] Package pyisy has a forbidden top level directory 'tests' in homeassistant Excluding both `tests` and `tests.*` keeps the source tree shape but keeps the wheel limited to the `pyisy` package. Co-Authored-By: Claude Opus 4.7 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3a9a2447..465c1a61 100755 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ description="Python module to talk to ISY994 from UDI.", long_description=README, long_description_content_type="text/markdown", - packages=find_packages(), + packages=find_packages(exclude=["tests", "tests.*"]), zip_safe=False, include_package_data=True, platforms="any",