diff mbox series

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

Message ID 20250110200822.3958062-11-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>
---
 .../recipes-devtools/python/python3-tzdata/run-ptest  |  3 ---
 .../recipes-devtools/python/python3-tzdata_2024.2.bb  | 11 ++---------
 2 files changed, 2 insertions(+), 12 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-tzdata/run-ptest
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-tzdata/run-ptest b/meta-python/recipes-devtools/python/python3-tzdata/run-ptest
deleted file mode 100644
index 8d2017d39..000000000
--- a/meta-python/recipes-devtools/python/python3-tzdata/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!/bin/sh
-
-pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-tzdata_2024.2.bb b/meta-python/recipes-devtools/python/python3-tzdata_2024.2.bb
index 614d813e8..20e9715dd 100644
--- a/meta-python/recipes-devtools/python/python3-tzdata_2024.2.bb
+++ b/meta-python/recipes-devtools/python/python3-tzdata_2024.2.bb
@@ -6,20 +6,13 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=fca9fd5c15a28eb874ba38577a585d48 \
 
 SRC_URI[sha256sum] = "7d85cc416e9382e69095b7bdf4afd9e3880418a2413feec7069d533d6b4e31cc"
 
-inherit pypi python_setuptools_build_meta
-
-inherit ptest
-
-SRC_URI += "file://run-ptest"
+inherit pypi python_setuptools_build_meta ptest-python-pytest
 
 RDEPENDS:${PN}-ptest += "\
     python3-attrs \
-    python3-pytest \
     python3-pytest-subtests \
-    python3-unittest-automake-output \
 "
 
-do_install_ptest() {
-    cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
+do_install_ptest:append() {
 	install ${S}/VERSION ${D}${PTEST_PATH}/
 }