From 136553212c58b709c11e7644a458658e1ebbd562 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Wed, 12 Apr 2023 21:51:01 +0200 Subject: [PATCH] bindings: python: exclude tests from the wheel We currently "include" the gpiod package in find_packages() which does nothing as it would be discovered anyway. We want to package the test sources but exclude it from the binary wheel so use the "exclude" argument. Signed-off-by: Bartosz Golaszewski --- bindings/python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 6c83e22..e9dae00 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -47,7 +47,7 @@ with open(src("gpiod/version.py"), "r") as fd: setup( name="libgpiod", - packages=find_packages(include=["gpiod"]), + packages=find_packages(exclude=["tests"]), ext_modules=extensions, version=__version__, author="Bartosz Golaszewski", -- 2.30.2