Skip to contentSkip to conversation

python3-bleak: enable ptest and add missing runtime dependency

PATCH Applied alperak 3 participants 7 messages Apr 5, 2024 – Apr 7, 2024

lore
Share & tools
lore

alperak

author
#0 lore raw

PATCH 1/1 python3-bleak: enable ptest and add missing runtime dependency

* Ptest tested on qemux86-64 and qemuarm64

* Add ptest into PTESTS_FAST_META_PYTHON

qemux86-64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 9
END: /usr/lib/python3-bleak/ptest
2024-04-05T18:44
STOP: ptest-runner
TOTAL: 1 FAIL: 0

qemuarm64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 8
END: /usr/lib/python3-bleak/ptest
2024-04-05T21:15
STOP: ptest-runner
TOTAL: 1 FAIL: 0

---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-bleak/run-ptest            |  3 ++
 .../python/python3-bleak_0.21.1.bb            | 29 +++++++++++++++----
 3 files changed, 27 insertions(+), 6 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-bleak/run-ptest
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index 2f7babe48..63f312b45 100644
@@ -12,6 +12,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-ansicolors \
     python3-asgiref \
     python3-aspectlib \
+    python3-bleak \
     python3-blinker \
     python3-cachetools \
     python3-cbor2 \
meta-python/recipes-devtools/python/python3-bleak/run-ptest new file +3 -0
new file mode 100644
index 000000000..8d2017d39
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +23 -6
index 4a1fafb5d..96f3fcbcf 100644
@@ -3,14 +3,31 @@ HOMEPAGE = "https://github.com/hbldh/bleak"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7"
 
-SRC_URI[sha256sum] = "ec4a1a2772fb315b992cbaa1153070c7e26968a52b0e2727035f443a1af5c18f"
+SRCREV = "054b092e19c7a45d5ea07d8948022f54117fe5e8"
+PYPI_SRC_URI = "git://github.com/hbldh/bleak.git;protocol=https;branch=develop"
 
-PYPI_PACKAGE = "bleak"
+inherit pypi python_poetry_core ptest
 
-inherit pypi python_poetry_core
+S = "${WORKDIR}/git"
+
+SRC_URI += " \
+	file://run-ptest \
+"
+
+RDEPENDS:${PN}-ptest += " \
+	python3-pytest \
+	python3-pytest-asyncio \
+	python3-unittest-automake-output \
+"
+
+do_install_ptest() {
+	install -d ${D}${PTEST_PATH}/tests
+	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
 
 RDEPENDS:${PN} += " \
-    python3-core (>3.7) \
-    python3-async-timeout \
-    python3-dbus-fast \
+	python3-core (>3.7) \
+	python3-async-timeout \
+	python3-dbus-fast \
+	python3-xml \
 "
Signature · 1 line
2.25.1
#1 lore raw
Quoted 71 lines · Alper Ak

* Ptest tested on qemux86-64 and qemuarm64

* Add ptest into PTESTS_FAST_META_PYTHON

qemux86-64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 9
END: /usr/lib/python3-bleak/ptest
2024-04-05T18:44
STOP: ptest-runner
TOTAL: 1 FAIL: 0

qemuarm64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 8
END: /usr/lib/python3-bleak/ptest
2024-04-05T21:15
STOP: ptest-runner
TOTAL: 1 FAIL: 0

---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-bleak/run-ptest            |  3 ++
 .../python/python3-bleak_0.21.1.bb            | 29 +++++++++++++++----
 3 files changed, 27 insertions(+), 6 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-bleak/run-ptest
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index 2f7babe48..63f312b45 100644
@@ -12,6 +12,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-ansicolors \
     python3-asgiref \
     python3-aspectlib \
+    python3-bleak \
     python3-blinker \
     python3-cachetools \
     python3-cbor2 \
meta-python/recipes-devtools/python/python3-bleak/run-ptest new file +3 -0
new file mode 100644
index 000000000..8d2017d39
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +0 -0
index 4a1fafb5d..96f3fcbcf 100644

meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb HOMEPAGE = "https://github.com/hbldh/bleak" · line 7

Quoted 6 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +2 -1
@@ -3,14 +3,31 @@ HOMEPAGE = "https://github.com/hbldh/bleak"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7"
 
-SRC_URI[sha256sum] = "ec4a1a2772fb315b992cbaa1153070c7e26968a52b0e2727035f443a1af5c18f"
+SRCREV = "054b092e19c7a45d5ea07d8948022f54117fe5e8"
+PYPI_SRC_URI = "git://github.com/hbldh/bleak.git;protocol=https;branch=develop"

why do we need this change if we are not bumping versions ?

Quoted 43 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +21 -6
-PYPI_PACKAGE = "bleak"
+inherit pypi python_poetry_core ptest
 
-inherit pypi python_poetry_core
+S = "${WORKDIR}/git"
+
+SRC_URI += " \
+       file://run-ptest \
+"
+
+RDEPENDS:${PN}-ptest += " \
+       python3-pytest \
+       python3-pytest-asyncio \
+       python3-unittest-automake-output \
+"
+
+do_install_ptest() {
+       install -d ${D}${PTEST_PATH}/tests
+       cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
 
 RDEPENDS:${PN} += " \
-    python3-core (>3.7) \
-    python3-async-timeout \
-    python3-dbus-fast \
+       python3-core (>3.7) \
+       python3-async-timeout \
+       python3-dbus-fast \
+       python3-xml \
 "
--

2.25.1

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

author
#2 lore raw

Sorry, I overlooked it. The tests directory was not present in the package downloaded with the default PYPI_SRC_URI value.

Khem Raj <[email protected]>, 6 Nis 2024 Cmt, 01:46 tarihinde şunu yazdı:

Quoted 133 lines · Alper Ak
Quoted 37 lines

* Ptest tested on qemux86-64 and qemuarm64

* Add ptest into PTESTS_FAST_META_PYTHON

qemux86-64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 9
END: /usr/lib/python3-bleak/ptest
2024-04-05T18:44
STOP: ptest-runner
TOTAL: 1 FAIL: 0

qemuarm64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 8
END: /usr/lib/python3-bleak/ptest
2024-04-05T21:15
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Quoted 7 lines
---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-bleak/run-ptest            |  3 ++
 .../python/python3-bleak_0.21.1.bb            | 29 +++++++++++++++----
 3 files changed, 27 insertions(+), 6 deletions(-)
 create mode 100644

meta-python/recipes-devtools/python/python3-bleak/run-ptest

Review

Quoted 2 lines
(quoted diff) +0 -0

b/meta-python/conf/include/ptest-packagelists-meta-python.inc

Review

Quoted 12 lines

index 2f7babe48..63f312b45 100644

meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -12,6 +12,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-ansicolors \
     python3-asgiref \
     python3-aspectlib \
+    python3-bleak \
     python3-blinker \
     python3-cachetools \
     python3-cbor2 \
(quoted diff) +0 -0

b/meta-python/recipes-devtools/python/python3-bleak/run-ptest

Review

Quoted 9 lines

new file mode 100644
index 000000000..8d2017d39

meta-python/recipes-devtools/python/python3-bleak/run-ptest new file +3 -0
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
(quoted diff) +0 -0

b/meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb

meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb HOMEPAGE = "https://github.com/hbldh/bleak" · line 6

Quoted 8 lines

index 4a1fafb5d..96f3fcbcf 100644

meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +0 -1
@@ -3,14 +3,31 @@ HOMEPAGE = "https://github.com/hbldh/bleak"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7"
 
-SRC_URI[sha256sum] =

"ec4a1a2772fb315b992cbaa1153070c7e26968a52b0e2727035f443a1af5c18f"

meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb HOMEPAGE = "https://github.com/hbldh/bleak" · line 7

Quoted 2 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +2 -0
+SRCREV = "054b092e19c7a45d5ea07d8948022f54117fe5e8"
+PYPI_SRC_URI = "git://

github.com/hbldh/bleak.git;protocol=https;branch=develop"

why do we need this change if we are not bumping versions ?

Quoted 35 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +21 -6
-PYPI_PACKAGE = "bleak"
+inherit pypi python_poetry_core ptest
 
-inherit pypi python_poetry_core
+S = "${WORKDIR}/git"
+
+SRC_URI += " \
+       file://run-ptest \
+"
+
+RDEPENDS:${PN}-ptest += " \
+       python3-pytest \
+       python3-pytest-asyncio \
+       python3-unittest-automake-output \
+"
+
+do_install_ptest() {
+       install -d ${D}${PTEST_PATH}/tests
+       cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
 
 RDEPENDS:${PN} += " \
-    python3-core (>3.7) \
-    python3-async-timeout \
-    python3-dbus-fast \
+       python3-core (>3.7) \
+       python3-async-timeout \
+       python3-dbus-fast \
+       python3-xml \
 "
--

2.25.1

Quoted 3 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#109828):

https://lists.openembedded.org/g/openembedded-devel/message/109828

Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/105358066/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [

[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 3 lines · Alper Ak

Sorry, I overlooked it. The tests directory was not present in the package downloaded with the default PYPI_SRC_URI value.

Unfortunately, many pypi.org tarballs exclude tests. So switching to git fetcher will make sense in those cases.
Given the “xz backdoor” incident, we might decide to prefer git.

Quoted 144 lines

Khem Raj <[email protected]>, 6 Nis 2024 Cmt, 01:46 tarihinde şunu yazdı:

Quoted 113 lines · Alper Ak
Quoted 37 lines

* Ptest tested on qemux86-64 and qemuarm64

* Add ptest into PTESTS_FAST_META_PYTHON

qemux86-64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 9
END: /usr/lib/python3-bleak/ptest
2024-04-05T18:44
STOP: ptest-runner
TOTAL: 1 FAIL: 0

qemuarm64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 8
END: /usr/lib/python3-bleak/ptest
2024-04-05T21:15
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Quoted 7 lines
---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-bleak/run-ptest            |  3 ++
 .../python/python3-bleak_0.21.1.bb            | 29 +++++++++++++++----
 3 files changed, 27 insertions(+), 6 deletions(-)
 create mode 100644

meta-python/recipes-devtools/python/python3-bleak/run-ptest

Quoted 2 lines

diff --git

a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc

Quoted 11 lines

index 2f7babe48..63f312b45 100644

meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -12,6 +12,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-ansicolors \
     python3-asgiref \
     python3-aspectlib \
+    python3-bleak \
     python3-blinker \
     python3-cachetools \
     python3-cbor2 \
Quoted 1 line

diff --git

a/meta-python/recipes-devtools/python/python3-bleak/run-ptest b/meta-python/recipes-devtools/python/python3-bleak/run-ptest

Review

Quoted 9 lines

new file mode 100644
index 000000000..8d2017d39

meta-python/recipes-devtools/python/python3-bleak/run-ptest new file +3 -0
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
(quoted diff) +0 -0

python3-bleak_0.21.1.bb b/meta-python/recipes-devtools/python/ python3-bleak_0.21.1.bb

meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb HOMEPAGE = "https://github.com/hbldh/bleak" · line 4

Quoted 6 lines

index 4a1fafb5d..96f3fcbcf 100644

meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +0 -0
@@ -3,14 +3,31 @@ HOMEPAGE = "https://github.com/hbldh/bleak"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM =

"file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7"

meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb HOMEPAGE = "https://github.com/hbldh/bleak" · line 5

Quoted 2 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +0 -1
-SRC_URI[sha256sum] =

"ec4a1a2772fb315b992cbaa1153070c7e26968a52b0e2727035f443a1af5c18f"

meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb HOMEPAGE = "https://github.com/hbldh/bleak" · line 6

Quoted 2 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +2 -0
+SRCREV = "054b092e19c7a45d5ea07d8948022f54117fe5e8"
+PYPI_SRC_URI = "git://

github.com/hbldh/bleak.git;protocol=https;branch=develop"

why do we need this change if we are not bumping versions ?

Quoted 22 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +17 -2
-PYPI_PACKAGE = "bleak"
+inherit pypi python_poetry_core ptest
 
-inherit pypi python_poetry_core
+S = "${WORKDIR}/git"
+
+SRC_URI += " \
+       file://run-ptest \
+"
+
+RDEPENDS:${PN}-ptest += " \
+       python3-pytest \
+       python3-pytest-asyncio \
+       python3-unittest-automake-output \
+"
+
+do_install_ptest() {
+       install -d ${D}${PTEST_PATH}/tests
+       cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
 
Quoted 16 lines
Quoted 10 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +4 -4
 RDEPENDS:${PN} += " \
-    python3-core (>3.7) \
-    python3-async-timeout \
-    python3-dbus-fast \
+       python3-core (>3.7) \
+       python3-async-timeout \
+       python3-dbus-fast \
+       python3-xml \
 "
--
Quoted 5 lines

2.25.1

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

#4 lore raw
Quoted 9 lines · Tim Orling
Quoted 2 lines · Alper Ak

Sorry, I overlooked it. The tests directory was not present in the package downloaded with the default PYPI_SRC_URI value.

Unfortunately, many pypi.org tarballs exclude tests. So switching to git fetcher will make sense in those cases.

Hmm ok. So is this SRCREV corresponding to same release ? if so we are ok, otherwise perhaps adding +git to SRCREV would
be appropriate

Quoted 1 line

Given the “xz backdoor” incident, we might decide to prefer git.

Nah, that would not mitigate it

Quoted 132 lines
Quoted 132 lines

Khem Raj <[email protected]>, 6 Nis 2024 Cmt, 01:46 tarihinde şunu yazdı:

Quoted 104 lines · Alper Ak
Quoted 71 lines

* Ptest tested on qemux86-64 and qemuarm64

* Add ptest into PTESTS_FAST_META_PYTHON

qemux86-64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 9
END: /usr/lib/python3-bleak/ptest
2024-04-05T18:44
STOP: ptest-runner
TOTAL: 1 FAIL: 0

qemuarm64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 8
END: /usr/lib/python3-bleak/ptest
2024-04-05T21:15
STOP: ptest-runner
TOTAL: 1 FAIL: 0

---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-bleak/run-ptest            |  3 ++
 .../python/python3-bleak_0.21.1.bb            | 29 +++++++++++++++----
 3 files changed, 27 insertions(+), 6 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-bleak/run-ptest
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index 2f7babe48..63f312b45 100644
@@ -12,6 +12,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-ansicolors \
     python3-asgiref \
     python3-aspectlib \
+    python3-bleak \
     python3-blinker \
     python3-cachetools \
     python3-cbor2 \
meta-python/recipes-devtools/python/python3-bleak/run-ptest new file +3 -0
new file mode 100644
index 000000000..8d2017d39
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +0 -0
index 4a1fafb5d..96f3fcbcf 100644

meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb HOMEPAGE = "https://github.com/hbldh/bleak" · line 7

Quoted 6 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +2 -1
@@ -3,14 +3,31 @@ HOMEPAGE = "https://github.com/hbldh/bleak"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7"
 
-SRC_URI[sha256sum] = "ec4a1a2772fb315b992cbaa1153070c7e26968a52b0e2727035f443a1af5c18f"
+SRCREV = "054b092e19c7a45d5ea07d8948022f54117fe5e8"
+PYPI_SRC_URI = "git://github.com/hbldh/bleak.git;protocol=https;branch=develop"

why do we need this change if we are not bumping versions ?

Quoted 22 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +17 -2
-PYPI_PACKAGE = "bleak"
+inherit pypi python_poetry_core ptest
 
-inherit pypi python_poetry_core
+S = "${WORKDIR}/git"
+
+SRC_URI += " \
+       file://run-ptest \
+"
+
+RDEPENDS:${PN}-ptest += " \
+       python3-pytest \
+       python3-pytest-asyncio \
+       python3-unittest-automake-output \
+"
+
+do_install_ptest() {
+       install -d ${D}${PTEST_PATH}/tests
+       cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
 
Quoted 15 lines
Quoted 10 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +4 -4
 RDEPENDS:${PN} += " \
-    python3-core (>3.7) \
-    python3-async-timeout \
-    python3-dbus-fast \
+       python3-core (>3.7) \
+       python3-async-timeout \
+       python3-dbus-fast \
+       python3-xml \
 "
--
Quoted 5 lines

2.25.1

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

author
#5 lore raw
Quoted 3 lines

Hmm ok. So is this SRCREV corresponding to same release ? if so we are ok, otherwise perhaps adding +git to SRCREV would
be appropriate

Yes, it's the same release.

Khem Raj <[email protected]>, 6 Nis 2024 Cmt, 20:48 tarihinde şunu yazdı:

Quoted 170 lines · Tim Orling
Quoted 4 lines

On Fri, Apr 5, 2024 at 10:34 PM Alper Ak <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines

Sorry, I overlooked it. The tests directory was not present in the

package downloaded with the default PYPI_SRC_URI value.

Quoted 3 lines

Unfortunately, many pypi.org tarballs exclude tests. So switching to

git fetcher will make sense in those cases.

Hmm ok. So is this SRCREV corresponding to same release ? if so we are ok, otherwise perhaps adding +git to SRCREV would
be appropriate

Quoted 1 line

Given the “xz backdoor” incident, we might decide to prefer git.

Nah, that would not mitigate it

Quoted 3 lines
Quoted 3 lines

Khem Raj <[email protected]>, 6 Nis 2024 Cmt, 01:46 tarihinde şunu

yazdı:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On Fri, Apr 5, 2024 at 2:53 PM Alper Ak <[email protected]>

Quoted 37 lines · wrote:
Quoted 37 lines
Quoted 37 lines
Quoted 37 lines

* Ptest tested on qemux86-64 and qemuarm64

* Add ptest into PTESTS_FAST_META_PYTHON

qemux86-64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 9
END: /usr/lib/python3-bleak/ptest
2024-04-05T18:44
STOP: ptest-runner
TOTAL: 1 FAIL: 0

qemuarm64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 8
END: /usr/lib/python3-bleak/ptest
2024-04-05T21:15
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-bleak/run-ptest            |  3 ++
 .../python/python3-bleak_0.21.1.bb            | 29

+++++++++++++++----

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
 3 files changed, 27 insertions(+), 6 deletions(-)
 create mode 100644

meta-python/recipes-devtools/python/python3-bleak/run-ptest

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

diff --git

a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

index 2f7babe48..63f312b45 100644

meta-python/conf/include/ptest-packagelists-meta-python.inc +0 -0
@@ -12,6 +12,7 @@ PTESTS_FAST_META_PYTHON = "\
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
     python3-ansicolors \
     python3-asgiref \
     python3-aspectlib \
+    python3-bleak \
     python3-blinker \
     python3-cachetools \
     python3-cbor2 \

diff --git

a/meta-python/recipes-devtools/python/python3-bleak/run-ptest b/meta-python/recipes-devtools/python/python3-bleak/run-ptest

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Review

Quoted 9 lines

new file mode 100644
index 000000000..8d2017d39

meta-python/recipes-devtools/python/python3-bleak/run-ptest new file +3 -0
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
(quoted diff) +0 -0

python3-bleak_0.21.1.bb b/meta-python/recipes-devtools/python/ python3-bleak_0.21.1.bb

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb HOMEPAGE = "https://github.com/hbldh/bleak" · line 4

Quoted 6 lines

index 4a1fafb5d..96f3fcbcf 100644

meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +0 -0
@@ -3,14 +3,31 @@ HOMEPAGE = "https://github.com/hbldh/bleak"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM =

"file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb HOMEPAGE = "https://github.com/hbldh/bleak" · line 5

Quoted 2 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +0 -1
-SRC_URI[sha256sum] =

"ec4a1a2772fb315b992cbaa1153070c7e26968a52b0e2727035f443a1af5c18f"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb HOMEPAGE = "https://github.com/hbldh/bleak" · line 6

Quoted 2 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +2 -0
+SRCREV = "054b092e19c7a45d5ea07d8948022f54117fe5e8"
+PYPI_SRC_URI = "git://

github.com/hbldh/bleak.git;protocol=https;branch=develop"

Quoted 37 lines
Quoted 37 lines
Quoted 37 lines

why do we need this change if we are not bumping versions ?

Quoted 34 lines
meta-python/recipes-devtools/python/python3-bleak_0.21.1.bb +21 -6
-PYPI_PACKAGE = "bleak"
+inherit pypi python_poetry_core ptest
 
-inherit pypi python_poetry_core
+S = "${WORKDIR}/git"
+
+SRC_URI += " \
+       file://run-ptest \
+"
+
+RDEPENDS:${PN}-ptest += " \
+       python3-pytest \
+       python3-pytest-asyncio \
+       python3-unittest-automake-output \
+"
+
+do_install_ptest() {
+       install -d ${D}${PTEST_PATH}/tests
+       cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
 
 RDEPENDS:${PN} += " \
-    python3-core (>3.7) \
-    python3-async-timeout \
-    python3-dbus-fast \
+       python3-core (>3.7) \
+       python3-async-timeout \
+       python3-dbus-fast \
+       python3-xml \
 "
--

2.25.1

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#109831):

https://lists.openembedded.org/g/openembedded-devel/message/109831

Quoted 3 lines
Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/105358066/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub

[[email protected]]

Quoted 2 lines
Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

Applied
#6 lore raw
In reply to alperak
Quoted 20 lines · alperak

* Ptest tested on qemux86-64 and qemuarm64

* Add ptest into PTESTS_FAST_META_PYTHON

qemux86-64:

Testsuite summary
TOTAL: 14
PASS: 14
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 9
END: /usr/lib/python3-bleak/ptest
2024-04-05T18:44
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Quoted 1 line

[...]

Applied, thanks!

[1/1] python3-bleak: enable ptest and add missing runtime dependency

      commit: dce392b58826d1aff643196f05e592c9f40e9636

Best regards,

Signature · 1 line
Khem Raj <[email protected]>