You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cyclonedx-bom 7.4.0 requires Chardet below 6, so it cannot resolve alongside a Chardet 7 requirement.
Proposed solution
Admit Chardet 7 while preserving Chardet 5 support and excluding Chardet 6. Chardet 6.0.0.post1 returns no encoding for the existing CP1252 requirements fixture, which makes requirements - fall back to UTF-8 and fail.
Alternatives considered
A contiguous range through Chardet 6 is unsuitable because of that observed failure. No decoding change is needed for the tested Chardet 7 releases.
Additional context
The existing tests for requirements on stdin passed with Chardet 7.0.0 and 7.6.0 on Python 3.12, including the CP1252 fixture. These runs used the configured unittest command directly because Tox stopped on an invalid requirement emitted from the unchanged cyclonedx-python-lib union. The Poetry environment's Requests 2.32.5 warned about Chardet 7.
Activity
jkowalleck commentedon Sep 29, 2026
this looks like an interesting improvement.
thank you so much for flagging the outdated
chardet.jkowalleck commentedon Sep 29, 2026
released per https://github.com/CycloneDX/cyclonedx-python/releases/tag/v7.5.0