diff mbox series

[v2] python3-unittest-automake-output: upgrade 0.4 -> 0.5

Message ID 20261204125248.3471588-1-ross.burton@arm.com
State New
Headers show
Series [v2] python3-unittest-automake-output: upgrade 0.4 -> 0.5 | expand

Commit Message

Ross Burton Dec. 4, 2026, 12:52 p.m. UTC
Upstream changelog:

- pyproject.toml: raise flit-core dependency to <5
- tests: handle new dict comparison output in pytest 9.2.0
- pytest: use hookimpl(trylast=True) instead of mark.trylast
- Rewrite the PyTest plugin

Drop now-redundant patches.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 ...mpl-trylast-True-instead-of-mark.try.patch | 28 -------------------
 ...toml-allow-building-with-flit_core-4.patch | 23 ---------------
 ...> python3-unittest-automake-output_0.5.bb} |  7 ++---
 3 files changed, 2 insertions(+), 56 deletions(-)
 delete mode 100644 meta/recipes-devtools/python/python3-unittest-automake-output/0001-pytest-use-hookimpl-trylast-True-instead-of-mark.try.patch
 delete mode 100644 meta/recipes-devtools/python/python3-unittest-automake-output/0002-pyproject.toml-allow-building-with-flit_core-4.patch
 rename meta/recipes-devtools/python/{python3-unittest-automake-output_0.4.bb => python3-unittest-automake-output_0.5.bb} (60%)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-unittest-automake-output/0001-pytest-use-hookimpl-trylast-True-instead-of-mark.try.patch b/meta/recipes-devtools/python/python3-unittest-automake-output/0001-pytest-use-hookimpl-trylast-True-instead-of-mark.try.patch
deleted file mode 100644
index dd36dca601e..00000000000
--- a/meta/recipes-devtools/python/python3-unittest-automake-output/0001-pytest-use-hookimpl-trylast-True-instead-of-mark.try.patch
+++ /dev/null
@@ -1,28 +0,0 @@ 
-From 801e5957e7050b370df60f82025efa2229f764ce Mon Sep 17 00:00:00 2001
-From: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
-Date: Thu, 29 Oct 2026 09:33:37 +0000
-Subject: [PATCH 1/2] pytest: use hookimpl(trylast=True) instead of
- mark.trylast
-
-pytest 9.2.0 deprecates mark.trylast and now fails to load the plugin.
-Use the hookimpl decorator instead.
-
-Upstream-Status: Submitted [https://gitlab.com/rossburton/python-unittest-automake-output/-/merge_requests/20]
-Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
----
- src/putao/pytest.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/putao/pytest.py b/src/putao/pytest.py
-index 13156c0..1e0f194 100644
---- a/src/putao/pytest.py
-+++ b/src/putao/pytest.py
-@@ -17,7 +17,7 @@ def pytest_addoption(parser):
-     )
- 
- 
--@pytest.mark.trylast
-+@pytest.hookimpl(trylast=True)
- def pytest_configure(config):
-     """Set all the options before the test run."""
-     # The help printing uses the terminalreporter,
diff --git a/meta/recipes-devtools/python/python3-unittest-automake-output/0002-pyproject.toml-allow-building-with-flit_core-4.patch b/meta/recipes-devtools/python/python3-unittest-automake-output/0002-pyproject.toml-allow-building-with-flit_core-4.patch
deleted file mode 100644
index 7afe1bb908b..00000000000
--- a/meta/recipes-devtools/python/python3-unittest-automake-output/0002-pyproject.toml-allow-building-with-flit_core-4.patch
+++ /dev/null
@@ -1,23 +0,0 @@ 
-From: Tim Orling <tim.orling@konsulko.com>
-Subject: [PATCH] pyproject.toml: allow building with flit_core 4
-
-flit_core 4 only drops features this project does not use (the
-[tool.flit.metadata] table, sdists from VCS and --setup-py), so
-raise the upper bound to <5, as the flit 4.0 release notes suggest:
-https://flit.pypa.io/en/stable/history.html#version-4-0
-
-Upstream-Status: Pending
-AI-Generated: Uses Claude Code (Claude Opus 5.5)
-Signed-off-by: Tim Orling <tim.orling@konsulko.com>
----
-diff --git a/pyproject.toml b/pyproject.toml
-index a3eebf8..8454a66 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -1,5 +1,5 @@
- [build-system]
--requires = ["flit_core >=3.2,<4"]
-+requires = ["flit_core >=3.2,<5"]
- build-backend = "flit_core.buildapi"
- 
- [project]
diff --git a/meta/recipes-devtools/python/python3-unittest-automake-output_0.4.bb b/meta/recipes-devtools/python/python3-unittest-automake-output_0.5.bb
similarity index 60%
rename from meta/recipes-devtools/python/python3-unittest-automake-output_0.4.bb
rename to meta/recipes-devtools/python/python3-unittest-automake-output_0.5.bb
index f16cda97c39..c75a758fd59 100644
--- a/meta/recipes-devtools/python/python3-unittest-automake-output_0.4.bb
+++ b/meta/recipes-devtools/python/python3-unittest-automake-output_0.5.bb
@@ -3,12 +3,9 @@  HOMEPAGE = "https://gitlab.com/rossburton/python-unittest-automake-output"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f6f16008d9fb7349f06609329f1ab93b"
 
-SRC_URI = "git://gitlab.com/rossburton/python-unittest-automake-output;protocol=https;branch=main;tag=${PV} \
-           file://0001-pytest-use-hookimpl-trylast-True-instead-of-mark.try.patch \
-           file://0002-pyproject.toml-allow-building-with-flit_core-4.patch \
-           "
+SRC_URI = "git://gitlab.com/rossburton/python-unittest-automake-output;protocol=https;branch=main;tag=${PV}"
 
-SRCREV = "4d64324a8910ad28b3157f902c35f19fcb479bc0"
+SRCREV = "b04271fdc536fb0fdc8000769123dbddbd9a76cf"
 
 inherit python_flit_core