diff mbox series

python3-chardet: upgrade 5.2.0 -> 7.0.1

Message ID 20260305074250.377829-1-jiaying.song.cn@windriver.com
State New
Headers show
Series python3-chardet: upgrade 5.2.0 -> 7.0.1 | expand

Commit Message

Song, Jiaying (CN) March 5, 2026, 7:42 a.m. UTC
From: Jiaying Song <jiaying.song.cn@windriver.com>

Major version upgrade with significant improvements:
- License changed from LGPL-2.1-only to MIT
- Ground-up rewrite with 12-stage detection pipeline
- 43x faster with mypyc (30x pure Python)
- 98.1% accuracy (+9.9pp improvement)
- Added language detection support (95.1% accuracy, 49 languages)
- Expanded to 99 encodings coverage

Build system changes:
- Switch from python_setuptools_build_meta to python_hatchling
- Add python3-hatch-vcs-native build dependency

https://github.com/chardet/chardet/compare/5.2.0...7.0.1

Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
---
 ...thon3-chardet_5.2.0.bb => python3-chardet_7.0.1.bb} | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
 rename meta/recipes-devtools/python/{python3-chardet_5.2.0.bb => python3-chardet_7.0.1.bb} (57%)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-chardet_5.2.0.bb b/meta/recipes-devtools/python/python3-chardet_7.0.1.bb
similarity index 57%
rename from meta/recipes-devtools/python/python3-chardet_5.2.0.bb
rename to meta/recipes-devtools/python/python3-chardet_7.0.1.bb
index 9acbeeb3f2..1bca7e2f3a 100644
--- a/meta/recipes-devtools/python/python3-chardet_5.2.0.bb
+++ b/meta/recipes-devtools/python/python3-chardet_7.0.1.bb
@@ -1,11 +1,13 @@ 
 SUMMARY = "Universal encoding detector for Python 2 and 3"
 HOMEPAGE = "https://pypi.org/project/chardet/"
-LICENSE = "LGPL-2.1-only"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=4fbd65380cdd255951079008b364516c"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5ceb043323c2ee90204004ecea245f1d"
 
-SRC_URI[sha256sum] = "1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7"
+SRC_URI[sha256sum] = "6fce895c12c5495bb598e59ae3cd89306969b4464ec7b6dd609b9c86e3397fe3"
 
-inherit pypi python_setuptools_build_meta
+inherit pypi python_hatchling
+
+DEPENDS += "python3-hatch-vcs-native"
 
 PACKAGES =+ "${PN}-cli"
 FILES:${PN}-cli += " \