From 8d838b084476a92f6b64ef12ab680f5614ecd263 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Tue, 22 Dec 2020 03:14:58 +0200 Subject: python3-chardet: Upgrade 3.0.4 -> 4.0.0 Upgrade to release 4.0.0: - Single-byte charset probers now use nested dictionaries under the hood, so they are usually a little faster than before. - The CharsetGroupProber class now properly short-circuits when one of the probers in the group is considered a definite match. This lead to a substantial speedup. - There is now a chardet.detect_all function that returns a list of possible encodings for the input with associated confidences. - Support for Python 2.6, 3.4, and 3.5 was dropped as they are all past end-of-life. Signed-off-by: Leon Anavi Acked-by: Trevor Gamblin Signed-off-by: Khem Raj --- .../python/python3-chardet_3.0.4.bb | 24 ---------------------- .../python/python3-chardet_4.0.0.bb | 23 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 24 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-chardet_3.0.4.bb create mode 100644 meta-python/recipes-devtools/python/python3-chardet_4.0.0.bb (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python3-chardet_3.0.4.bb b/meta-python/recipes-devtools/python/python3-chardet_3.0.4.bb deleted file mode 100644 index 80785b8d4e..0000000000 --- a/meta-python/recipes-devtools/python/python3-chardet_3.0.4.bb +++ /dev/null @@ -1,24 +0,0 @@ -SUMMARY = "Universal encoding detector for Python 2 and 3" -LICENSE = "LGPL-2.1" -LIC_FILES_CHKSUM = "file://LICENSE;md5=a6f89e2100d9b6cdffcea4f398e37343" - -SRC_URI[md5sum] = "7dd1ba7f9c77e32351b0a0cfacf4055c" -SRC_URI[sha256sum] = "84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae" - -# setup.py of chardet needs this. -DEPENDS += "${PYTHON_PN}-pytest-runner-native" - -inherit pypi setuptools3 - -PACKAGES =+ "${PN}-cli" -FILES_${PN}-cli += " \ - ${PYTHON_SITEPACKAGES_DIR}/chardet/cli \ -" - -RDEPENDS_${PN}-cli = "${PN} " - -RDEPENDS_${PN}_class-target += " \ - ${PYTHON_PN}-logging \ -" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-devtools/python/python3-chardet_4.0.0.bb b/meta-python/recipes-devtools/python/python3-chardet_4.0.0.bb new file mode 100644 index 0000000000..4caf33cb25 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-chardet_4.0.0.bb @@ -0,0 +1,23 @@ +SUMMARY = "Universal encoding detector for Python 2 and 3" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a6f89e2100d9b6cdffcea4f398e37343" + +SRC_URI[sha256sum] = "0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa" + +# setup.py of chardet needs this. +DEPENDS += "${PYTHON_PN}-pytest-runner-native" + +inherit pypi setuptools3 + +PACKAGES =+ "${PN}-cli" +FILES_${PN}-cli += " \ + ${PYTHON_SITEPACKAGES_DIR}/chardet/cli \ +" + +RDEPENDS_${PN}-cli = "${PN} " + +RDEPENDS_${PN}_class-target += " \ + ${PYTHON_PN}-logging \ +" + +BBCLASSEXTEND = "native nativesdk" -- cgit 1.2.3-korg