aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-04-12 21:51:01 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-04-12 21:51:01 +0200
commit136553212c58b709c11e7644a458658e1ebbd562 (patch)
treed0cd0a0b6eed7f364d0d779f6e5c723e87b93bb6
parentd5a454cda5044eff82fab3a0840af4b6078b86f2 (diff)
downloadlibgpiod-136553212c58b709c11e7644a458658e1ebbd562.tar.gz
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 <bartosz.golaszewski@linaro.org>
-rw-r--r--bindings/python/setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/setup.py b/bindings/python/setup.py
index 6c83e22b..e9dae00a 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",