diff mbox series

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

Message ID 20250117203030.3648575-2-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>
---
 .../recipes-devtools/python/python3-pydantic/run-ptest    | 3 ---
 .../recipes-devtools/python/python3-pydantic_2.10.5.bb    | 8 ++------
 2 files changed, 2 insertions(+), 9 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-pydantic/run-ptest
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pydantic/run-ptest b/meta-python/recipes-devtools/python/python3-pydantic/run-ptest
deleted file mode 100644
index 8d2017d39..000000000
--- a/meta-python/recipes-devtools/python/python3-pydantic/run-ptest
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!/bin/sh
-
-pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.10.5.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.10.5.bb
index 019781d51..cf211972d 100644
--- a/meta-python/recipes-devtools/python/python3-pydantic_2.10.5.bb
+++ b/meta-python/recipes-devtools/python/python3-pydantic_2.10.5.bb
@@ -9,7 +9,7 @@  HOMEPAGE = "https://github.com/samuelcolvin/pydantic"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
 
-inherit pypi python_hatchling
+inherit pypi python_hatchling ptest-python-pytest
 
 SRC_URI[sha256sum] = "278b38dbbaec562011d659ee05f63346951b3a248a6f3642e1bc68894ea2b4ff" 
 
@@ -35,8 +35,6 @@  RDEPENDS:${PN} += "\
     python3-zoneinfo \
 "
 
-inherit ptest
-SRC_URI += "file://run-ptest"
 RDEPENDS:${PN}-ptest += "\
     python3-ansi2html \
     python3-coverage \
@@ -50,17 +48,15 @@  RDEPENDS:${PN}-ptest += "\
     python3-mypy \
     python3-packaging \
     python3-pydoc \
-    python3-pytest \
     python3-pytest-codspeed \
     python3-pytest-mock \
     python3-pytz \
     python3-rich \
     python3-sqlalchemy \
-    python3-unittest-automake-output \
     python3-unixadmin \
 "
 
-do_install_ptest() {
+do_install_ptest:append() {
     cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
     # Requires 'ruff' (python3-ruff) which we cannot build
     # until we have Rust 1.71+ in oe-core