summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
diff options
context:
space:
mode:
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