diff mbox series

[meta-python,06/13] python3-pytest-socket: upgrade 0.7.0 -> 0.8.1

Message ID 20261108192623.1082770-7-thomas@roosesweb.de
State Under Review
Headers show
Series Python updates for Home Assistant 2026.11 | expand

Commit Message

Thomas Roos Nov. 8, 2026, 7:26 p.m. UTC
Home Assistant 2026.11 pins pytest-socket 0.8.1 in its test
requirements.

0.8.x builds with uv_build instead of poetry-core. Backport the upstream
change that allows uv_build < 0.14, since OE-Core provides 0.13.7.

AI-Generated: Claude Code, Claude Opus 5.5
Signed-off-by: Thomas Roos <thomas@roosesweb.de>
---
 ...1-pyproject.toml-allow-uv_build-0.13.patch | 25 +++++++++++++++++++
 ....7.0.bb => python3-pytest-socket_0.8.1.bb} |  5 ++--
 2 files changed, 28 insertions(+), 2 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-pytest-socket/0001-pyproject.toml-allow-uv_build-0.13.patch
 rename meta-python/recipes-devtools/python/{python3-pytest-socket_0.7.0.bb => python3-pytest-socket_0.8.1.bb} (60%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pytest-socket/0001-pyproject.toml-allow-uv_build-0.13.patch b/meta-python/recipes-devtools/python/python3-pytest-socket/0001-pyproject.toml-allow-uv_build-0.13.patch
new file mode 100644
index 0000000000..6a1c364310
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-socket/0001-pyproject.toml-allow-uv_build-0.13.patch
@@ -0,0 +1,25 @@ 
+From e3ed717f36fe4794adc50712873e7c33fd43a581 Mon Sep 17 00:00:00 2001
+From: Mike Fiedler <miketheman@gmail.com>
+Date: Mon, 12 Oct 2026 13:05:41 -0400
+Subject: [PATCH] pyproject.toml: allow uv_build 0.13
+
+Only the build-system part of the upstream commit "chore: add Python
+3.15 support", which raised the uv_build bound to < 0.14.0.
+
+Upstream-Status: Backport [https://github.com/miketheman/pytest-socket/commit/e3ed717f36fe4794adc50712873e7c33fd43a581]
+AI-Generated: Claude Code, Claude Opus 5.5
+Signed-off-by: Thomas Roos <thomas@roosesweb.de>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -92,5 +92,5 @@
+ ]
+ 
+ [build-system]
+-requires = ["uv_build>=0.7.20,<0.13.0"]
++requires = ["uv_build>=0.7.20,<0.14.0"]
+ build-backend = "uv_build"
diff --git a/meta-python/recipes-devtools/python/python3-pytest-socket_0.7.0.bb b/meta-python/recipes-devtools/python/python3-pytest-socket_0.8.1.bb
similarity index 60%
rename from meta-python/recipes-devtools/python/python3-pytest-socket_0.7.0.bb
rename to meta-python/recipes-devtools/python/python3-pytest-socket_0.8.1.bb
index 5ae9bdfa5f..b320feebb1 100644
--- a/meta-python/recipes-devtools/python/python3-pytest-socket_0.7.0.bb
+++ b/meta-python/recipes-devtools/python/python3-pytest-socket_0.8.1.bb
@@ -3,9 +3,10 @@  HOMEPAGE = "https://github.com/miketheman/pytest-socket"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=1752f63a3a8a02fed42e580e9b94a081"
 
-SRC_URI[sha256sum] = "71ab048cbbcb085c15a4423b73b619a8b35d6a307f46f78ea46be51b1b7e11b3"
+SRC_URI += "file://0001-pyproject.toml-allow-uv_build-0.13.patch"
+SRC_URI[sha256sum] = "2f57787914ad2e1308d09ce141b95c3e55741fbb4fb7b7556593a6b063e0c9c7"
 
-inherit pypi python_poetry_core
+inherit pypi python_uv_build
 
 RDEPENDS:${PN} = "python3-pytest"