summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Vermaete <jan.vermaete@gmail.com>2025-11-25 19:08:43 +0100
committerKhem Raj <raj.khem@gmail.com>2025-11-25 15:32:28 -0800
commit5489b73633cd2971e888f9b06d48d49cbe16bf39 (patch)
tree96c8ce21af4ce25cb1d3e6d49e987bd6d6ae3b8c
parent0856c5613234c61d809b9c983bc45c750144ebd8 (diff)
downloadmeta-openembedded-5489b73633cd2971e888f9b06d48d49cbe16bf39.tar.gz
python3-tenacity: new recipe version 9.1.2
Moved the recipe from meta-homeassistant - all credits to them Added ptest - skip one test that fails on qemu Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-python/conf/include/ptest-packagelists-meta-python.inc1
-rw-r--r--meta-python/recipes-devtools/python/python3-tenacity/0001-ptest-skip-a-test-that-does-not-pass-on-qemu.patch27
-rw-r--r--meta-python/recipes-devtools/python/python3-tenacity_9.1.2.bb19
3 files changed, 47 insertions, 0 deletions
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index a172f8c676..7e8ab54639 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -96,6 +96,7 @@ PTESTS_FAST_META_PYTHON = "\
96 python3-soupsieve \ 96 python3-soupsieve \
97 python3-sqlparse \ 97 python3-sqlparse \
98 python3-starlette \ 98 python3-starlette \
99 python3-tenacity \
99 python3-tomli-w \ 100 python3-tomli-w \
100 python3-tomlkit \ 101 python3-tomlkit \
101 python3-trustme \ 102 python3-trustme \
diff --git a/meta-python/recipes-devtools/python/python3-tenacity/0001-ptest-skip-a-test-that-does-not-pass-on-qemu.patch b/meta-python/recipes-devtools/python/python3-tenacity/0001-ptest-skip-a-test-that-does-not-pass-on-qemu.patch
new file mode 100644
index 0000000000..7fb9458a32
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-tenacity/0001-ptest-skip-a-test-that-does-not-pass-on-qemu.patch
@@ -0,0 +1,27 @@
1From 8895af81a672bb8aad2aa8e32b93cb9ca96cac63 Mon Sep 17 00:00:00 2001
2From: Jan Vermaete <jan.vermaete@oip.be>
3Date: Tue, 25 Nov 2025 10:52:15 +0100
4Subject: [PATCH 1/1] ptest: skip a test that does not pass on qemu
5
6Upstream-Status: Inappropriate [oe specific]
7
8Signed-off-by: Jan Vermaete <jan.vermaete@oip.be>
9---
10 tests/test_asyncio.py | 1 +
11 1 file changed, 1 insertion(+)
12
13diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py
14index 0b74476..2da0784 100644
15--- a/tests/test_asyncio.py
16+++ b/tests/test_asyncio.py
17@@ -192,6 +192,7 @@ class TestContextManager(unittest.TestCase):
18 else:
19 raise Exception
20
21+ @unittest.skip("Failing in ptest with qemu")
22 @asynctest
23 async def test_sleeps(self):
24 start = current_time_ms()
25--
262.43.0
27
diff --git a/meta-python/recipes-devtools/python/python3-tenacity_9.1.2.bb b/meta-python/recipes-devtools/python/python3-tenacity_9.1.2.bb
new file mode 100644
index 0000000000..76d23aee40
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-tenacity_9.1.2.bb
@@ -0,0 +1,19 @@
1SUMMARY = "Retry code until it succeeds"
2HOMEPAGE = "https://github.com/jd/tenacity"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=175792518e4ac015ab6696d16c4f607e"
5
6SRC_URI[sha256sum] = "1169d376c297e7de388d18b4481760d478b0e99a777cad3a9c86e556f4b697cb"
7
8SRC_URI:append = "file://0001-ptest-skip-a-test-that-does-not-pass-on-qemu.patch"
9
10DEPENDS += "python3-setuptools-scm-native"
11
12inherit pypi python_setuptools_build_meta ptest-python-pytest
13
14PYPI_PACKAGE = "tenacity"
15
16RDEPENDS:${PN}-ptest += "\
17 python3-tornado \
18 python3-typeguard \
19"