bindings: python: exclude tests from the wheel
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 12 Apr 2023 19:51:01 +0000 (21:51 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 12 Apr 2023 19:51:01 +0000 (21:51 +0200)
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 <bartosz.golaszewski@linaro.org>
bindings/python/setup.py

index 6c83e22b11d39853d8e41264fab74651c56d725a..e9dae00a3cbe3e7c57934e480ff87aad7c16a119 100644 (file)
@@ -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",