diff mbox series

[meta-python,043/105] python3-isort: upgrade 8.0.1 -> 9.0.2

Message ID 20261116175359.342679-43-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,001/105] python3-absl: upgrade 2.1.0 -> 2.5.1 | expand

Commit Message

Khem Raj Nov. 16, 2026, 5:52 p.m. UTC
The build requires hatch-mypyc although the mypyc hook is disabled by
default; drop it from the build requirements. isort now imports
mypy_extensions at runtime; add python3-mypy-extensions to RDEPENDS.

Changes:
- BREAKING (9.0.0): remove logic for deprecated options; add Python
  3.15 support including sorting of lazy imports.
- Build: now compiled with mypyc; build requires gain hatch-mypyc
  (hatchling backend unchanged). 9.0.1 restores "python -m isort" by
  excluding __main__ from compilation.
- Add separate_packages option and --forced-separate CLI flag; treat
  private stdlib modules as stdlib.
- Many fixes for comment placement, wrap modes (NOQA, multi_line_output
  3/5/10), float_to_top, CRLF handling, reexport sorting and config
  discovery stopping at Git worktree boundaries.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../{python3-isort_8.0.1.bb => python3-isort_9.0.2.bb}    | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-isort_8.0.1.bb => python3-isort_9.0.2.bb} (65%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-isort_8.0.1.bb b/meta-python/recipes-devtools/python/python3-isort_9.0.2.bb
similarity index 65%
rename from meta-python/recipes-devtools/python/python3-isort_8.0.1.bb
rename to meta-python/recipes-devtools/python/python3-isort_9.0.2.bb
index b8e32a5563..ed0bf770cc 100644
--- a/meta-python/recipes-devtools/python/python3-isort_8.0.1.bb
+++ b/meta-python/recipes-devtools/python/python3-isort_9.0.2.bb
@@ -4,17 +4,23 @@  LICENSE = "MIT"
 SECTION = "devel/python"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=197c46995787b46a2dbf0d519c1754cf"
 
-SRC_URI[sha256sum] = "171ac4ff559cdc060bcfff550bc8404a486fee0caab245679c2abe7cb253c78d"
+SRC_URI[sha256sum] = "d2298980ce44350f11d9d24c8150eaef1883431ec203dddbb4e9b5c3ceb54c70"
 
 inherit pypi python_hatchling
 
 DEPENDS += "python3-hatch-vcs-native python3-hatchling-native"
 
+# The mypyc build hook is disabled by default; don't require its plugin
+do_configure:prepend() {
+    sed -i -e '/^requires = /s/, "hatch-mypyc"//' ${S}/pyproject.toml
+}
+
 RDEPENDS:${PN} += " \
     python3-compression \
     python3-datetime \
     python3-difflib \
     python3-email \
+    python3-mypy-extensions \
     python3-numbers \
     python3-pprint \
     python3-profile \