* Add to ptest-packelists-meta-python.inc "FAST" under 30 s
Signed-off-by: Tim Orling <[email protected]>
---
.../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
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
+}
+
--
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#107299):
https://lists.openembedded.org/g/openembedded-devel/message/107299
Mute This Topic: https://lists.openembedded.org/mt/103045281/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-