diff mbox series

[meta-python,3/4] python3-pint: update recipe to use the ptest-python-pytest class

Message ID 20250117225902.4103075-3-derek@asterius.io
State Accepted
Headers show
Series [meta-python,1/4] python3-polyline: update recipe to use the ptest-python-pytest class | expand

Commit Message

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

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pint/run-ptest b/meta-python/recipes-devtools/python/python3-pint/run-ptest
deleted file mode 100644
index 8d2017d39..000000000
--- a/meta-python/recipes-devtools/python/python3-pint/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!/bin/sh
-
-pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-pint_0.24.4.bb b/meta-python/recipes-devtools/python/python3-pint_0.24.4.bb
index 88efefff5..1bf62ca72 100644
--- a/meta-python/recipes-devtools/python/python3-pint_0.24.4.bb
+++ b/meta-python/recipes-devtools/python/python3-pint_0.24.4.bb
@@ -6,7 +6,7 @@  SECTION = "devel/python"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=bccf824202692270a1e0829a62e3f47b"
 
-inherit pypi ptest python_setuptools_build_meta
+inherit pypi ptest-python-pytest python_setuptools_build_meta
 
 SRC_URI[sha256sum] = "35275439b574837a6cd3020a5a4a73645eb125ce4152a73a2f126bf164b91b80"
 
@@ -14,9 +14,7 @@  DEPENDS += "python3-setuptools-scm-native"
 
 BBCLASSEXTEND = "native nativesdk"
 
-SRC_URI += " \
-	file://run-ptest \
-"
+PTEST_PYTEST_DIR = "pint"
 
 RDEPENDS:${PN} += " \
 	python3-setuptools \
@@ -30,14 +28,8 @@  RDEPENDS:${PN}-ptest += " \
 	python3-flexcache \
 	python3-flexparser \
 	python3-misc \
-	python3-pytest \
 	python3-pytest-benchmark \
 	python3-pytest-subtests \
 	python3-statistics \
-	python3-unittest-automake-output \
 "
 
-do_install_ptest() {
-	install -d ${D}${PTEST_PATH}/testsuite
-	cp -rf ${S}/pint/* ${D}${PTEST_PATH}/
-}