Control: tags -1 + patch
Upstream's `setup.py` does not ensure that the `tests` directory is
excluded from the wheel and thus pollutes the shared packages namespace
with a tests directory. That now causes a FTBFS as dh-python is more
faithfully including what is in the wheels, and also attempting to
protect that shared namespace.
The attached patch tweaks module discovery to only include the
`homeconnect` module and not the `tests` module (and submodules).
This allows the package to build correctly with Python recent dh-python
regards
Stuart
--
Stuart Prescott http://www.nanonanonano.net/ [email protected]
Debian Developer http://www.debian.org/ [email protected]
GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
From: Stuart Prescott <[email protected]>
Date: Mon, 26 Oct 2026 18:43:44 +1100
Subject: Exclude tests dir from wheel
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 069d2d6..d77f7ea 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
license="MIT",
- packages=find_packages(),
+ packages=find_packages(exclude=["tests", "tests.*"]),
install_requires=["requests", "requests_oauthlib"],
extras_require={
"testing": [