Skip to contentSkip to conversation

python3-bleak: upgrade 0.21.1 -> 0.22.2

PATCH In review Guðni Már Gilbert 5 participants 6 messages Jun 27, 2024 – Jun 28, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-bleak: upgrade 0.21.1 -> 0.22.2

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

---
 .../{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%)
meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb renamed from meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +2 -6
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
@@ -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 \
 "
Signature · 1 line
2.34.1
#1 lore raw

This breaks ptest unfortunately as the direct pypi fetch does not include the tests. Only the direct github link as it was previously.

Quoted 66 lines · Guðni Már Gilbert via lists.openembedded.org

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

---
 .../{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%)

meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb renamed from meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +0 -2
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
@@ -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

meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb renamed from meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +1 -5
-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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

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.

Quoted 76 lines · Tom Geelen via lists.openembedded.org

This breaks ptest unfortunately as the direct pypi fetch does not include the tests. Only the direct github link as it was previously.

Quoted 52 lines · Guðni Már Gilbert via lists.openembedded.org

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

---
 .../{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%)

meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb renamed from meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +0 -2
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
@@ -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

meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb renamed from meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +1 -5
-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 \
 "
--
Quoted 6 lines

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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
In reply to Tom Geelen
Quoted 3 lines · Tom Geelen via lists.openembedded.org

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.

Quoted 63 lines · Guðni Már Gilbert via lists.openembedded.org
Quoted 48 lines

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

---
 .../{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%)
meta-python/recipes-devtools/python/python3-bleak_0.22.2.bb renamed from meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +2 -7
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
@@ -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 \
 "
--
Quoted 5 lines

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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

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.

#5 lore raw
Quoted 3 lines · Guðni Már Gilbert via lists.openembedded.org

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.

Quoted 13 lines

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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-