From: Bartosz Golaszewski Date: Wed, 12 Apr 2023 19:51:01 +0000 (+0200) Subject: bindings: python: exclude tests from the wheel X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=136553212c58b709c11e7644a458658e1ebbd562;p=qemu-gpiodev%2Flibgpiod.git 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 --- 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",