From 3fa9c7c3f0c0059828eecb5ea7e498a3546a2ea2 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Fri, 2 Jan 2026 16:26:33 +0100 Subject: [PATCH] package/python-aiohttp-sse: fix build with python 3.14 Signed-off-by: Bernd Kuhls Signed-off-by: Julien Olivain --- .../0001-Fix-build-with-python-3.14.patch | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 package/python-aiohttp-sse/0001-Fix-build-with-python-3.14.patch diff --git a/package/python-aiohttp-sse/0001-Fix-build-with-python-3.14.patch b/package/python-aiohttp-sse/0001-Fix-build-with-python-3.14.patch new file mode 100644 index 0000000000..76b595c7de --- /dev/null +++ b/package/python-aiohttp-sse/0001-Fix-build-with-python-3.14.patch @@ -0,0 +1,35 @@ +From 7a649de6561ec181208a9c4fa712aed614a224d4 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls +Date: Mon, 8 Dec 2025 18:03:03 +0100 +Subject: [PATCH] Fix build with python 3.14 + +ast.Str was deprecated in python 3.12 and removed in 3.14. It inherited +from ast.Constant, `Str.s` was equivalent to `Constant.value`, so we can +use the latter on both old and newer python versions. + +Patch was inspired by +https://hg-edge.mozilla.org/mozilla-central/rev/dbf9702ed87e + +Upstream: https://github.com/aio-libs/aiohttp-sse/commit/9eec5f5b0355bb3853d0e4f2af6486c9a5887e38 + +Signed-off-by: Bernd Kuhls +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 6843260..fa41025 100644 +--- a/setup.py ++++ b/setup.py +@@ -25,7 +25,7 @@ class VersionFinder(ast.NodeVisitor): + def visit_Assign(self, node): + if not self.version: + if node.targets[0].id == "__version__": +- self.version = node.value.s ++ self.version = node.value.value + + + def read_version(): +-- +2.47.3 +