From 88ae17fd8f9a7144c29fb3442b3d8af902340ada Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Tue, 13 Jan 2026 12:34:21 +0200 Subject: 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 Signed-off-by: Khem Raj --- .../python/python3-libevdev/run-ptest | 3 +++ .../python/python3-libevdev_0.12.bb | 17 ------------ .../python/python3-libevdev_0.13.1.bb | 31 ++++++++++++++++++++++ 3 files changed, 34 insertions(+), 17 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-libevdev/run-ptest delete mode 100644 meta-python/recipes-devtools/python/python3-libevdev_0.12.bb create mode 100644 meta-python/recipes-devtools/python/python3-libevdev_0.13.1.bb (limited to 'meta-python/recipes-devtools/python') 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 @@ +#!/bin/sh + +pytest --automake diff --git a/meta-python/recipes-devtools/python/python3-libevdev_0.12.bb b/meta-python/recipes-devtools/python/python3-libevdev_0.12.bb deleted file mode 100644 index cabcfd8df6..0000000000 --- a/meta-python/recipes-devtools/python/python3-libevdev_0.12.bb +++ /dev/null @@ -1,17 +0,0 @@ -DESCRIPTION = "python-libevdev is a Python wrapper around the libevdev C library." -HOMEPAGE = "https://gitlab.freedesktop.org/libevdev/python-libevdev" -SECTION = "devel/python" - -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://COPYING;md5=d94c10c546b419eddc6296157ec40747" - -SRC_URI[sha256sum] = "02e952632ec6c249cbb9c66f6fa00012ea448b06606c77cd139133bc2fe46b08" - -inherit pypi setuptools3 - -PYPI_PACKAGE = "libevdev" - -RDEPENDS:${PN} += " \ - libevdev \ - python3-ctypes \ -" diff --git a/meta-python/recipes-devtools/python/python3-libevdev_0.13.1.bb b/meta-python/recipes-devtools/python/python3-libevdev_0.13.1.bb new file mode 100644 index 0000000000..1c8a99eb33 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-libevdev_0.13.1.bb @@ -0,0 +1,31 @@ +DESCRIPTION = "python-libevdev is a Python wrapper around the libevdev C library." +HOMEPAGE = "https://gitlab.freedesktop.org/libevdev/python-libevdev" +SECTION = "devel/python" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=d94c10c546b419eddc6296157ec40747" + +SRC_URI[sha256sum] = "dc3369cd1401767b9ecb1117cd6b73faba9038e3bd9e1695a710a9e9d9415e8d" + +inherit pypi python_hatchling ptest + +PYPI_PACKAGE = "libevdev" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN} += " \ + libevdev \ + python3-ctypes \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/test + cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ +} + -- cgit v1.2.3-54-g00ecf