summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/conf/include/ptest-packagelists-meta-python.inc1
-rw-r--r--meta-python/recipes-devtools/python/python3-pydantic/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-pydantic_2.5.2.bb22
3 files changed, 26 insertions, 0 deletions
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index 13dcb621d7..f6ae86a1fa 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 = "\
27 python3-polyline \ 27 python3-polyline \
28 python3-precise-runner \ 28 python3-precise-runner \
29 python3-prettytable \ 29 python3-prettytable \
30 python3-pydantic \
30 python3-pydantic-core \ 31 python3-pydantic-core \
31 python3-pylint \ 32 python3-pylint \
32 python3-ptyprocess \ 33 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 0000000000..8d2017d39c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pydantic/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --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 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} += "\
29 python3-pydantic-core \ 29 python3-pydantic-core \
30 python3-typing-extensions \ 30 python3-typing-extensions \
31" 31"
32
33inherit ptest
34SRC_URI += "file://run-ptest"
35RDEPENDS:${PN}-ptest += "\
36 python3-cloudpickle \
37 python3-dirty-equals \
38 python3-pytest \
39 python3-pytest-mock \
40 python3-unittest-automake-output \
41"
42
43do_install_ptest() {
44 cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
45 # Requires 'ruff' (python3-ruff) which we cannot build
46 # until we have Rust 1.71+ in oe-core
47 rm -f ${D}${PTEST_PATH}/tests/test_docs.py
48 # We are not trying to support mypy
49 rm -f ${D}${PTEST_PATH}/tests/test_mypy.py
50 # We are not trying to run benchmarks
51 rm -rf ${D}${PTEST_PATH}/tests/benchmarks
52}
53