diff mbox series

[meta-python] python3-pytest-metadata: Upgrade to 3.1.1

Message ID 20251222153029.106186-1-raj.khem@gmail.com
State New
Headers show
Series [meta-python] python3-pytest-metadata: Upgrade to 3.1.1 | expand

Commit Message

Khem Raj Dec. 22, 2025, 3:30 p.m. UTC
pytest-metadata version 2.0.2 has a bug where it tries to access
py.__version__, but the py library version 1.11.0
removed the __version__ attribute. This is a known incompatibility.

Switch to hatching build backend

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 ...metadata_2.0.2.bb => python3-pytest-metadata_3.1.1.bb} | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-pytest-metadata_2.0.2.bb => python3-pytest-metadata_3.1.1.bb} (61%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pytest-metadata_2.0.2.bb b/meta-python/recipes-devtools/python/python3-pytest-metadata_3.1.1.bb
similarity index 61%
rename from meta-python/recipes-devtools/python/python3-pytest-metadata_2.0.2.bb
rename to meta-python/recipes-devtools/python/python3-pytest-metadata_3.1.1.bb
index 9243f6646e..64589b31b6 100644
--- a/meta-python/recipes-devtools/python/python3-pytest-metadata_2.0.2.bb
+++ b/meta-python/recipes-devtools/python/python3-pytest-metadata_3.1.1.bb
@@ -4,9 +4,13 @@  DEPENDS += "python3-setuptools-scm-native"
 LICENSE = "MPL-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=5d425c8f3157dbf212db2ec53d9e5132"

-SRC_URI[sha256sum] = "fcd2f416f15be295943527b3c8ba16a44ae5a7141939c90c3dc5ce9d167cf2a5"
+SRC_URI[sha256sum] = "d2a29b0355fbc03f168aa96d41ff88b1a3b44a3b02acbe491801c98a048017c8"

-inherit pypi python_poetry_core
+inherit pypi python_hatchling
+
+PYPI_PACKAGE = "pytest_metadata"
+
+DEPENDS += "python3-hatch-vcs-native"

 RDEPENDS:${PN} = " \
     python3-pytest \