diff mbox series

[meta-python,04/13] python3-wsproto: update recipe to use the ptest-python-pytest class

Message ID 20250110200822.3958062-4-derek@asterius.io
State New
Headers show
Series [meta-python,01/13] python3-yarl: update recipe to use the ptest-python-pytest class | expand

Commit Message

Derek Straka Jan. 10, 2025, 8:08 p.m. UTC
Signed-off-by: Derek Straka <derek@asterius.io>
---
 .../python/python3-wsproto/run-ptest           |  3 ---
 .../python/python3-wsproto_1.2.0.bb            | 18 +++---------------
 2 files changed, 3 insertions(+), 18 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-wsproto/run-ptest
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-wsproto/run-ptest b/meta-python/recipes-devtools/python/python3-wsproto/run-ptest
deleted file mode 100644
index 8d2017d39..000000000
--- a/meta-python/recipes-devtools/python/python3-wsproto/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!/bin/sh
-
-pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-wsproto_1.2.0.bb b/meta-python/recipes-devtools/python/python3-wsproto_1.2.0.bb
index 09f5565a9..4aac092fb 100644
--- a/meta-python/recipes-devtools/python/python3-wsproto_1.2.0.bb
+++ b/meta-python/recipes-devtools/python/python3-wsproto_1.2.0.bb
@@ -3,23 +3,11 @@  HOMEPAGE = "https://github.com/python-hyper/wsproto/"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=69fabf732409f4ac61875827b258caaf"
 
-inherit pypi setuptools3 ptest
+inherit pypi setuptools3 ptest-python-pytest
 
-SRC_URI[sha256sum] = "ad565f26ecb92588a3e43bc3d96164de84cd9902482b130d0ddbaa9664a85065"
-
-SRC_URI += " \
-        file://run-ptest \
-"
+PTEST_PYTEST_DIR = "test"
 
-RDEPENDS:${PN}-ptest += " \
-        python3-pytest \
-        python3-unittest-automake-output \
-"
-
-do_install_ptest() {
-        install -d ${D}${PTEST_PATH}/tests
-        cp -rf ${S}/test/* ${D}${PTEST_PATH}/tests/
-}
+SRC_URI[sha256sum] = "ad565f26ecb92588a3e43bc3d96164de84cd9902482b130d0ddbaa9664a85065"
 
 RDEPENDS:${PN} += " \
         python3-h11 \