summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r--meta-python/recipes-devtools/python/python3-aspectlib/0001-python3-aspectlib-backport-fix-for-selftest.patch37
-rw-r--r--meta-python/recipes-devtools/python/python3-aspectlib_2.0.0.bb1
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-aspectlib/0001-python3-aspectlib-backport-fix-for-selftest.patch b/meta-python/recipes-devtools/python/python3-aspectlib/0001-python3-aspectlib-backport-fix-for-selftest.patch
new file mode 100644
index 0000000000..05d7b63126
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-aspectlib/0001-python3-aspectlib-backport-fix-for-selftest.patch
@@ -0,0 +1,37 @@
1From 2e007c5c3ed048491c29e37991e6788f41728b31 Mon Sep 17 00:00:00 2001
2From: Ionel Cristian Mărieș <contact@ionelmc.ro>
3Date: Fri, 24 Apr 2026 13:17:54 +0000
4Subject: [PATCH] python3-aspectlib: backport fix for selftest
5
6Partial backport of upstream commit b85abdb056("Fix some cleanup regressions")
7
8Changes excluded:
9The stacklevel assertion updates in test_aspectlib.py and
10test_integrations.py are omitted. These are specific to upstream's
11test suite configuration and cause failures in this environment
12without providing functional value to the core library.
13
14Upstream-Status: Backport [https://github.com/ionelmc/python-aspectlib/commit/b85abdb0565d1598ce56bd49d49dc709d4e16081]
15
16Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
17---
18 tests/conftest.py | 7 ++++---
19 1 file changed, 4 insertions(+), 3 deletions(-)
20
21diff --git a/tests/conftest.py b/tests/conftest.py
22index ee54d9d..29caa50 100644
23--- a/tests/conftest.py
24+++ b/tests/conftest.py
25@@ -1,5 +1,6 @@
26-def pytest_ignore_collect(path, config):
27- basename = path.basename
28+from pathlib import Path
29
30- if 'pytestsupport' in basename:
31+
32+def pytest_ignore_collect(collection_path: Path, config):
33+ if 'pytestsupport' in collection_path.__fspath__():
34 return True
35--
362.53.0
37
diff --git a/meta-python/recipes-devtools/python/python3-aspectlib_2.0.0.bb b/meta-python/recipes-devtools/python/python3-aspectlib_2.0.0.bb
index 854a14441c..7bfee7ff7a 100644
--- a/meta-python/recipes-devtools/python/python3-aspectlib_2.0.0.bb
+++ b/meta-python/recipes-devtools/python/python3-aspectlib_2.0.0.bb
@@ -8,6 +8,7 @@ HOMEPAGE = "https://github.com/ionelmc/python-aspectlib"
8LICENSE = "BSD-2-Clause" 8LICENSE = "BSD-2-Clause"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=80721ace117fd1f814049ecb81c6be76" 9LIC_FILES_CHKSUM = "file://LICENSE;md5=80721ace117fd1f814049ecb81c6be76"
10 10
11SRC_URI += "file://0001-python3-aspectlib-backport-fix-for-selftest.patch"
11SRC_URI[sha256sum] = "a4b461b9da0b531aebcb93efcde3de808a72c60226dd8d902c467d13faf7ce92" 12SRC_URI[sha256sum] = "a4b461b9da0b531aebcb93efcde3de808a72c60226dd8d902c467d13faf7ce92"
12 13
13inherit ptest-python-pytest pypi setuptools3 14inherit ptest-python-pytest pypi setuptools3