diff mbox series

[meta-python,08/23] python3-lz4: update recipe to use the ptest-python-pytest class

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

Commit Message

Derek Straka Jan. 30, 2025, 9:57 p.m. UTC
Signed-off-by: Derek Straka <derek@asterius.io>
---
 .../recipes-devtools/python/python3-lz4/run-ptest        | 3 ---
 meta-python/recipes-devtools/python/python3-lz4_4.3.3.bb | 9 ++-------
 2 files changed, 2 insertions(+), 10 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-lz4/run-ptest
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-lz4/run-ptest b/meta-python/recipes-devtools/python/python3-lz4/run-ptest
deleted file mode 100644
index 8d2017d39c..0000000000
--- a/meta-python/recipes-devtools/python/python3-lz4/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!/bin/sh
-
-pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-lz4_4.3.3.bb b/meta-python/recipes-devtools/python/python3-lz4_4.3.3.bb
index 746926da4e..7bbe59e8b7 100644
--- a/meta-python/recipes-devtools/python/python3-lz4_4.3.3.bb
+++ b/meta-python/recipes-devtools/python/python3-lz4_4.3.3.bb
@@ -9,24 +9,19 @@  DEPENDS += " \
     python3-pkgconfig-native \
 "
 
-SRC_URI += "file://run-ptest"
-
 SRC_URI[sha256sum] = "01fe674ef2889dbb9899d8a67361e0c4a2c833af5aeb37dd505727cf5d2a131e"
 
-inherit pkgconfig pypi python_setuptools_build_meta ptest
+inherit pkgconfig pypi python_setuptools_build_meta ptest-python-pytest
 
 RDEPENDS:${PN}-ptest += "\
     python3-coverage \
-    python3-pytest \
     python3-pytest-cov \
     python3-pytest-runner \
     python3-multiprocessing \
     python3-psutil \
-    python3-unittest-automake-output \
 "
 
-do_install_ptest() {
-    cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
+do_install_ptest:append () {
     # The stream API is experimental and not enabled yet, so don't ship the test suite
     rm -rf ${D}${PTEST_PATH}/tests/stream
 }