diff mbox series

[meta-python,2/4] python3-geojson: Allow building with Python 3.15

Message ID 20261120035922.3013969-2-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-multimedia,1/4] gupnp-igd: Bound each ptest with a timeout | expand

Commit Message

Khem Raj Nov. 20, 2026, 3:59 a.m. UTC
setup.py exits unless the interpreter is 3.10 - 3.14, so do_compile
fails now that oe-core ships Python 3.15. Upstream main still has the
same bound; raise it to 3.15.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../0001-setup.py-Allow-Python-3.15.patch     | 38 +++++++++++++++++++
 .../python/python3-geojson_3.3.0.bb           |  1 +
 2 files changed, 39 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-geojson/0001-setup.py-Allow-Python-3.15.patch
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-geojson/0001-setup.py-Allow-Python-3.15.patch b/meta-python/recipes-devtools/python/python3-geojson/0001-setup.py-Allow-Python-3.15.patch
new file mode 100644
index 0000000000..e61ef33abf
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-geojson/0001-setup.py-Allow-Python-3.15.patch
@@ -0,0 +1,38 @@ 
+From b0ebb91bc05e240a1acee4133662e3cc2127a9e3 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Thu, 19 Nov 2026 10:21:40 -0800
+Subject: [PATCH] setup.py: Allow Python 3.15
+
+setup.py refuses to run on anything newer than 3.14, so the package
+cannot be built with Python 3.15. Raise the upper bound and add the
+classifier.
+
+Upstream-Status: Submitted [https://github.com/jazzband/geojson/pull/264]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ setup.py | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 05ce9cd..427c434 100644
+--- a/setup.py
++++ b/setup.py
+@@ -17,8 +17,8 @@ else:
+
+
+ major_version, minor_version = sys.version_info[:2]
+-if not (major_version == 3 and 10 <= minor_version <= 14):
+-    sys.stderr.write("Sorry, only Python 3.10 - 3.14 are "
++if not (major_version == 3 and 10 <= minor_version <= 15):
++    sys.stderr.write("Sorry, only Python 3.10 - 3.15 are "
+                      "supported at this time.\n")
+     exit(1)
+
+@@ -52,6 +52,7 @@ setup(
+         "Programming Language :: Python :: 3.12",
+         "Programming Language :: Python :: 3.13",
+         "Programming Language :: Python :: 3.14",
++        "Programming Language :: Python :: 3.15",
+         "Topic :: Scientific/Engineering :: GIS",
+     ]
+ )
diff --git a/meta-python/recipes-devtools/python/python3-geojson_3.3.0.bb b/meta-python/recipes-devtools/python/python3-geojson_3.3.0.bb
index 8b3d5cfd81..7d866cac37 100644
--- a/meta-python/recipes-devtools/python/python3-geojson_3.3.0.bb
+++ b/meta-python/recipes-devtools/python/python3-geojson_3.3.0.bb
@@ -3,6 +3,7 @@  HOMEPAGE = "https://pypi.org/project/geojson/"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=127b4a863485faf7c57d12dc2c1f60b3"

+SRC_URI += "file://0001-setup.py-Allow-Python-3.15.patch"
 SRC_URI[sha256sum] = "92e83b9cb378a450b42f1207bb9b2a031f9fc89185f335153c44369b8b8b71fd"

 inherit pypi setuptools3 ptest-python-pytest