Skip to content

chore(deps): update dependency charset-normalizer to v3 - #703

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/charset-normalizer-3.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/charset-normalizer-3.x

Conversation

@renovate

@renovate renovate Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
charset-normalizer (changelog) ==2.1.1 → ==3.5.2 age adoption passing confidence

Release Notes

jawah/charset_normalizer (charset-normalizer)

v3.5.2

Compare Source

Changed
  • Raised the Cython upper bound to <3.4 for native builds. The bound remains <3.3 for
    abi3 builds to preserve compatibility with the Python 3.7 Limited API.
Fixed
  • Valid UTF-8 Chinese JSON incorrectly detected as PTCP154 due to excessive noise penalties
    for uncommon CJK characters. (#​796)
  • Supported encodings without aliases failing name resolution or being ignored in charset
    declarations. (#​800)

v3.5.1

Compare Source

Changed
  • Raised upper bound of setuptools to v84 (#​794)
  • Cache performance access optimization for our CharInfo struct (prebuilt only).
Fixed
  • No longer decoding large content when the noise detector output give a high entropy.
    Only impacted large content input >1M bytes.

v3.5.0

Compare Source

Added
  • Explicit support for Python 3.15
Fixed
  • Comparing a CharsetMatch to a non-alias encoding strings (#​773)
  • Return 0.0 CharsetMatch.multi_byte_usage for empty payloads instead of crashing (#​774)
  • A file with both a charset declaration and BOM/SIG did not verify first the BOM/SIG charset.
  • iso2022* cases misdetected due to a flaw in our multibyte chunking logic.
Changed
  • Replaced the optional mypyc build with Cython extensions while retaining the
    pure Python fallback. The previous engine (mypyc) started to hit rough limit around
    the optimization of our noise/coherence detector while Cython allows us to
    steer the engine toward the right generated optimized sources.
    This change SHOULD not impact bundler (e.g. Pyinstaller) as the module are
    immediately discoverable (i.e. not hidden import like mypyc did).
    Moreover, a long wished distribution is the abi3 wheels, this will allow us
    to no longer rush each year when a new Python interpreter is released.
    We still distribute the interpreter specific wheels for faster performance.
  • Applied micro-optimization on several utils.
  • CharsetMatches no longer sort on each match insertion.
Misc
  • Removed an old performance optimization attempt in apy.py (success_fast_tracked+payload_result_cache).

v3.4.9

Compare Source

Fixed
  • Regression in our fallback path leading to a decode error. (#​771)
    We've yanked 3.4.8 as a result of that bug.

v3.4.8

Compare Source

Fixed
  • Wall import time due to cascade codec imports for our multibyte first sort of iana supported codecs (#​742)
  • Unnecessary json import at runtime (#​753)
  • Inverse capitalization not seen by noise detector (#​731)
Changed
  • No longer holding a global cache for our noise / coherence measurements. Relax RSS memory usage.
  • Micro-optimizations in our noise / coherence measurements.
  • No longer using regex search by default for our preemptive charset mark algorithm.
  • Raised upperbound of setuptools to v83.
  • Raised upperbound of mypy(c) to v2.1.
Removed
  • Redundant UTF7 BOM marker (#​730)

v3.4.7

Compare Source

Changed
  • Pre-built optimized version using mypy[c] v1.20.
  • Relax setuptools constraint to setuptools>=68,<82.1.
Fixed
  • Correctly remove SIG remnant in utf-7 decoded string. (#​718) (#​716)

v3.4.6

Compare Source

Changed
  • Flattened the logic in charset_normalizer.md for higher performance. Removed eligible(..) and feed(...)
    in favor of feed_info(...).
  • Raised upper bound for mypy[c] to 1.20, for our optimized version.
  • Updated UNICODE_RANGES_COMBINED using Unicode blocks v17.
Fixed
  • Edge case where noise difference between two candidates can be almost insignificant. (#​672)
  • CLI --normalize writing to wrong path when passing multiple files in. (#​702)
Misc
  • Freethreaded pre-built wheels now shipped in PyPI starting with 3.14t. (#​616)

v3.4.5

Compare Source

Changed
  • Update setuptools constraint to setuptools>=68,<=82.
  • Raised upper bound of mypyc for the optional pre-built extension to v1.19.1
Fixed
  • Add explicit link to lib math in our optimized build. (#​692)
  • Logger level not restored correctly for empty byte sequences. (#​701)
  • TypeError when passing bytearray to from_bytes. (#​703)
Misc
  • Applied safe micro-optimizations in both our noise detector and language detector.
  • Rewrote the query_yes_no function (inside CLI) to avoid using ambiguous licensed code.
  • Added cd.py submodule into mypyc optional compilation to reduce further the performance impact.

v3.4.4

Compare Source

Changed
  • Bound setuptools to a specific constraint setuptools>=68,<=81.
  • Raised upper bound of mypyc for the optional pre-built extension to v1.18.2
Removed
  • setuptools-scm as a build dependency.
Misc
  • Enforced hashes in dev-requirements.txt and created ci-requirements.txt for security purposes.
  • Additional pre-built wheels for riscv64, s390x, and armv7l architectures.
  • Restore multiple.intoto.jsonl in GitHub releases in addition to individual attestation file per wheel.

v3.4.3

Compare Source

Changed
  • mypy(c) is no longer a required dependency at build time if CHARSET_NORMALIZER_USE_MYPYC isn't set to 1. (#​595) (#​583)
  • automatically lower confidence on small bytes samples that are not Unicode in detect output legacy function. (#​391)
Added
  • Custom build backend to overcome inability to mark mypy as an optional dependency in the build phase.
  • Support for Python 3.14
Fixed
  • sdist archive contained useless directories.
  • automatically fallback on valid UTF-16 or UTF-32 even if the md says it's noisy. (#​633)
Misc
  • SBOM are automatically published to the relevant GitHub release to comply with regulatory changes.
    Each published wheel comes with its SBOM. We choose CycloneDX as the format.
  • Prebuilt optimized wheel are no longer distributed by default for CPython 3.7 due to a change in cibuildwheel.

v3.4.2

Compare Source

Fixed
  • Addressed the DeprecationWarning in our CLI regarding argparse.FileType by backporting the target class into the package. (#​591)
  • Improved the overall reliability of the detector with CJK Ideographs. (#​605) (#​587)
Changed
  • Optional mypyc compilation upgraded to version 1.15 for Python >= 3.8

v3.4.1

Compare Source

Changed
  • Project metadata are now stored using pyproject.toml instead of setup.cfg using setuptools as the build backend.
  • Enforce annotation delayed loading for a simpler and consistent types in the project.
  • Optional mypyc compilation upgraded to version 1.14 for Python >= 3.8
Added
  • pre-commit configuration.
  • noxfile.
Removed
  • build-requirements.txt as per using pyproject.toml native build configuration.
  • bin/integration.py and bin/serve.py in favor of downstream integration test (see noxfile).
  • setup.cfg in favor of pyproject.toml metadata configuration.
  • Unused utils.range_scan function.
Fixed
  • Converting content to Unicode bytes may insert utf_8 instead of preferred utf-8. (#​572)
  • Deprecation warning "'count' is passed as positional argument" when converting to Unicode bytes on Python 3.13+

v3.4.0

Compare Source

Added
  • Argument --no-preemptive in the CLI to prevent the detector to search for hints.
  • Support for Python 3.13 (#​512)
Fixed
  • Relax the TypeError exception thrown when trying to compare a CharsetMatch with anything else than a CharsetMatch.
  • Improved the general reliability of the detector based on user feedbacks. (#​520) (#​509) (#​498) (#​407) (#​537)
  • Declared charset in content (preemptive detection) not changed when converting to utf-8 bytes. (#​381)

v3.3.2

Compare Source

Fixed
  • Unintentional memory usage regression when using large payload that match several encoding (#​376)
  • Regression on some detection case showcased in the documentation (#​371)
Added
  • Noise (md) probe that identify malformed arabic representation due to the presence of letters in isolated form (credit to my wife)

v3.3.1

Compare Source

Changed
  • Optional mypyc compilation upgraded to version 1.6.1 for Python >= 3.8
  • Improved the general detection reliability based on reports from the community

v3.3.0

Compare Source

Added
  • Allow to execute the CLI (e.g. normalizer) through python -m charset_normalizer.cli or python -m charset_normalizer
  • Support for 9 forgotten encoding that are supported by Python but unlisted in encoding.aliases as they have no alias (#​323)
Removed
  • (internal) Redundant utils.is_ascii function and unused function is_private_use_only
  • (internal) charset_normalizer.assets is moved inside charset_normalizer.constant
Changed
  • (internal) Unicode code blocks in constants are updated using the latest v15.0.0 definition to improve detection
  • Optional mypyc compilation upgraded to version 1.5.1 for Python >= 3.8
Fixed
  • Unable to properly sort CharsetMatch when both chaos/noise and coherence were close due to an unreachable condition in __lt__ (#​350)

v3.2.0

Compare Source

Changed
  • Typehint for function from_path no longer enforce PathLike as its first argument
  • Minor improvement over the global detection reliability
Added
  • Introduce function is_binary that relies on main capabilities, and optimized to detect binaries
  • Propagate enable_fallback argument throughout from_bytes, from_path, and from_fp that allow a deeper control over the detection (default True)
  • Explicit support for Python 3.12
Fixed
  • Edge case detection failure where a file would contain 'very-long' camel cased word (Issue #​289)

v3.1.0

Compare Source

Added
  • Argument should_rename_legacy for legacy function detect and disregard any new arguments without errors (PR #​262)
Removed
  • Support for Python 3.6 (PR #​260)
Changed
  • Optional speedup provided by mypy/c 1.0.1

v3.0.1

Compare Source

Fixed
  • Multi-bytes cutter/chunk generator did not always cut correctly (PR #​233)
Changed
  • Speedup provided by mypy/c 0.990 on Python >= 3.7

v3.0.0

Compare Source

Added
  • Extend the capability of explain=True when cp_isolation contains at most two entries (min one), will log in details of the Mess-detector results
  • Support for alternative language frequency set in charset_normalizer.assets.FREQUENCIES
  • Add parameter language_threshold in from_bytes, from_path and from_fp to adjust the minimum expected coherence ratio
  • normalizer --version now specify if current version provide extra speedup (meaning mypyc compilation whl)
Changed
  • Build with static metadata using 'build' frontend
  • Make the language detection stricter
  • Optional: Module md.py can be compiled using Mypyc to provide an extra speedup up to 4x faster than v2.1
Fixed
  • CLI with opt --normalize fail when using full path for files
  • TooManyAccentuatedPlugin induce false positive on the mess detection when too few alpha character have been fed to it
  • Sphinx warnings when generating the documentation
Removed
  • Coherence detector no longer return 'Simple English' instead return 'English'
  • Coherence detector no longer return 'Classical Chinese' instead return 'Chinese'
  • Breaking: Method first() and best() from CharsetMatch
  • UTF-7 will no longer appear as "detected" without a recognized SIG/mark (is unreliable/conflict with ASCII)
  • Breaking: Class aliases CharsetDetector, CharsetDoctor, CharsetNormalizerMatch and CharsetNormalizerMatches
  • Breaking: Top-level function normalize
  • Breaking: Properties chaos_secondary_pass, coherence_non_latin and w_counter from CharsetMatch
  • Support for the backport unicodedata2

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Oct 6, 2026
github-actions[bot]
github-actions Bot previously approved these changes Oct 6, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: Run Pgskipper Pipeline passed and all commits are verified and authored by renovate[bot].

github-actions[bot]
github-actions Bot previously approved these changes Oct 7, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: Run Pgskipper Pipeline passed and all commits are verified and authored by renovate[bot].

github-actions[bot]
github-actions Bot previously approved these changes Oct 7, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: Run Pgskipper Pipeline passed and all commits are verified and authored by renovate[bot].

@Tvion
Tvion enabled auto-merge (squash) October 7, 2026 12:55
@renovate
renovate Bot force-pushed the renovate/charset-normalizer-3.x branch from 1a296f3 to a6c5147 Compare October 7, 2026 12:57
@NetcrackerCLPLCI

NetcrackerCLPLCI commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

🤖 CI-Autofix — could not fix this automatically

Classification: behavioral
Reason: infra

What broke

robot-framework-failed

[COMPARE] deployment dbaas-postgres-adapter dbaas-postgres-adapter ghcr.io/netcracker/pgskipper-docker-dbaas-adapter:main: Expected tag=main, Actual tag=main
| PASS |
------------------------------------------------------------------------------
Tests.Image Tests.Image Tests                                         | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Tests.Image Tests                                                     | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Tests                                                                 | FAIL |
47 tests, 42 passed, 4 failed, 1 skipped
==============================================================================
Output:  /opt/robot/output/output.xml
Log:     /opt/robot/output/log.html
Report:  /opt/robot/output/report.html
##[error] ❌ Tests failed
##[end-action id=__self_5.__run_5;outcome=success;conclusion=success;duration_ms=175]
##[start-action display=Check job status;id=__self_5.__run_6]
##[group]Run # ▶️ Check deploy status
# ▶️ Check deploy status

The PR only bumps charset-normalizer (a transitive dependency of requests) in services/backup-daemon/docker/requirements.txt; no code in the repo imports or calls charset_normalizer/chardet directly, and a dry-run pip install of the updated requirements resolves cleanly with no conflicts. The failing Robot Framework 'Check Granular Api' E2E suite requires a live Kubernetes/Patroni/S3 deployment that cannot be run in this sandbox, and the job log shows the identical suite producing different failure counts (0, 8, 0 of 12 tests) across the three parallel pg16/17/18 jobs for the same commit — a signature of pre-existing environment/timing flakiness (tests mint namespace/backup ids at minute granularity) rather than a deterministic regression caused by this dependency bump. No in-scope code change was found that would address this, so no fix was applied.

No commit was pushed. Suggested next step: a human needs to make the fix


Attempt 1 of 2 · model: global.anthropic.claude-sonnet-5

@renovate
renovate Bot force-pushed the renovate/charset-normalizer-3.x branch from a6c5147 to 0ee2f15 Compare October 26, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-agent-attempted ai-agent-blocked dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants