Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH v3 1/2] python3-maturin: Add support for python 3.15.2
Date: Thu, 29 Oct 2026 22:06:35 +0100	[thread overview]
Message-ID: <20261029210636.16016-2-jaipaul.cheernam@est.tech> (raw)
In-Reply-To: <20261029210636.16016-1-jaipaul.cheernam@est.tech>

Backport the upstream fix which raises the maximum Python version to
3.15 and PyPy to 3.12

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 ...1-Update-maximum-Python-PyPy-version.patch | 99 +++++++++++++++++++
 .../python/python3-maturin_1.15.0.bb          |  4 +-
 2 files changed, 102 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/python/python3-maturin/0001-Update-maximum-Python-PyPy-version.patch

diff --git a/meta/recipes-devtools/python/python3-maturin/0001-Update-maximum-Python-PyPy-version.patch b/meta/recipes-devtools/python/python3-maturin/0001-Update-maximum-Python-PyPy-version.patch
new file mode 100644
index 00000000000..1c78bced287
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-maturin/0001-Update-maximum-Python-PyPy-version.patch
@@ -0,0 +1,99 @@
+From 713a7088e1ca9f1fe71efd670826d6b77470c24d Mon Sep 17 00:00:00 2001
+From: messense <messense@icloud.com>
+Date: Thu, 29 Oct 2026 21:46:23 +0800
+Subject: [PATCH] Update maximum Python & PyPy version
+
+Upstream-Status: Backport [https://github.com/PyO3/maturin/commit/3bec0a32ae2b67ad4fac0194f762f44141e51473]
+Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
+---
+ src/python_interpreter/discovery.rs | 12 ++++++++++++
+ src/python_interpreter/mod.rs       |  4 ++--
+ 2 files changed, 14 insertions(+), 2 deletions(-)
+
+diff --git a/src/python_interpreter/discovery.rs b/src/python_interpreter/discovery.rs
+index e4bcb73..47548aa 100644
+--- a/src/python_interpreter/discovery.rs
++++ b/src/python_interpreter/discovery.rs
+@@ -708,10 +708,12 @@ mod tests {
+                 "CPython 3.12",
+                 "CPython 3.13",
+                 "CPython 3.14",
++                "CPython 3.15",
+                 "PyPy 3.8",
+                 "PyPy 3.9",
+                 "PyPy 3.10",
+                 "PyPy 3.11",
++                "PyPy 3.12",
+             ]
+         "#]];
+         expected.assert_debug_eq(&pythons);
+@@ -740,10 +742,13 @@ mod tests {
+                 "CPython 3.12",
+                 "CPython 3.13",
+                 "CPython 3.14",
++                "CPython 3.15",
+                 "CPython 3.14t",
++                "CPython 3.15t",
+                 "PyPy 3.9",
+                 "PyPy 3.10",
+                 "PyPy 3.11",
++                "PyPy 3.12",
+             ]
+         "#]];
+         expected.assert_debug_eq(&pythons);
+@@ -765,10 +770,12 @@ mod tests {
+                 "CPython 3.12",
+                 "CPython 3.13",
+                 "CPython 3.14",
++                "CPython 3.15",
+                 "PyPy 3.8",
+                 "PyPy 3.9",
+                 "PyPy 3.10",
+                 "PyPy 3.11",
++                "PyPy 3.12",
+             ]
+         "#]];
+         expected.assert_debug_eq(&pythons);
+@@ -788,8 +795,10 @@ mod tests {
+                 "CPython 3.12",
+                 "CPython 3.13",
+                 "CPython 3.14",
++                "CPython 3.15",
+                 "PyPy 3.10",
+                 "PyPy 3.11",
++                "PyPy 3.12",
+             ]
+         "#]];
+         expected.assert_debug_eq(&pythons);
+@@ -817,10 +826,13 @@ mod tests {
+                 "CPython 3.12",
+                 "CPython 3.13",
+                 "CPython 3.14",
++                "CPython 3.15",
+                 "CPython 3.14t",
++                "CPython 3.15t",
+                 "PyPy 3.9",
+                 "PyPy 3.10",
+                 "PyPy 3.11",
++                "PyPy 3.12",
+             ]
+         "#]];
+         expected.assert_debug_eq(&pythons);
+diff --git a/src/python_interpreter/mod.rs b/src/python_interpreter/mod.rs
+index dca016f..9dcdaf8 100644
+--- a/src/python_interpreter/mod.rs
++++ b/src/python_interpreter/mod.rs
+@@ -23,11 +23,11 @@ pub const MINIMUM_PYTHON_MINOR: usize = 7;
+ /// Minimum supported PyPy minor version.
+ pub const MINIMUM_PYPY_MINOR: usize = 8;
+ /// Be liberal here to include preview versions
+-pub const MAXIMUM_PYTHON_MINOR: usize = 14;
++pub const MAXIMUM_PYTHON_MINOR: usize = 15;
+ /// Minimum supported version for free-threaded CPython
+ pub const FREE_THREADED_MINIMUM_PYTHON_MINOR: usize = 14;
+ /// Maximum supported PyPy minor version.
+-pub const MAXIMUM_PYPY_MINOR: usize = 11;
++pub const MAXIMUM_PYPY_MINOR: usize = 12;
+ 
+ /// The kind of Python interpreter (CPython, PyPy, or GraalPy).
+ #[derive(Debug, Clone, Copy, Eq, PartialEq, Hash, serde::Deserialize, clap::ValueEnum)]
diff --git a/meta/recipes-devtools/python/python3-maturin_1.15.0.bb b/meta/recipes-devtools/python/python3-maturin_1.15.0.bb
index a29e29bda9e..e8c0b6a6ad1 100644
--- a/meta/recipes-devtools/python/python3-maturin_1.15.0.bb
+++ b/meta/recipes-devtools/python/python3-maturin_1.15.0.bb
@@ -5,7 +5,9 @@ LICENSE = "Apache-2.0 OR MIT"
 LIC_FILES_CHKSUM = "file://license-apache;md5=1836efb2eb779966696f473ee8540542 \
                     file://license-mit;md5=85fd3b67069cff784d98ebfc7d5c0797"
 
-SRC_URI += "file://0001-Cargo.lock-Update-rustix-to-1.1.5.patch"
+SRC_URI += "file://0001-Cargo.lock-Update-rustix-to-1.1.5.patch \
+            file://0001-Update-maximum-Python-PyPy-version.patch \
+           "
 
 SRC_URI[sha256sum] = "94b26cc8e8aba61a5f2099715fe640e18c5f678e9a500408b38761263954228a"
 

  reply	other threads:[~2026-10-29 21:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-12  9:00 [PATCH 1/2] mpdecimal: Add mpdecimal 4.0.1 as a new recipe in oe-core Jaipaul Cheernam
2026-10-12  9:00 ` [PATCH 2/2] python3: upgrade 3.14.7 -> 3.15.0 Jaipaul Cheernam
2026-10-12  9:40   ` [OE-core] " Marko, Peter
2026-10-12 10:14     ` Jaipaul Cheernam
2026-10-29 21:06   ` [PATCH v3 0/2] python3 upgrade to 3.15.2 Jaipaul Cheernam
2026-10-29 21:06     ` Jaipaul Cheernam [this message]
2026-10-29 21:06     ` [PATCH v3 2/2] python3: Upgrade 3.14.10 -> 3.15.2 Jaipaul Cheernam
2026-10-31  8:40       ` [OE-core] " Mathieu Dubois-Briand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261029210636.16016-2-jaipaul.cheernam@est.tech \
    --to=jaipaul.cheernam@est.tech \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox