diff options
author | Tim Orling <ticotimo@gmail.com> | 2023-11-29 10:59:06 -0800 |
---|---|---|
committer | Tim Orling <ticotimo@gmail.com> | 2023-12-05 11:25:13 -0800 |
commit | 0ce35912c8abbcba1cde67e1a64781772cbe8166 (patch) | |
tree | 8b2912d331bd5c34040c8aca7f8eff6c9b12c6ca /meta-python/recipes-devtools | |
parent | 08df5154b239445506463e580c7ac50ce52f352d (diff) | |
download | meta-openembedded-contrib-0ce35912c8abbcba1cde67e1a64781772cbe8166.tar.gz |
[WIP] python3-pydantic: enable ptesttimo/python3-pydantic_deps
* Add missing python3-annotated-types RDEPENDS
Signed-off-by: Tim Orling <ticotimo@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pydantic/run-ptest | 3 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pydantic_2.5.2.bb | 23 |
2 files changed, 26 insertions, 0 deletions
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 @@ +#!/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 844476ed2a..40d5981ff4 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 @@ -10,6 +10,7 @@ SRC_URI[sha256sum] = "ff177ba64c6faf73d7afa2e8cad38fd456c0dbe01c9954e71038001cd1 DEPENDS += "python3-hatch-fancy-pypi-readme-native" RDEPENDS:${PN} += "\ + python3-annotated-types \ python3-core \ python3-datetime \ python3-image \ @@ -22,3 +23,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 +} + |