Skip to contentSkip to conversation

python3-varlink: Add recipe

PATCH Superseded Omri Sarig 2 participants 3 messages Mar 20, 2025

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Omri Sarig

author
#0 lore raw

PATCH 1/1 python3-varlink: Add recipe

Add a python recipe to install the python implementation for the varlink interface.

The recipe is using the current master head, instead of the version from pypi. This is done as the pypi version is 4 years old, while the master is continuously maintained in GitHub.

The runtime dependencies were created by looking at all the import statement in the installed files of the repository and looking at the relevant packages from the python3 manifest file in meta-poky.

The repository contains a test directory, however, these tests are not fully automated, and can be used as an example for running the package on target. Therefore, the package is not added to the ptest system.

---
 .../python/python3-varlink_git.bb             | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-varlink_git.bb
meta-python/recipes-devtools/python/python3-varlink_git.bb new file +26 -0
new file mode 100644
index 0000000000..d3c89527ea
@@ -0,0 +1,26 @@
+SUMMARY = " Python implementation of the Varlink protocol"
+HOMEPAGE = "https://varlink.org/python/"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e"
+
+SRC_URI = "git://github.com/varlink/python.git;protocol=https;branch=master"
+
+SRCREV = "6012b8805bf2ebcc981c84bd56a3e949a2141c16"
+
+S = "${WORKDIR}/git"
+
+inherit python_setuptools_build_meta
+
+DEPENDS += "python3-setuptools-scm-native"
+
+RDEPENDS:${PN} += " \
+    python3-core \
+    python3-datetime \
+    python3-io \
+    python3-json \
+    python3-netclient \
+    python3-netserver \
+    python3-shell \
+    python3-stringold \
+    python3-unittest \
+"
#1 lore raw

does this package have unittests ? if so can we add ptest support as well while here ?

Quoted 63 lines · Omri Sarig via lists.openembedded.org

Add a python recipe to install the python implementation for the varlink interface.

The recipe is using the current master head, instead of the version from pypi. This is done as the pypi version is 4 years old, while the master is continuously maintained in GitHub.

The runtime dependencies were created by looking at all the import statement in the installed files of the repository and looking at the relevant packages from the python3 manifest file in meta-poky.

The repository contains a test directory, however, these tests are not fully automated, and can be used as an example for running the package on target. Therefore, the package is not added to the ptest system.

---
 .../python/python3-varlink_git.bb             | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-varlink_git.bb
meta-python/recipes-devtools/python/python3-varlink_git.bb new file +26 -1
new file mode 100644
index 0000000000..d3c89527ea
@@ -0,0 +1,26 @@
+SUMMARY = " Python implementation of the Varlink protocol"
+HOMEPAGE = "https://varlink.org/python/"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e"
+
+SRC_URI = "git://github.com/varlink/python.git;protocol=https;branch=master"
+
+SRCREV = "6012b8805bf2ebcc981c84bd56a3e949a2141c16"
+
+S = "${WORKDIR}/git"
+
+inherit python_setuptools_build_meta
+
+DEPENDS += "python3-setuptools-scm-native"
+
+RDEPENDS:${PN} += " \
+    python3-core \
+    python3-datetime \
+    python3-io \
+    python3-json \
+    python3-netclient \
+    python3-netserver \
+    python3-shell \
+    python3-stringold \
+    python3-unittest \
+"
 
-=-=-=-=-=-=-=-=-=-=-=-

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

author
#2 lore raw
Quoted 2 lines · Khem Raj

does this package have unittests ? if so can we add ptest support as well while here ?

I originally didn't see it, but I've looked at the examples again and they also have a way to run them as unittests. I'll add it and re-submit a patch.

Quoted 65 lines
Quoted 62 lines · Omri Sarig via lists.openembedded.org

Add a python recipe to install the python implementation for the varlink interface.

The recipe is using the current master head, instead of the version from pypi. This is done as the pypi version is 4 years old, while the master is continuously maintained in GitHub.

The runtime dependencies were created by looking at all the import statement in the installed files of the repository and looking at the relevant packages from the python3 manifest file in meta-poky.

The repository contains a test directory, however, these tests are not fully automated, and can be used as an example for running the package on target. Therefore, the package is not added to the ptest system.

---
  .../python/python3-varlink_git.bb             | 26 +++++++++++++++++++
  1 file changed, 26 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/python3-varlink_git.bb

meta-python/recipes-devtools/python/python3-varlink_git.bb new file +26 -1
new file mode 100644
index 0000000000..d3c89527ea
@@ -0,0 +1,26 @@
+SUMMARY = " Python implementation of the Varlink protocol"
+HOMEPAGE = "https://varlink.org/python/"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e"
+
+SRC_URI = "git://github.com/varlink/python.git;protocol=https;branch=master"
+
+SRCREV = "6012b8805bf2ebcc981c84bd56a3e949a2141c16"
+
+S = "${WORKDIR}/git"
+
+inherit python_setuptools_build_meta
+
+DEPENDS += "python3-setuptools-scm-native"
+
+RDEPENDS:${PN} += " \
+    python3-core \
+    python3-datetime \
+    python3-io \
+    python3-json \
+    python3-netclient \
+    python3-netserver \
+    python3-shell \
+    python3-stringold \
+    python3-unittest \
+"
 
-=-=-=-=-=-=-=-=-=-=-=-

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