diff mbox series

[meta-python,02/10] python3-scrypt: update recipe to use the ptest-python-pytest class

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

Commit Message

Derek Straka Jan. 17, 2025, 6:59 p.m. UTC
Signed-off-by: Derek Straka <derek@asterius.io>
---
 .../python/python3-scrypt/run-ptest                 |  3 ---
 .../python/python3-scrypt_0.8.27.bb                 | 13 ++-----------
 2 files changed, 2 insertions(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-scrypt/run-ptest
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-scrypt/run-ptest b/meta-python/recipes-devtools/python/python3-scrypt/run-ptest
deleted file mode 100644
index 8d2017d39..000000000
--- a/meta-python/recipes-devtools/python/python3-scrypt/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!/bin/sh
-
-pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-scrypt_0.8.27.bb b/meta-python/recipes-devtools/python/python3-scrypt_0.8.27.bb
index a3254de07..02f1da8f5 100644
--- a/meta-python/recipes-devtools/python/python3-scrypt_0.8.27.bb
+++ b/meta-python/recipes-devtools/python/python3-scrypt_0.8.27.bb
@@ -7,22 +7,13 @@  SRC_URI += "file://0001-py-scrypt-remove-the-hard-coded-include-paths.patch"
 
 SRC_URI[sha256sum] = "a7b637848ed518c1ea2b31a9ecaaa3f49616598d8442de8706cf1f01fbabf0a7"
 
-inherit pypi ptest setuptools3 dos2unix
-
-SRC_URI += " \
-    file://run-ptest \
-"
-
-RDEPENDS:${PN}-ptest += " \
-    python3-pytest \
-    python3-unittest-automake-output \
-"
+inherit pypi ptest-python-pytest setuptools3 dos2unix
 
 RDEPENDS:${PN} += " \
     python3-ctypes \
 "
 
-do_install_ptest() {
+do_install_ptest:append() {
     install -d ${D}${PTEST_PATH}/tests
     cp -rf ${S}/scrypt/tests/* ${D}${PTEST_PATH}/tests/
 }