diff mbox series

[meta-python] python3-tenacity: new recipe version 9.1.2

Message ID 20251125180844.40549-1-jan.vermaete@gmail.com
State Under Review
Headers show
Series [meta-python] python3-tenacity: new recipe version 9.1.2 | expand

Commit Message

Jan Vermaete Nov. 25, 2025, 6:08 p.m. UTC
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>
---
 .../ptest-packagelists-meta-python.inc        |  1 +
 ...ip-a-test-that-does-not-pass-on-qemu.patch | 27 +++++++++++++++++++
 .../python/python3-tenacity_9.1.2.bb          | 19 +++++++++++++
 3 files changed, 47 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-tenacity/0001-ptest-skip-a-test-that-does-not-pass-on-qemu.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-tenacity_9.1.2.bb
diff mbox series

Patch

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 = "\
     python3-soupsieve \
     python3-sqlparse \
     python3-starlette \
+    python3-tenacity \
     python3-tomli-w \
     python3-tomlkit \
     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 @@ 
+From 8895af81a672bb8aad2aa8e32b93cb9ca96cac63 Mon Sep 17 00:00:00 2001
+From: Jan Vermaete <jan.vermaete@oip.be>
+Date: Tue, 25 Nov 2025 10:52:15 +0100
+Subject: [PATCH 1/1] ptest: skip a test that does not pass on qemu
+
+Upstream-Status: Inappropriate [oe specific]
+
+Signed-off-by: Jan Vermaete <jan.vermaete@oip.be>
+---
+ tests/test_asyncio.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py
+index 0b74476..2da0784 100644
+--- a/tests/test_asyncio.py
++++ b/tests/test_asyncio.py
+@@ -192,6 +192,7 @@ class TestContextManager(unittest.TestCase):
+         else:
+             raise Exception
+ 
++    @unittest.skip("Failing in ptest with qemu")
+     @asynctest
+     async def test_sleeps(self):
+         start = current_time_ms()
+-- 
+2.43.0
+
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 @@ 
+SUMMARY = "Retry code until it succeeds"
+HOMEPAGE = "https://github.com/jd/tenacity"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=175792518e4ac015ab6696d16c4f607e"
+
+SRC_URI[sha256sum] = "1169d376c297e7de388d18b4481760d478b0e99a777cad3a9c86e556f4b697cb"
+
+SRC_URI:append = "file://0001-ptest-skip-a-test-that-does-not-pass-on-qemu.patch"
+
+DEPENDS += "python3-setuptools-scm-native"
+
+inherit pypi python_setuptools_build_meta ptest-python-pytest
+
+PYPI_PACKAGE = "tenacity"
+
+RDEPENDS:${PN}-ptest += "\
+    python3-tornado \
+    python3-typeguard \
+"