diff options
| author | Tim Orling <ticotimo@gmail.com> | 2023-12-07 15:23:55 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-12-21 08:00:42 -0800 |
| commit | 446124784bfdaf3d3c955e760f7354ebaba5f1ef (patch) | |
| tree | d159fff7d09810f880d80e878cb60e7f9a475f91 /meta-python | |
| parent | e592a8ce9a3e4cc7ad9e2e0da67e5afa9a38186a (diff) | |
| download | meta-openembedded-446124784bfdaf3d3c955e760f7354ebaba5f1ef.tar.gz | |
python3-pydantic-core: enable ptest
* Add to ptest-packagelists-meta-python.inc "FAST" under 30 seconds
Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
3 files changed, 19 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 3272d98192..13dcb621d7 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-core \ | ||
| 30 | python3-pylint \ | 31 | python3-pylint \ |
| 31 | python3-ptyprocess \ | 32 | python3-ptyprocess \ |
| 32 | python3-py-cpuinfo \ | 33 | python3-py-cpuinfo \ |
diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core/run-ptest b/meta-python/recipes-devtools/python/python3-pydantic-core/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pydantic-core/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | pytest --automake | ||
diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core_2.14.5.bb b/meta-python/recipes-devtools/python/python3-pydantic-core_2.14.5.bb index 8221de80b6..01f180c8cb 100644 --- a/meta-python/recipes-devtools/python/python3-pydantic-core_2.14.5.bb +++ b/meta-python/recipes-devtools/python/python3-pydantic-core_2.14.5.bb | |||
| @@ -23,3 +23,18 @@ PYPI_ARCHIVE_NAME = "pydantic_core-${PV}.${PYPI_PACKAGE_EXT}" | |||
| 23 | RDEPENDS:${PN} += "python3-typing-extensions" | 23 | RDEPENDS:${PN} += "python3-typing-extensions" |
| 24 | 24 | ||
| 25 | INSANE_SKIP:${PN} = "already-stripped" | 25 | INSANE_SKIP:${PN} = "already-stripped" |
| 26 | |||
| 27 | inherit ptest | ||
| 28 | SRC_URI += "file://run-ptest" | ||
| 29 | RDEPENDS:${PN}-ptest += "\ | ||
| 30 | python3-dirty-equals \ | ||
| 31 | python3-hypothesis \ | ||
| 32 | python3-pytest \ | ||
| 33 | python3-pytest-mock \ | ||
| 34 | python3-unittest-automake-output \ | ||
| 35 | " | ||
| 36 | |||
| 37 | do_install_ptest() { | ||
| 38 | cp -rf ${S}/tests/ ${D}${PTEST_PATH}/ | ||
| 39 | rm -rf ${D}${PTEST_PATH}/tests/benchmarks | ||
| 40 | } | ||
