diff mbox series

[meta-python,05/10] python3-py-cpuinfo: update recipe to use the ptest-python-pytest class

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

Commit Message

Derek Straka Jan. 17, 2025, 8:30 p.m. UTC
Signed-off-by: Derek Straka <derek@asterius.io>
---
 .../python/python3-py-cpuinfo/run-ptest               |  3 ---
 .../python/python3-py-cpuinfo_9.0.0.bb                | 11 ++---------
 2 files changed, 2 insertions(+), 12 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-py-cpuinfo/run-ptest
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-py-cpuinfo/run-ptest b/meta-python/recipes-devtools/python/python3-py-cpuinfo/run-ptest
deleted file mode 100644
index 8d2017d39..000000000
--- a/meta-python/recipes-devtools/python/python3-py-cpuinfo/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!/bin/sh
-
-pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb b/meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb
index 2d59a99b1..8aef266e3 100644
--- a/meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb
+++ b/meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb
@@ -8,9 +8,9 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=d2379ecb0d7a8299101b1e4c160cd1f7"
 
 SRC_URI[sha256sum] = "3cdbbf3fac90dc6f118bfd64384f309edeadd902d7c8fb17f02ffa1fc3f49690"
 
-inherit ptest pypi python_setuptools_build_meta
+inherit ptest-python-pytest pypi python_setuptools_build_meta
 
-SRC_URI += "file://run-ptest \
+SRC_URI += " \
             file://0001-test_cli.py-disable.patch \
            "
 
@@ -21,15 +21,8 @@  do_install:append() {
     done
 }
 
-do_install_ptest() {
-    install -d ${D}${PTEST_PATH}/tests
-    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
-}
-
 RDEPENDS:${PN}-ptest += "\
     python3-compile \
-    python3-pytest \
-    python3-unittest-automake-output \
 "
 
 RDEPENDS:${PN} += "python3-core python3-ctypes python3-datetime python3-json python3-io python3-mmap python3-multiprocessing python3-netclient python3-pickle python3-pprint python3-shell"