diff mbox series

[meta-python,09/11] python3-inotify: update recipe to use the ptest-python-pytest class

Message ID 20250131013935.3714521-9-derek@asterius.io
State Accepted
Headers show
Series [meta-python,01/11] python3-dasbus: update recipe to use the ptest-python-pytest class | expand

Commit Message

Derek Straka Jan. 31, 2025, 1:39 a.m. UTC
Signed-off-by: Derek Straka <derek@asterius.io>
---
 .../python/python3-inotify/run-ptest                |  3 ---
 .../recipes-devtools/python/python3-inotify_git.bb  | 13 +------------
 2 files changed, 1 insertion(+), 15 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-inotify/run-ptest
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-inotify/run-ptest b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
deleted file mode 100644
index 8d2017d39c..0000000000
--- a/meta-python/recipes-devtools/python/python3-inotify/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!/bin/sh
-
-pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-inotify_git.bb b/meta-python/recipes-devtools/python/python3-inotify_git.bb
index 582599bca8..f7df716654 100644
--- a/meta-python/recipes-devtools/python/python3-inotify_git.bb
+++ b/meta-python/recipes-devtools/python/python3-inotify_git.bb
@@ -8,26 +8,15 @@  SRC_URI[sha256sum] = "974a623a338482b62e16d4eb705fb863ed33ec178680fc3e96ccdf0df6
 SRC_URI = " \
     git://github.com/dsoprea/pyinotify.git;branch=master;protocol=https \
     file://new-test-inotify.patch \
-    file://run-ptest \
 "
 
 SRCREV = "9be6a51d1660991562eefaaddefa757ca0e0e00f"
 
 S = "${WORKDIR}/git"
 
-inherit setuptools3 ptest
+inherit setuptools3 ptest-python-pytest
 
 RDEPENDS:${PN} += " \
     python3-ctypes \
     python3-logging \
 "
-
-RDEPENDS:${PN}-ptest += " \
-    python3-pytest \
-    python3-unittest-automake-output \
-"
-
-do_install_ptest() {
-    install -d ${D}${PTEST_PATH}/tests
-    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
-}