From: Tim Orling <[email protected]>

The majority of the ptests require the data/ directory, so
switch to using the git fetcher.

1620 tests pass, 12 are skipped:

Testsuite summary
DURATION: 258

Of the 12 skipped tests, 7 are because of missing ptest rdepends
python3-pendulum, which is not yet supported for python 3.14.x.

Signed-off-by: Tim Orling <[email protected]>
---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-orjson_3.11.6.bb           | 23 +++++++++++++++++--
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc 
b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index a84718b704..b5acf163b4 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -135,6 +135,7 @@ PTESTS_SLOW_META_PYTHON = "\
     python3-google-auth \
     python3-lz4 \
     python3-marshmallow \
+    python3-orjson \
     python3-pillow \
     python3-pint \
     python3-pykickstart \
diff --git a/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb 
b/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb
index e26ca77d91..9a70d73360 100644
--- a/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb
+++ b/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb
@@ -3,13 +3,14 @@ HOMEPAGE = "https://pypi.org/project/orjson/";
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d"
 
-SRC_URI[sha256sum] = 
"0a54c72259f35299fd033042367df781c2f66d10252955ca1efb7db309b954cb"
+SRCREV = "ec02024c3837255064f248c0d2d331319b75e9ad"
+PYPI_SRC_URI = 
"git://github.com/ijl/orjson;protocol=https;branch=master;tag=${PV};destsuffix=orjson-${PV}"
 
 CVE_PRODUCT = "orjson"
 
 require ${BPN}-crates.inc
 
-inherit pypi python_maturin cargo-update-recipe-crates
+inherit pypi python_maturin cargo-update-recipe-crates ptest-python-pytest
 
 SRC_URI += " \
     file://0001-Guard-avx512-module-with-x86-target-cfg.patch \
@@ -23,4 +24,22 @@ do_compile:prepend() {
     sed -i "/panic = \"abort\"/d" ${S}/Cargo.toml
 }
 
+do_install_ptest:append() {
+    install -d ${D}${PTEST_PATH}/data
+    cp -rf ${S}/data/* ${D}${PTEST_PATH}/data/
+    install -d ${D}${PTEST_PATH}/test
+    cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
+}
+
+RDEPENDS:${PN}-ptest += "\
+    python3-dateutil \
+    python3-dateutil-zoneinfo \
+    python3-faker \
+    python3-numpy \
+    python3-pandas \
+    python3-psutil \
+    python3-pytz \
+    python3-tzdata \
+"
+
 BBCLASSEXTEND = "native nativesdk"
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#123996): 
https://lists.openembedded.org/g/openembedded-devel/message/123996
Mute This Topic: https://lists.openembedded.org/mt/117537810/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to