diff mbox series

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

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

Commit Message

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

Patch

diff --git a/meta-python/recipes-devtools/python/python3-prettytable/run-ptest b/meta-python/recipes-devtools/python/python3-prettytable/run-ptest
deleted file mode 100644
index 8d2017d39..000000000
--- a/meta-python/recipes-devtools/python/python3-prettytable/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!/bin/sh
-
-pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-prettytable_3.12.0.bb b/meta-python/recipes-devtools/python/python3-prettytable_3.12.0.bb
index 442aadda2..007c0bffa 100644
--- a/meta-python/recipes-devtools/python/python3-prettytable_3.12.0.bb
+++ b/meta-python/recipes-devtools/python/python3-prettytable_3.12.0.bb
@@ -5,10 +5,8 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=c9a6829fcd174d9535b46211917c7671"
 
 
 SRC_URI[sha256sum] = "f04b3e1ba35747ac86e96ec33e3bb9748ce08e254dc2a1c6253945901beec804"
-SRC_URI += " \
-	file://run-ptest \
-"
-inherit pypi ptest python_hatchling
+
+inherit pypi ptest-python-pytest  python_hatchling
 
 do_install:append() {
     perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "*.txt" -o -name "PKG-INFO"`
@@ -31,15 +29,8 @@  RDEPENDS:${PN} += " \
 "
 
 RDEPENDS:${PN}-ptest += " \
-    python3-pytest \
     python3-pytest-lazy-fixtures \
     python3-sqlite3 \
-    python3-unittest-automake-output \
 "
 
-do_install_ptest() {
-     install -d ${D}${PTEST_PATH}/tests
-     cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
-}
-
 BBCLASSEXTEND = "native nativesdk"