diff mbox series

[meta-python] python3-charset-normalizer: Upgrade 3.5.2 -> 3.5.3

Message ID 20261125145105.1808222-1-leon.anavi@konsulko.com
State New
Headers show
Series [meta-python] python3-charset-normalizer: Upgrade 3.5.2 -> 3.5.3 | expand

Commit Message

Leon Anavi Nov. 25, 2026, 2:51 p.m. UTC
Upgrade to release 3.5.3:

Changed:

- Faster noise scoring in both the pure-Python and Cython
  implementations by reusing Unicode character properties. The
  Cython extensions also speed up language ranking and checks for
  suspicious transitions between Unicode blocks.  Reduced detection
  overhead by skipping redundant UTF-8 sample alignment checks and
  repeated logging checks when tracing is disabled.

Fixed:

- Fixed detection of registered multibyte codecs when a sample
  boundary splits a character. The detector now strictly decodes
  the full input with the custom codec before sampling the resulting
  text.
- Kept single-byte candidates in consideration when a Chinese,
  Japanese or Korean decoding has measurable noise and no matching
  language.
- Recognized ASCII information separators (0x1C through 0x1F) as
  whitespace when scoring text, including record-separated JSON.
- Removed the leading GB18030 signature from lazily decoded matches
  on large inputs.
- Fixed UTF-7 text with a signature being misidentified as ASCII
  when a sample started in the middle of a long encoded sequence.
- Fixed language detection returning names such as English when
  only an alternative language profile met the coherence threshold.
- CharsetMatch.output() now updates a UTF-8 declaration when
  transcoding to another encoding and preserves the last successful
  output if a later conversion fails. (#819, #814)
- The legacy detect() function now reports ISO-8859-1 for Latin-1
  by default.
- Both python -m charset_normalizer and python -m
  charset_normalizer.cli now propagate the CLI exit status.
- CLI JSON output with --with-alternative now always uses a
  top-level array, including for a single result or a file with no
  match.
- normalizer --normalize now appends the detected encoding to
  extensionless filenames when creating a copy (for example, README
  becomes README.cp1252).
- Excluded Python 3.16's utf_7_imap mailbox codec from detection to
  prevent errors when probing unrelated encodings.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 .../0001-pyproject.toml-relax-setuptools-upper-bound.patch   | 5 +++--
 ...rmalizer_3.5.2.bb => python3-charset-normalizer_3.5.3.bb} | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-charset-normalizer_3.5.2.bb => python3-charset-normalizer_3.5.3.bb} (90%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-relax-setuptools-upper-bound.patch b/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-relax-setuptools-upper-bound.patch
index f73a6ef803..5193632b6a 100644
--- a/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-relax-setuptools-upper-bound.patch
+++ b/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-relax-setuptools-upper-bound.patch
@@ -5,10 +5,11 @@  Subject: [PATCH] pyproject.toml: relax setuptools upper bound
 
 OE provides setuptools via DEPENDS and builds with --no-isolation, so the
 upstream upper cap on setuptools is spurious and breaks the build whenever
-oe-core ships a newer setuptools (currently 84.0.0).
+oe-core ships a newer setuptools.
 
 Upstream-Status: Inappropriate [oe-core specific setuptools version]
 Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> 
 ---
  pyproject.toml | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
@@ -19,6 +20,6 @@  index 1111111..2222222 100644
 +++ b/pyproject.toml
 @@ -1,3 +1,3 @@
  [build-system]
--requires = ["setuptools>=68,<84.1"]
+-requires = ["setuptools>=68,<84.3"]
 +requires = ["setuptools>=68"]
  build-backend = "backend"
diff --git a/meta-python/recipes-devtools/python/python3-charset-normalizer_3.5.2.bb b/meta-python/recipes-devtools/python/python3-charset-normalizer_3.5.3.bb
similarity index 90%
rename from meta-python/recipes-devtools/python/python3-charset-normalizer_3.5.2.bb
rename to meta-python/recipes-devtools/python/python3-charset-normalizer_3.5.3.bb
index 1d02fd7fca..5958dc8e0a 100644
--- a/meta-python/recipes-devtools/python/python3-charset-normalizer_3.5.2.bb
+++ b/meta-python/recipes-devtools/python/python3-charset-normalizer_3.5.3.bb
@@ -4,7 +4,7 @@  LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=48178f3fc1374ad7e830412f812bde05"
 
 SRC_URI += "file://0001-pyproject.toml-relax-setuptools-upper-bound.patch"
-SRC_URI[sha256sum] = "39de2a259fc954455c57274dc94c79d5842774e1247a016aff30bc0efed0f4ef"
+SRC_URI[sha256sum] = "a250888753faa289e2997962fbb17c4960cbdb58575533ca6fceee68c224bdff"
 
 DEPENDS += "python3-setuptools-scm-native python3-mypy-native"