Message ID | 20250320080451.1063409-1-omri.sarig13@gmail.com |
---|---|
State | New |
Headers | show |
Series | [meta-python] python3-varlink: Add recipe | expand |
does this package have unittests ? if so can we add ptest support as well while here ? On Thu, Mar 20, 2025 at 1:06 AM Omri Sarig via lists.openembedded.org <omri.sarig13=gmail.com@lists.openembedded.org> wrote: > > 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. > > Signed-off-by: Omri Sarig <omri.sarig13@gmail.com> > --- > .../python/python3-varlink_git.bb | 26 +++++++++++++++++++ > 1 file changed, 26 insertions(+) > create mode 100644 meta-python/recipes-devtools/python/python3-varlink_git.bb > > diff --git a/meta-python/recipes-devtools/python/python3-varlink_git.bb b/meta-python/recipes-devtools/python/python3-varlink_git.bb > new file mode 100644 > index 0000000000..d3c89527ea > --- /dev/null > +++ b/meta-python/recipes-devtools/python/python3-varlink_git.bb > @@ -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: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
On 3/20/25 09:09, Khem Raj wrote: > 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. > > On Thu, Mar 20, 2025 at 1:06 AM Omri Sarig via lists.openembedded.org > <omri.sarig13=gmail.com@lists.openembedded.org> wrote: >> 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. >> >> Signed-off-by: Omri Sarig <omri.sarig13@gmail.com> >> --- >> .../python/python3-varlink_git.bb | 26 +++++++++++++++++++ >> 1 file changed, 26 insertions(+) >> create mode 100644 meta-python/recipes-devtools/python/python3-varlink_git.bb >> >> diff --git a/meta-python/recipes-devtools/python/python3-varlink_git.bb b/meta-python/recipes-devtools/python/python3-varlink_git.bb >> new file mode 100644 >> index 0000000000..d3c89527ea >> --- /dev/null >> +++ b/meta-python/recipes-devtools/python/python3-varlink_git.bb >> @@ -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: openembedded-devel+owner@lists.openembedded.org >> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com] >> -=-=-=-=-=-=-=-=-=-=-=- >>
diff --git a/meta-python/recipes-devtools/python/python3-varlink_git.bb b/meta-python/recipes-devtools/python/python3-varlink_git.bb new file mode 100644 index 0000000000..d3c89527ea --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-varlink_git.bb @@ -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 \ +"
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. Signed-off-by: Omri Sarig <omri.sarig13@gmail.com> --- .../python/python3-varlink_git.bb | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-varlink_git.bb