summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2026-01-13 12:34:21 +0200
committerKhem Raj <raj.khem@gmail.com>2026-01-13 08:28:59 -0800
commit88ae17fd8f9a7144c29fb3442b3d8af902340ada (patch)
tree8deee6038472f62d8433c51b440ce497313397c4 /meta-python/recipes-devtools/python
parent0c94f27fdac5db6e4612d06bb86f06a580199e14 (diff)
downloadmeta-openembedded-88ae17fd8f9a7144c29fb3442b3d8af902340ada.tar.gz
python3-libevdev: Upgrade 0.12 -> 0.13.1
Add ptest and upgrade to release 0.13.1: - pyproject.toml: add pytest as dev dependency - Import Self from type_checking if needed to be compat with 3.9 - CI: run pytest via uv - CI: test against multiple python versions Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r--meta-python/recipes-devtools/python/python3-libevdev/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-libevdev_0.13.1.bb (renamed from meta-python/recipes-devtools/python/python3-libevdev_0.12.bb)18
2 files changed, 19 insertions, 2 deletions
diff --git a/meta-python/recipes-devtools/python/python3-libevdev/run-ptest b/meta-python/recipes-devtools/python/python3-libevdev/run-ptest
new file mode 100644
index 0000000000..8d2017d39c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-libevdev/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-libevdev_0.12.bb b/meta-python/recipes-devtools/python/python3-libevdev_0.13.1.bb
index cabcfd8df6..1c8a99eb33 100644
--- a/meta-python/recipes-devtools/python/python3-libevdev_0.12.bb
+++ b/meta-python/recipes-devtools/python/python3-libevdev_0.13.1.bb
@@ -5,13 +5,27 @@ SECTION = "devel/python"
5LICENSE = "MIT" 5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://COPYING;md5=d94c10c546b419eddc6296157ec40747" 6LIC_FILES_CHKSUM = "file://COPYING;md5=d94c10c546b419eddc6296157ec40747"
7 7
8SRC_URI[sha256sum] = "02e952632ec6c249cbb9c66f6fa00012ea448b06606c77cd139133bc2fe46b08" 8SRC_URI[sha256sum] = "dc3369cd1401767b9ecb1117cd6b73faba9038e3bd9e1695a710a9e9d9415e8d"
9 9
10inherit pypi setuptools3 10inherit pypi python_hatchling ptest
11 11
12PYPI_PACKAGE = "libevdev" 12PYPI_PACKAGE = "libevdev"
13 13
14SRC_URI += " \
15 file://run-ptest \
16"
17
14RDEPENDS:${PN} += " \ 18RDEPENDS:${PN} += " \
15 libevdev \ 19 libevdev \
16 python3-ctypes \ 20 python3-ctypes \
17" 21"
22
23RDEPENDS:${PN}-ptest += " \
24 python3-pytest \
25"
26
27do_install_ptest() {
28 install -d ${D}${PTEST_PATH}/test
29 cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
30}
31