18 Commits

Author SHA1 Message Date
Alexandru Ardelean
684e738cab python3-chardet: update to 7.4.1
Update package to 7.4.1.

Changes since 7.2.0:

7.3.0:
- License changed from MIT to 0BSD (no attribution required)
- New mime_type field in all detection results -- identifies binary and text
  file types via magic number matching (40+ formats supported)
- Performance: 4 additional modules compiled with mypyc; per-file detection
  capped at 16 KB (worst-case time: 62ms -> 26ms)
- Added riscv64 prebuilt wheel support
- Bug fix: null-separated ASCII data was misdetected as UTF-16-BE

7.4.0:
- Accuracy improved from 98.6% to 99.3%; speed improved with new dense
  zlib-compressed model format (cold start: ~75ms -> ~13ms with mypyc)
- Training data overhauled: added MADLAD-400 and Wikipedia sources,
  eliminated train/test overlap, samples increased from 15K to 25K per
  language/encoding pair
- Bug fix: dedicated structural analyzers added for CP932, CP949, and
  Big5-HKSCS (previously sharing base encoding byte-range analyzer)

7.4.1:
- Bug fix: BOM-prefixed UTF-16/32 input now correctly returns utf-16/utf-32
  instead of endian-specific variants (utf-16-le/utf-16-be/etc.), which
  previously caused a stray U+FEFF character at the start of decoded text

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-04-11 12:56:34 +03:00
Alexandru Ardelean
20fbeb8bca python-chardet: bump to 7.2.0
Bump to 7.2.0.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-03-24 06:23:37 +02:00
Alexandru Ardelean
b303f7823f python-chardet: bump to 7.1.0
Changes since 7.0.1:
- Add PEP 263 encoding declaration detection for Python source files
- Improve performance: 5.5x faster first-detect time
- Fix undocumented encoding name changes introduced in 5.x
- Restore backward compatibility for encoding names

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-03-21 21:16:16 +02:00
Alexandru Ardelean
6e014ede19 python-chardet: bump to 7.0.1
Full release notes:
https://github.com/chardet/chardet/releases/tag/7.0.1

Add 'python3-codecs' as dependency. No idea when (or if) this was
ever needed, but it became obvious after test.sh was added.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-03-14 10:22:59 +02:00
Wei-Ting Yang
f7e3317515 treewide: fix licenses
Fix licenses.

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2026-02-19 20:15:36 +02:00
Austin Lane
2201690cd1 python-chardet: fix build (depend on setuptools)
- Properly depend on python-setuptools to fix build failures.

Signed-off-by: Austin Lane <vidplace7@gmail.com>
2025-11-26 15:57:44 +02:00
Austin Lane
7db7fd2aea python-chardet: add hostbuild
Signed-off-by: Austin Lane <vidplace7@gmail.com>
2024-12-09 10:56:30 +02:00
Alexandru Ardelean
40a06febd2 python-chardet: bump to 5.2.0
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2023-09-09 11:27:37 +03:00
Alexandru Ardelean
e897824537 python-chardet: bump to version 5.1.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2023-02-04 18:36:31 +02:00
Alexandru Ardelean
efd57e201d python-chardet: bump to version 5.0.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-07-07 10:35:14 -07:00
Alexandru Ardelean
a03ce5bc72 python-chardet: bump to version 4.0.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2020-12-16 08:44:28 +02:00
Jeffery To
3c36696a56 python-packages: Add usr/bin symlinks without "3" suffix
Previously, binaries installed by Python packages will have a
non-suffixed Python 2 version and a suffixed Python 3 version, e.g. pip
and pip3. With the removal of Python 2, the non-suffixed names are no
longer taken.

This adds symlinks for the non-suffixed names linking to the suffixed
scripts (or in the case of pip, easy_install, and python-config, to the
fully-versioned scripts).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-22 03:57:55 +08:00
Jeffery To
2210c4a60d python-packages: Clean up Makefiles
This removes:

* Python 3 variants (VARIANT:=python3)

* "for Python3" from package titles

* Package selection condition from package dependencies, e.g.
  +PACKAGE_python3-six:python3-light replaced with +python3-light

* "Default" package information sections, e.g.
  Package/python-six/Default removed and package details merged into
  Package/python3-six

* "(Variant for Python3)" from package descriptions

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-22 16:36:55 +08:00
Jeffery To
658b1b6758 python-libraries: Remove Python 2 variants
The Python 2 variants will be added to the abandoned packages feed.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-02 14:57:30 +08:00
Jeffery To
635cb1309c treewide: Use pypi.mk for Python packages
This updates all Python packages that download their source from PyPi to
use pypi.mk.

This will allow future improvements/changes to pypi.mk to affect all
relevant packages.

This also makes it easier for future Python packages to start using
pypi.mk, when it's clear how it is used in existing packages.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-30 23:16:18 +08:00
Jeffery To
6bd527df2e python-chardet: Rename Python 3 script
The Python 2 and 3 versions of chardet both install a script with the
same name (/usr/bin/chardetect). This is the issue identified in #9006
(https://github.com/openwrt/packages/pull/9006#issuecomment-493709812).

This renames the Python 3 script to chardetect3.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-05-25 04:28:53 +08:00
Eneas U de Queiroz
8061b28ea0 python-chardet: fix Makefile typo
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-03-13 14:34:49 -03:00
Karel Kočí
f80fd7e44d python-chardet: add Python3 variant
Signed-off-by: Karel Kočí <karel.koci@nic.cz>
2019-03-11 10:43:37 +01:00