Message ID | 7d6f92c65d843ad7f4db15a43be065759fe8e7eb.1701991044.git.ticotimo@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [meta-python,1/7] python3-pydantic-core: add v2.14.5 | expand |
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index 13dcb621d..f6ae86a1f 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc @@ -27,6 +27,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-polyline \ python3-precise-runner \ python3-prettytable \ + python3-pydantic \ python3-pydantic-core \ python3-pylint \ python3-ptyprocess \ diff --git a/meta-python/recipes-devtools/python/python3-pydantic/run-ptest b/meta-python/recipes-devtools/python/python3-pydantic/run-ptest new file mode 100644 index 000000000..8d2017d39 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pydantic/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake 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 226c58e87..8fc59aa93 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 +} +
* Add to ptest-packelists-meta-python.inc "FAST" under 30 s Signed-off-by: Tim Orling <ticotimo@gmail.com> --- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-pydantic/run-ptest | 3 +++ .../python/python3-pydantic_2.5.2.bb | 22 +++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pydantic/run-ptest