diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
| -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 | 22 |
2 files changed, 25 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 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | 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 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 | |||
| 33 | inherit ptest | ||
| 34 | SRC_URI += "file://run-ptest" | ||
| 35 | RDEPENDS:${PN}-ptest += "\ | ||
| 36 | python3-cloudpickle \ | ||
| 37 | python3-dirty-equals \ | ||
| 38 | python3-pytest \ | ||
| 39 | python3-pytest-mock \ | ||
| 40 | python3-unittest-automake-output \ | ||
| 41 | " | ||
| 42 | |||
| 43 | do_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 | |||
