Signed-off-by: Alexander Kanavin <[email protected]>
---
 .../python/python3-geojson/py3.13.patch       | 38 +++++++++++++++++++
 .../python/python3-geojson_3.1.0.bb           |  1 +
 2 files changed, 39 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-geojson/py3.13.patch

diff --git a/meta-python/recipes-devtools/python/python3-geojson/py3.13.patch 
b/meta-python/recipes-devtools/python/python3-geojson/py3.13.patch
new file mode 100644
index 000000000..45618fa6d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-geojson/py3.13.patch
@@ -0,0 +1,38 @@
+From c13afff339e6b78f442785cc95f0eb66ddab3e7b Mon Sep 17 00:00:00 2001
+From: Bas Couwenberg <[email protected]>
+Date: Fri, 4 Oct 2024 16:18:34 +0200
+Subject: [PATCH] Don't fail with Python 3.13. (#228)
+
+Upstream-Status: Backport 
[https://github.com/jazzband/geojson/commit/c13afff339e6b78f442785cc95f0eb66ddab3e7b]
+Signed-off-by: Alexander Kanavin <[email protected]>
+---
+ .github/workflows/test.yml | 2 +-
+ README.rst                 | 2 +-
+ setup.py                   | 5 +++--
+ tox.ini                    | 2 +-
+ 4 files changed, 6 insertions(+), 5 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 95b2823..004d3eb 100644
+--- a/setup.py
++++ b/setup.py
+@@ -17,8 +17,8 @@
+ 
+ 
+ major_version, minor_version = sys.version_info[:2]
+-if not (major_version == 3 and 7 <= minor_version <= 12):
+-    sys.stderr.write("Sorry, only Python 3.7 - 3.12 are "
++if not (major_version == 3 and 7 <= minor_version <= 13):
++    sys.stderr.write("Sorry, only Python 3.7 - 3.13 are "
+                      "supported at this time.\n")
+     exit(1)
+ 
+@@ -53,6 +53,7 @@
+         "Programming Language :: Python :: 3.10",
+         "Programming Language :: Python :: 3.11",
+         "Programming Language :: Python :: 3.12",
++        "Programming Language :: Python :: 3.13",
+         "Topic :: Scientific/Engineering :: GIS",
+     ]
+ )
+
diff --git a/meta-python/recipes-devtools/python/python3-geojson_3.1.0.bb 
b/meta-python/recipes-devtools/python/python3-geojson_3.1.0.bb
index 742f921e5..36f5fa09e 100644
--- a/meta-python/recipes-devtools/python/python3-geojson_3.1.0.bb
+++ b/meta-python/recipes-devtools/python/python3-geojson_3.1.0.bb
@@ -9,6 +9,7 @@ inherit pypi setuptools3 ptest
 
 SRC_URI += " \
        file://run-ptest \
+        file://py3.13.patch \
 "
 
 RDEPENDS:${PN}-ptest += " \
-- 
2.39.5

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#112945): 
https://lists.openembedded.org/g/openembedded-devel/message/112945
Mute This Topic: https://lists.openembedded.org/mt/109050827/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to