mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-01-27 08:21:16 +00:00
python3-geojson: fix build with python 3.14
Backport parts of an upstream PR that enables 3.14 in setup.py. ptests look OK: |============================================================================ |Testsuite summary |# TOTAL: 68 |# PASS: 68 |# SKIP: 0 |# XFAIL: 0 |# FAIL: 0 |# XPASS: 0 |# ERROR: 0 |DURATION: 0 |END: /usr/lib/python3-geojson/ptest |2026-01-23T18:03 |STOP: ptest-runner |TOTAL: 1 FAIL: 0 Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
From 2584c0de5651bd694499449f9da5321b15597270 Mon Sep 17 00:00:00 2001
|
||||
From: adelplanque <alaindelplanque@mailoo.org>
|
||||
Date: Wed, 17 Dec 2025 22:22:28 +0100
|
||||
Subject: [PATCH] Allow install over python 3.14 (#329)
|
||||
|
||||
All tests pass over python 3.14.2
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/jazzband/geojson/pull/240]
|
||||
|
||||
Backport the relevant parts of an upstream PR to allow build with Python 3.14.
|
||||
|
||||
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
|
||||
---
|
||||
README.rst | 2 +-
|
||||
setup.py | 5 +++--
|
||||
2 files changed, 4 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/README.rst b/README.rst
|
||||
index 26dc790..e3ac38a 100644
|
||||
--- a/README.rst
|
||||
+++ b/README.rst
|
||||
@@ -29,7 +29,7 @@ This Python library contains:
|
||||
Installation
|
||||
------------
|
||||
|
||||
-geojson is compatible with Python 3.7 - 3.13. The recommended way to install is via pip_:
|
||||
+geojson is compatible with Python 3.7 - 3.14. The recommended way to install is via pip_:
|
||||
|
||||
.. code::
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 004d3eb..db277f1 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 7 <= minor_version <= 13):
|
||||
- sys.stderr.write("Sorry, only Python 3.7 - 3.13 are "
|
||||
+if not (major_version == 3 and 7 <= minor_version <= 14):
|
||||
+ sys.stderr.write("Sorry, only Python 3.7 - 3.14 are "
|
||||
"supported at this time.\n")
|
||||
exit(1)
|
||||
|
||||
@@ -54,6 +54,7 @@ setup(
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
+ "Programming Language :: Python :: 3.14",
|
||||
"Topic :: Scientific/Engineering :: GIS",
|
||||
]
|
||||
)
|
||||
--
|
||||
2.52.0
|
||||
|
||||
@@ -5,6 +5,10 @@ LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=f77f2ed49768c8d4c79ba874c0f94d8a"
|
||||
|
||||
SRC_URI[sha256sum] = "b860baba1e8c6f71f8f5f6e3949a694daccf40820fa8f138b3f712bd85804903"
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-Allow-install-over-python-3.14-329.patch \
|
||||
"
|
||||
|
||||
inherit pypi setuptools3 ptest-python-pytest
|
||||
|
||||
RDEPENDS:${PN} += "python3-simplejson python3-math"
|
||||
|
||||
Reference in New Issue
Block a user