Commit Graph

4 Commits

Author SHA1 Message Date
Khem Raj
b7e41815d3
python3-gpiod: Tests rely on configfs support in kernel
Add a recommendation on configfs kernel module.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-29 12:46:50 -08:00
Bartosz Golaszewski
eed63a4727
python3-gpiod: fix the required version of libgpiod
This version of python3-gpiod requires libgpiod v2.1 so fix RDEPENDS.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-17 11:38:27 -08:00
Bartosz Golaszewski
936ae8ef2e
python3-gpiod: setup target config in ptest compile
The python3targetconfig class does not setup the build config for target
in do_ptest_compile_base so we need to do this manually. While at it: use
the provided nativepython3 command instead of using the full path.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-15 09:51:46 -08:00
Bartosz Golaszewski
d919a10d53 python3-gpiod: update to v2.1.3
The python bindings for libgpiod have undergone several significant
changes that make them easier to use for users of pip. The libgpiod
sources are now vendored with the python3-gpiod as the biggest complaint
by far was the fact that if the system doesn't provide the correct
version of libgpiod, the python bindings won't build.

This is however irrelevant for the meta-python recipe as we use the
provided switch to keep linking against the libgpiod provided by
meta-openembedded.

We have changed the way the tests are built, they are now generated by a
separate build script and no longer by setup.py. The package now
correctly build with the preferred pep517 method so change the inherited
classes.

We have also gained control over the gpiod module on pypi (which
previously hosted a pure python GPIO library) so the location of the
sources has changed.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-09 20:47:44 -08:00