Skip to contentSkip to conversation

python3-pytest-metadata: Upgrade to 3.1.1

PATCH New Khem Raj 1 participant 1 message Dec 22, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 python3-pytest-metadata: Upgrade to 3.1.1

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

---
 ...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%)
meta-python/recipes-devtools/python/python3-pytest-metadata_3.1.1.bb renamed from meta-python/recipes-devtools/python/python3-pytest-metadata_2.0.2.bb +6 -2
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
@@ -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 \