Message ID | 20240627224112.198171-1-gudni.m.g@gmail.com |
---|---|
State | New |
Headers | show |
Series | [meta-python] python3-bleak: upgrade 0.21.1 -> 0.22.2 | expand |
This breaks ptest unfortunately as the direct pypi fetch does not include the tests. Only the direct github link as it was previously. On Fri, Jun 28, 2024 at 12:41 AM Guðni Már Gilbert via lists.openembedded.org <gudni.m.g=gmail.com@lists.openembedded.org> wrote: > Changes to the build: > - Drop python3-async-timeout which is only required for Python 3.10 and > older. > > Changelogs: > * https://github.com/hbldh/bleak/releases/tag/v0.22.2 > * https://github.com/hbldh/bleak/releases/tag/v0.22.1 > * https://github.com/hbldh/bleak/releases/tag/v0.22.0 > > Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com> > --- > .../{python3-bleak_0.21.1.bb => python3-bleak_0.22.2.bb} | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > rename meta-python/recipes-devtools/python/{python3-bleak_0.21.1.bb => > python3-bleak_0.22.2.bb} (74%) > > diff --git a/meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb > b/meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb > similarity index 74% > rename from meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb > rename to meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb > index 96f3fcbcf..36a823a9b 100644 > --- a/meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb > +++ b/meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb > @@ -3,13 +3,10 @@ HOMEPAGE = "https://github.com/hbldh/bleak" > LICENSE = "MIT" > LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7" > > -SRCREV = "054b092e19c7a45d5ea07d8948022f54117fe5e8" > -PYPI_SRC_URI = "git:// > github.com/hbldh/bleak.git;protocol=https;branch=develop" > +SRC_URI[sha256sum] = > "09010c0f4bd843e7dcaa1652e1bfb2450ce690da08d4c6163f0723aaa986e9fe" > > inherit pypi python_poetry_core ptest > > -S = "${WORKDIR}/git" > - > SRC_URI += " \ > file://run-ptest \ > " > @@ -26,8 +23,7 @@ do_install_ptest() { > } > > RDEPENDS:${PN} += " \ > - python3-core (>3.7) \ > - python3-async-timeout \ > + python3-core (>3.8) \ > python3-dbus-fast \ > python3-xml \ > " > -- > 2.34.1 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#111131): > https://lists.openembedded.org/g/openembedded-devel/message/111131 > Mute This Topic: https://lists.openembedded.org/mt/106918869/7396403 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ > t.f.g.geelen@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- > >
Guðni, In your updates, make sure you are running with ptest enabled in DISTRO_FEATURES (default with poky) and then for any recipe that inherits ptest in meta-python (and probably meta-oe) you should be able to run: bitbake meta-python-image-ptest-python3-bleak bitbake -c testimage meta-python-image-ptest-python3-bleak Any recipes you see where the pypi defaults have been changed were likely changed for a very good reason. Don't change them back. On Fri, Jun 28, 2024 at 6:45 AM Tom Geelen via lists.openembedded.org <t.f.g.geelen=gmail.com@lists.openembedded.org> wrote: > This breaks ptest unfortunately as the direct pypi fetch does not include > the tests. Only the direct github link as it was previously. > > On Fri, Jun 28, 2024 at 12:41 AM Guðni Már Gilbert via > lists.openembedded.org <gudni.m.g=gmail.com@lists.openembedded.org> wrote: > >> Changes to the build: >> - Drop python3-async-timeout which is only required for Python 3.10 and >> older. >> >> Changelogs: >> * https://github.com/hbldh/bleak/releases/tag/v0.22.2 >> * https://github.com/hbldh/bleak/releases/tag/v0.22.1 >> * https://github.com/hbldh/bleak/releases/tag/v0.22.0 >> >> Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com> >> --- >> .../{python3-bleak_0.21.1.bb => python3-bleak_0.22.2.bb} | 8 ++------ >> 1 file changed, 2 insertions(+), 6 deletions(-) >> rename meta-python/recipes-devtools/python/{python3-bleak_0.21.1.bb => >> python3-bleak_0.22.2.bb} (74%) >> >> diff --git a/meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb >> b/meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb >> similarity index 74% >> rename from meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb >> rename to meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb >> index 96f3fcbcf..36a823a9b 100644 >> --- a/meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb >> +++ b/meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb >> @@ -3,13 +3,10 @@ HOMEPAGE = "https://github.com/hbldh/bleak" >> LICENSE = "MIT" >> LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7" >> >> -SRCREV = "054b092e19c7a45d5ea07d8948022f54117fe5e8" >> -PYPI_SRC_URI = "git:// >> github.com/hbldh/bleak.git;protocol=https;branch=develop" >> +SRC_URI[sha256sum] = >> "09010c0f4bd843e7dcaa1652e1bfb2450ce690da08d4c6163f0723aaa986e9fe" >> >> inherit pypi python_poetry_core ptest >> >> -S = "${WORKDIR}/git" >> - >> SRC_URI += " \ >> file://run-ptest \ >> " >> @@ -26,8 +23,7 @@ do_install_ptest() { >> } >> >> RDEPENDS:${PN} += " \ >> - python3-core (>3.7) \ >> - python3-async-timeout \ >> + python3-core (>3.8) \ >> python3-dbus-fast \ >> python3-xml \ >> " >> -- >> 2.34.1 >> >> >> >> >> > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#111150): > https://lists.openembedded.org/g/openembedded-devel/message/111150 > Mute This Topic: https://lists.openembedded.org/mt/106918869/924729 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ > ticotimo@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- > >
On Fri, Jun 28, 2024 at 6:45 AM Tom Geelen via lists.openembedded.org <t.f.g.geelen=gmail.com@lists.openembedded.org> wrote: > > This breaks ptest unfortunately as the direct pypi fetch does not include the tests. Only the direct github link as it was previously. > Thanks a lot for testing out using ptests. We have made ptests easy to run with poky default config ( it needs ptest enabled in DISTRO_FEATURES ) so doing a quick recipe based ptest image on qemux86-64 on local build machine could be good to do for recipes which have the ptest support enabled. > On Fri, Jun 28, 2024 at 12:41 AM Guðni Már Gilbert via lists.openembedded.org <gudni.m.g=gmail.com@lists.openembedded.org> wrote: >> >> Changes to the build: >> - Drop python3-async-timeout which is only required for Python 3.10 and older. >> >> Changelogs: >> * https://github.com/hbldh/bleak/releases/tag/v0.22.2 >> * https://github.com/hbldh/bleak/releases/tag/v0.22.1 >> * https://github.com/hbldh/bleak/releases/tag/v0.22.0 >> >> Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com> >> --- >> .../{python3-bleak_0.21.1.bb => python3-bleak_0.22.2.bb} | 8 ++------ >> 1 file changed, 2 insertions(+), 6 deletions(-) >> rename meta-python/recipes-devtools/python/{python3-bleak_0.21.1.bb => python3-bleak_0.22.2.bb} (74%) >> >> diff --git a/meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb b/meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb >> similarity index 74% >> rename from meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb >> rename to meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb >> index 96f3fcbcf..36a823a9b 100644 >> --- a/meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb >> +++ b/meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb >> @@ -3,13 +3,10 @@ HOMEPAGE = "https://github.com/hbldh/bleak" >> LICENSE = "MIT" >> LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7" >> >> -SRCREV = "054b092e19c7a45d5ea07d8948022f54117fe5e8" >> -PYPI_SRC_URI = "git://github.com/hbldh/bleak.git;protocol=https;branch=develop" >> +SRC_URI[sha256sum] = "09010c0f4bd843e7dcaa1652e1bfb2450ce690da08d4c6163f0723aaa986e9fe" >> >> inherit pypi python_poetry_core ptest >> >> -S = "${WORKDIR}/git" >> - >> SRC_URI += " \ >> file://run-ptest \ >> " >> @@ -26,8 +23,7 @@ do_install_ptest() { >> } >> >> RDEPENDS:${PN} += " \ >> - python3-core (>3.7) \ >> - python3-async-timeout \ >> + python3-core (>3.8) \ >> python3-dbus-fast \ >> python3-xml \ >> " >> -- >> 2.34.1 >> >> >> >> > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#111150): https://lists.openembedded.org/g/openembedded-devel/message/111150 > Mute This Topic: https://lists.openembedded.org/mt/106918869/1997914 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
I will look into this over the weekend (running ptests is a new area for me). I'm curious what images you usually use / recommend? I've usually just used this one core-image-minimal ( https://github.com/openembedded/openembedded-core/blob/master/meta/recipes-core/images/core-image-minimal.bb ) from openembedded-core and used oe-init-build-env ( https://github.com/openembedded/openembedded-core/blob/master/oe-init-build-env ) for the environment and manually added meta-openembedded/meta-python into bblayers.conf. I see core-image-ptest ( https://github.com/openembedded/openembedded-core/blob/master/meta/recipes-core/images/core-image-ptest.bb ) exists and looks like a better choice than core-image-minimal ( https://github.com/openembedded/openembedded-core/blob/master/meta/recipes-core/images/core-image-minimal.bb ) Thanks for the feedback by the way, I really appreciate it.
On Fri, Jun 28, 2024 at 10:06 AM Guðni Már Gilbert via lists.openembedded.org <gudnimar=noxmedical.com@lists.openembedded.org> wrote: > > I will look into this over the weekend (running ptests is a new area for me). I'm curious what images you usually use / recommend? > you might check if the recipe inherits ptest if it does then check its enabled in recipe based ptest image infrastructure by perhaps trying bitbake meta-python-image-ptest-<recipename> for say meta-python housed recipe once it builds then run bitbake -ctestimage meta-python-image-ptest-<recipename> and observe the results. > I've usually just used this one core-image-minimal from openembedded-core and used oe-init-build-env for the environment and manually added meta-openembedded/meta-python into bblayers.conf. > > I see core-image-ptest exists and looks like a better choice than core-image-minimal > > Thanks for the feedback by the way, I really appreciate it. > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#111153): https://lists.openembedded.org/g/openembedded-devel/message/111153 > Mute This Topic: https://lists.openembedded.org/mt/106918869/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-bleak_0.21.1.bb b/meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb similarity index 74% rename from meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb rename to meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb index 96f3fcbcf..36a823a9b 100644 --- a/meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +++ b/meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb @@ -3,13 +3,10 @@ HOMEPAGE = "https://github.com/hbldh/bleak" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7" -SRCREV = "054b092e19c7a45d5ea07d8948022f54117fe5e8" -PYPI_SRC_URI = "git://github.com/hbldh/bleak.git;protocol=https;branch=develop" +SRC_URI[sha256sum] = "09010c0f4bd843e7dcaa1652e1bfb2450ce690da08d4c6163f0723aaa986e9fe" inherit pypi python_poetry_core ptest -S = "${WORKDIR}/git" - SRC_URI += " \ file://run-ptest \ " @@ -26,8 +23,7 @@ do_install_ptest() { } RDEPENDS:${PN} += " \ - python3-core (>3.7) \ - python3-async-timeout \ + python3-core (>3.8) \ python3-dbus-fast \ python3-xml \ "
Changes to the build: - Drop python3-async-timeout which is only required for Python 3.10 and older. Changelogs: * https://github.com/hbldh/bleak/releases/tag/v0.22.2 * https://github.com/hbldh/bleak/releases/tag/v0.22.1 * https://github.com/hbldh/bleak/releases/tag/v0.22.0 Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com> --- .../{python3-bleak_0.21.1.bb => python3-bleak_0.22.2.bb} | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) rename meta-python/recipes-devtools/python/{python3-bleak_0.21.1.bb => python3-bleak_0.22.2.bb} (74%)