python3-dasbus: Add new recipe
Will update the LICENSE field in v2.
Thanks,
Quoted 43 lines · Mingli
From: Mingli Yu <[email protected]>
Dasbus is a DBus library written in Python 3, based on GLib and inspired by pydbus.
Signed-off-by Mingli Yu <[email protected]>--- .../recipes-devtools/python/python3-dasbus_1.7.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+)create mode 100644 meta-python/recipes-devtools/python/python3-dasbus_1.7.bb
meta-python/recipes-devtools/python/python3-dasbus_1.7.bb new file +15
-1@@ -0,0 +1,15 @@ +SUMMARY = "Dasbus is a DBus library written in Python 3, based on GLib and inspired by pydbus." +HOMEPAGE = "https://dasbus.readthedocs.io" +SECTION = "devel" +LICENSE = "LGPL-2.1-only" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742" + +SRC_URI = "git://github.com/dasbus-project/dasbus.git;protocol=https;branch=master \ +" +SRCREV = "413cf9a0b7c231468f1d28d9a29dd8dd8bda15c5" + +S = "${WORKDIR}/git" + +inherit setuptools3 + +RDEPENDS:${PN} = "python3-pygobject" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#110580): https://lists.openembedded.org/g/openembedded-devel/message/110580
Mute This Topic: https://lists.openembedded.org/mt/106345708/3618448
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH v2 1/1 python3-dasbus: Add new recipe
In reply to a message not in the archiveFrom: Mingli Yu <[email protected]>
Dasbus is a DBus library written in Python 3, based on GLib and inspired by pydbus.
--- .../recipes-devtools/python/python3-dasbus_1.7.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-dasbus_1.7.bb
meta-python/recipes-devtools/python/python3-dasbus_1.7.bb new file +15 -0
@@ -0,0 +1,15 @@ +SUMMARY = "Dasbus is a DBus library written in Python 3, based on GLib and inspired by pydbus." +HOMEPAGE = "https://dasbus.readthedocs.io" +SECTION = "devel" +LICENSE = "LGPL-2.1-or-later" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742" + +SRC_URI = "git://github.com/dasbus-project/dasbus.git;protocol=https;branch=master \ +" +SRCREV = "413cf9a0b7c231468f1d28d9a29dd8dd8bda15c5" + +S = "${WORKDIR}/git" + +inherit setuptools3 + +RDEPENDS:${PN} = "python3-pygobject"
Signature · 1 line
2.25.1
PATCH 1/1 python3-dasbus: Add ptest support
In reply to a message not in the archiveFrom: Mingli Yu <[email protected]>
#./run-ptest
PASS: tests/test_client.py:DBusClientTestCase.test_async_method
PASS: tests/test_client.py:DBusClientTestCase.test_error
PASS: tests/test_client.py:DBusClientTestCase.test_interface_proxy
PASS: tests/test_client.py:DBusClientTestCase.test_introspect
PASS: tests/test_client.py:DBusClientTestCase.test_invalid_method_result
PASS: tests/test_client.py:DBusClientTestCase.test_method
PASS: tests/test_client.py:DBusClientTestCase.test_property
PASS: tests/test_client.py:DBusClientTestCase.test_signal
PASS: tests/test_client.py:DBusClientTestCase.test_variant_type_factory [snip]
============================================================================
Testsuite summary
# TOTAL: 162
# PASS: 162
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
--- .../python/python3-dasbus/run-ptest | 3 +++ .../python/python3-dasbus_1.7.bb | 19 ++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 meta-python/recipes-devtools/python/python3-dasbus/run-ptest
meta-python/recipes-devtools/python/python3-dasbus/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake
meta-python/recipes-devtools/python/python3-dasbus_1.7.bb +18 -1
@@ -5,11 +5,28 @@ LICENSE = "LGPL-2.1-or-later" LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742" SRC_URI = "git://github.com/dasbus-project/dasbus.git;protocol=https;branch=master \ + file://run-ptest \ " SRCREV = "413cf9a0b7c231468f1d28d9a29dd8dd8bda15c5" S = "${WORKDIR}/git" -inherit setuptools3 +inherit setuptools3 ptest + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ + + # Remove the problematic cases + # https://github.com/dasbus-project/dasbus/issues/128 + rm -rf ${D}${PTEST_PATH}/tests/lib_dbus.py + rm -rf ${D}${PTEST_PATH}/tests/test_dbus.py + rm -rf ${D}${PTEST_PATH}/tests/test_unix.py +} RDEPENDS:${PN} = "python3-pygobject" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +"
Signature · 1 line
2.25.1
Re: [oe] [meta-python][PATCH] python3-dasbus: Add ptest support
In reply to a message not in the archiveSorry to disturb! Just a reminder in case miss this email.
Thanks,
Quoted 84 lines · Mingli
From: Mingli Yu <[email protected]>
#./run-ptest
PASS: tests/test_client.py:DBusClientTestCase.test_async_method
PASS: tests/test_client.py:DBusClientTestCase.test_error
PASS: tests/test_client.py:DBusClientTestCase.test_interface_proxy
PASS: tests/test_client.py:DBusClientTestCase.test_introspect
PASS: tests/test_client.py:DBusClientTestCase.test_invalid_method_result
PASS: tests/test_client.py:DBusClientTestCase.test_method
PASS: tests/test_client.py:DBusClientTestCase.test_property
PASS: tests/test_client.py:DBusClientTestCase.test_signal
PASS: tests/test_client.py:DBusClientTestCase.test_variant_type_factory [snip]
============================================================================
Testsuite summary
# TOTAL: 162
# PASS: 162
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0Signed-off-by Mingli Yu <[email protected]>--- .../python/python3-dasbus/run-ptest | 3 +++ .../python/python3-dasbus_1.7.bb | 19 ++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-)create mode 100755 meta-python/recipes-devtools/python/python3-dasbus/run-ptest
meta-python/recipes-devtools/python/python3-dasbus/run-ptest new file +3
-0@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automakemeta-python/recipes-devtools/python/python3-dasbus_1.7.bb +18
-2@@ -5,11 +5,28 @@ LICENSE = "LGPL-2.1-or-later" LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742" SRC_URI = "git://github.com/dasbus-project/dasbus.git;protocol=https;branch=master \ + file://run-ptest \ " SRCREV = "413cf9a0b7c231468f1d28d9a29dd8dd8bda15c5" S = "${WORKDIR}/git" -inherit setuptools3 +inherit setuptools3 ptest + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ + + # Remove the problematic cases + # https://github.com/dasbus-project/dasbus/issues/128 + rm -rf ${D}${PTEST_PATH}/tests/lib_dbus.py + rm -rf ${D}${PTEST_PATH}/tests/test_dbus.py + rm -rf ${D}${PTEST_PATH}/tests/test_unix.py +} RDEPENDS:${PN} = "python3-pygobject" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#110621): https://lists.openembedded.org/g/openembedded-devel/message/110621
Mute This Topic: https://lists.openembedded.org/mt/106381958/3618448
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-