diff mbox series

[meta-python,06/14] python3-mypy: upgrade 1.17.0 -> 2.4.1

Message ID 20261125080732.2419614-67-khem.raj@oss.qualcomm.com
State New
Headers show
Series None | expand

Commit Message

Khem Raj Nov. 25, 2026, 8:07 a.m. UTC
Major release series:
- 2.0 enables --local-partial-types and --strict-bytes by default,
  changes --allow-redefinition behaviour and drops Python 3.9 targets
- the Rust based native parser (ast-serialize) is the default since
  2.4; the old parser stays available with --no-native-parser
- parallel checking is no longer experimental; PEP 661 sentinels,
  closed TypedDicts (PEP 728) and full PEP 696 support were added
- Python 3.15 support; the mypyc runtime moved to the librt package

mypy now imports librt and ast_serialize at module level and lists
both in build-system.requires, so add python3-librt and
python3-ast-serialize to DEPENDS (native) and RDEPENDS. mypyc compiled
code of other packages (e.g. pytokens) imports librt only when it uses
librt primitives explicitly, so their RDEPENDS are unchanged. The
bundled mypyc/lib-rt/base64 code is BSD-2-Clause, so LICENSE gains it.

License-Update: BSD-2-Clause license of mypyc/lib-rt/base64 appended

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...{python3-mypy_1.17.0.bb => python3-mypy_2.4.1.bb} | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-mypy_1.17.0.bb => python3-mypy_2.4.1.bb} (55%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-mypy_1.17.0.bb b/meta-python/recipes-devtools/python/python3-mypy_2.4.1.bb
similarity index 55%
rename from meta-python/recipes-devtools/python/python3-mypy_1.17.0.bb
rename to meta-python/recipes-devtools/python/python3-mypy_2.4.1.bb
index 07b6213102..f7d182fd6a 100644
--- a/meta-python/recipes-devtools/python/python3-mypy_1.17.0.bb
+++ b/meta-python/recipes-devtools/python/python3-mypy_2.4.1.bb
@@ -1,15 +1,17 @@ 
-SUMMARY = "Optional static typing for Python 3 and 2 (PEP 484)"
+SUMMARY = "Optional static typing for Python"
 HOMEPAGE = "https://github.com/python/mypy"
-LICENSE = "MIT AND Python-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=8d62fd8f8648cb018e52857347e340b9"
+LICENSE = "MIT AND Python-2.0 AND BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=572a4af76db6990f02b2d82f387ea10f"
 
 inherit pypi python_setuptools_build_meta
 
-SRC_URI[sha256sum] = "e5d7ccc08ba089c06e2f5629c660388ef1fee708444f1dee0b9203fa031dee03"
+SRC_URI[sha256sum] = "63b590965691e540a335fa74dadf31a7069142f6b72e234689bbd244edf55623"
 
 BBCLASSEXTEND = "native nativesdk"
 
 DEPENDS += " \
+    python3-ast-serialize-native \
+    python3-librt-native \
     python3-mypy-extensions-native \
     python3-types-psutil-native \
     python3-types-setuptools-native \
@@ -18,6 +20,8 @@  DEPENDS += " \
 "
 
 RDEPENDS:${PN} += " \
+    python3-ast-serialize \
+    python3-librt \
     python3-modules \
     python3-mypy-extensions \
     python3-pathspec \