diff mbox series

[meta-python,7/7] python3-pyro5: add recipe

Message ID 20251216175840.2939403-7-skandigraun@gmail.com
State Under Review
Headers show
Series [meta-python,1/7] python3-h2: add ptest support | expand

Commit Message

Gyorgy Sarvari Dec. 16, 2025, 5:58 p.m. UTC
Pyro enables you to build applications in which objects can talk to each
other over the network, with minimal programming effort.

Successor to the python3-pyro4 package - but this supports modern Python,
and still maintained (under the same umbrella that developed pyro4 also).

Ptest takes around a minute to execute. Sample output:

root@qemux86-64:~# ptest-runner
START: ptest-runner
2025-12-16T17:48
BEGIN: /usr/lib/python3-pyro5/ptest
PASS: tests/test_api.py:test_api
PASS: tests/test_client.py:TestProxy.testBasics
PASS: tests/test_client.py:TestProxy.testProxyCopy
[...many lines...]
PASS: tests/test_threadpool.py:TestThreadPool.testClose
PASS: tests/test_threadpool.py:TestThreadPool.testScaling
PASS: tests/test_threadpool.py:TestThreadPoolServer.testServerPoolFull
============================================================================
Testsuite summary
# TOTAL: 415
# PASS: 410
# SKIP: 5
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
DURATION: 60
END: /usr/lib/python3-pyro5/ptest
2025-12-16T17:49
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python-pyro5/python3-pyro5_5.15.bb        | 27 +++++++++++++++++++
 .../packagegroups/packagegroup-meta-python.bb |  1 +
 3 files changed, 29 insertions(+)
 create mode 100644 meta-python/recipes-connectivity/python-pyro5/python3-pyro5_5.15.bb
diff mbox series

Patch

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index e575b372b5..cef905a528 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -134,6 +134,7 @@  PTESTS_SLOW_META_PYTHON = "\
     python3-pillow \
     python3-pint \
     python3-pykickstart \
+    python3-pyro5 \
     python3-pytest-localserver \
     python3-scrypt \
     python3-traitlets \
diff --git a/meta-python/recipes-connectivity/python-pyro5/python3-pyro5_5.15.bb b/meta-python/recipes-connectivity/python-pyro5/python3-pyro5_5.15.bb
new file mode 100644
index 0000000000..eb6fab27cb
--- /dev/null
+++ b/meta-python/recipes-connectivity/python-pyro5/python3-pyro5_5.15.bb
@@ -0,0 +1,27 @@ 
+SUMMARY = "Python Remote Objects"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c1c9ccd5f4ca5d0f5057c0e690a0153d"
+
+SRC_URI[sha256sum] = "82c3dfc9860b49f897b28ff24fe6716c841672c600af8fe40d0e3a7fac9a3f5e"
+
+PYPI_PACKAGE = "Pyro5"
+UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
+
+inherit pypi setuptools3 ptest-python-pytest
+
+RDEPENDS:${PN} += " \
+    python3-json \
+    python3-logging \
+    python3-serpent \
+    python3-threading \
+    "
+
+RDEPENDS:${PN}-ptest += " \
+    python3-html \
+    python3-misc \
+    python3-sqlite3 \
+    "
+
+do_install_ptest:append(){
+    cp -r ${S}/certs ${D}${PTEST_PATH}/
+}
diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
index 37c8e868d3..2ff88e6264 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -335,6 +335,7 @@  RDEPENDS:packagegroup-meta-python3 = "\
     python3-pyperclip \
     python3-pyperf \
     python3-pyrad \
+    python3-pyro5 \
     python3-pyroute2 \
     python3-pyrsistent \
     python3-pyscaffold \