diff options
| author | Leon Anavi <leon.anavi@konsulko.com> | 2026-01-13 12:34:21 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-01-13 08:28:59 -0800 |
| commit | 88ae17fd8f9a7144c29fb3442b3d8af902340ada (patch) | |
| tree | 8deee6038472f62d8433c51b440ce497313397c4 /meta-python/recipes-devtools/python/python3-libevdev_0.13.1.bb | |
| parent | 0c94f27fdac5db6e4612d06bb86f06a580199e14 (diff) | |
| download | meta-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/python3-libevdev_0.13.1.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-libevdev_0.13.1.bb | 31 |
1 files changed, 31 insertions, 0 deletions
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 @@ | |||
| 1 | DESCRIPTION = "python-libevdev is a Python wrapper around the libevdev C library." | ||
| 2 | HOMEPAGE = "https://gitlab.freedesktop.org/libevdev/python-libevdev" | ||
| 3 | SECTION = "devel/python" | ||
| 4 | |||
| 5 | LICENSE = "MIT" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d94c10c546b419eddc6296157ec40747" | ||
| 7 | |||
| 8 | SRC_URI[sha256sum] = "dc3369cd1401767b9ecb1117cd6b73faba9038e3bd9e1695a710a9e9d9415e8d" | ||
| 9 | |||
| 10 | inherit pypi python_hatchling ptest | ||
| 11 | |||
| 12 | PYPI_PACKAGE = "libevdev" | ||
| 13 | |||
| 14 | SRC_URI += " \ | ||
| 15 | file://run-ptest \ | ||
| 16 | " | ||
| 17 | |||
| 18 | RDEPENDS:${PN} += " \ | ||
| 19 | libevdev \ | ||
| 20 | python3-ctypes \ | ||
| 21 | " | ||
| 22 | |||
| 23 | RDEPENDS:${PN}-ptest += " \ | ||
| 24 | python3-pytest \ | ||
| 25 | " | ||
| 26 | |||
| 27 | do_install_ptest() { | ||
| 28 | install -d ${D}${PTEST_PATH}/test | ||
| 29 | cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ | ||
| 30 | } | ||
| 31 | |||
