From 1872badd7350240a792a242efbe232f7c6cbc22a Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Thu, 7 Dec 2023 15:23:57 -0800 Subject: python3-pydantic: enable ptest * Add to ptest-packelists-meta-python.inc "FAST" under 30 s Signed-off-by: Tim Orling Signed-off-by: Khem Raj --- .../python/python3-pydantic_2.5.2.bb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'meta-python/recipes-devtools/python/python3-pydantic_2.5.2.bb') diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.5.2.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.5.2.bb index 226c58e876..8fc59aa937 100644 --- a/meta-python/recipes-devtools/python/python3-pydantic_2.5.2.bb +++ b/meta-python/recipes-devtools/python/python3-pydantic_2.5.2.bb @@ -29,3 +29,25 @@ RDEPENDS:${PN} += "\ python3-pydantic-core \ python3-typing-extensions \ " + +inherit ptest +SRC_URI += "file://run-ptest" +RDEPENDS:${PN}-ptest += "\ + python3-cloudpickle \ + python3-dirty-equals \ + python3-pytest \ + python3-pytest-mock \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + cp -rf ${S}/tests/ ${D}${PTEST_PATH}/ + # Requires 'ruff' (python3-ruff) which we cannot build + # until we have Rust 1.71+ in oe-core + rm -f ${D}${PTEST_PATH}/tests/test_docs.py + # We are not trying to support mypy + rm -f ${D}${PTEST_PATH}/tests/test_mypy.py + # We are not trying to run benchmarks + rm -rf ${D}${PTEST_PATH}/tests/benchmarks +} + -- cgit v1.2.3-54-g00ecf