diff options
| author | Jan Vermaete <jan.vermaete@gmail.com> | 2025-11-25 19:08:43 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-11-25 15:32:28 -0800 |
| commit | 5489b73633cd2971e888f9b06d48d49cbe16bf39 (patch) | |
| tree | 96c8ce21af4ce25cb1d3e6d49e987bd6d6ae3b8c | |
| parent | 0856c5613234c61d809b9c983bc45c750144ebd8 (diff) | |
| download | meta-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>
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 @@ | |||
| 1 | From 8895af81a672bb8aad2aa8e32b93cb9ca96cac63 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jan Vermaete <jan.vermaete@oip.be> | ||
| 3 | Date: Tue, 25 Nov 2025 10:52:15 +0100 | ||
| 4 | Subject: [PATCH 1/1] ptest: skip a test that does not pass on qemu | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [oe specific] | ||
| 7 | |||
| 8 | Signed-off-by: Jan Vermaete <jan.vermaete@oip.be> | ||
| 9 | --- | ||
| 10 | tests/test_asyncio.py | 1 + | ||
| 11 | 1 file changed, 1 insertion(+) | ||
| 12 | |||
| 13 | diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py | ||
| 14 | index 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 | -- | ||
| 26 | 2.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 @@ | |||
| 1 | SUMMARY = "Retry code until it succeeds" | ||
| 2 | HOMEPAGE = "https://github.com/jd/tenacity" | ||
| 3 | LICENSE = "Apache-2.0" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=175792518e4ac015ab6696d16c4f607e" | ||
| 5 | |||
| 6 | SRC_URI[sha256sum] = "1169d376c297e7de388d18b4481760d478b0e99a777cad3a9c86e556f4b697cb" | ||
| 7 | |||
| 8 | SRC_URI:append = "file://0001-ptest-skip-a-test-that-does-not-pass-on-qemu.patch" | ||
| 9 | |||
| 10 | DEPENDS += "python3-setuptools-scm-native" | ||
| 11 | |||
| 12 | inherit pypi python_setuptools_build_meta ptest-python-pytest | ||
| 13 | |||
| 14 | PYPI_PACKAGE = "tenacity" | ||
| 15 | |||
| 16 | RDEPENDS:${PN}-ptest += "\ | ||
| 17 | python3-tornado \ | ||
| 18 | python3-typeguard \ | ||
| 19 | " | ||
