From 6b0c0e246a910c18b316db1f4527c03a581dc43a Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 1 Sep 2025 14:06:18 +0300 Subject: python3-charset-normalizer: Upgrade 3.4.2 -> 3.4.3 Upgrade to release 3.4.3: - mypy(c) is no longer a required dependency at build time if CHARSET_NORMALIZER_USE_MYPYC isn't set to 1. - automatically lower confidence on small bytes samples that are not Unicode in detect output legacy function. - Custom build backend to overcome inability to mark mypy as an optional dependency in the build phase. - Support for Python 3.14 - sdist archive contained useless directories. - automatically fallback on valid UTF-16 or UTF-32 even if the md says it's noisy. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- ...01-pyproject.toml-Update-mypy-requirement.patch | 28 ---------------------- .../python/python3-charset-normalizer_3.4.2.bb | 26 -------------------- .../python/python3-charset-normalizer_3.4.3.bb | 25 +++++++++++++++++++ 3 files changed, 25 insertions(+), 54 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-Update-mypy-requirement.patch delete mode 100644 meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.3.bb diff --git a/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-Update-mypy-requirement.patch b/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-Update-mypy-requirement.patch deleted file mode 100644 index 44b5283359..0000000000 --- a/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-Update-mypy-requirement.patch +++ /dev/null @@ -1,28 +0,0 @@ -From ee56a688a46a2abc2ca46c061898b27b44fb9602 Mon Sep 17 00:00:00 2001 -From: Leon Anavi -Date: Thu, 17 Jul 2025 16:23:58 +0300 -Subject: [PATCH] pyproject.toml: Update mypy requirement - -Updates the requirements on mypy to permit the latest version. - -Upstream-Status: Submitted [https://github.com/jawah/charset_normalizer/pull/632] - -Signed-off-by: Leon Anavi ---- - pyproject.toml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyproject.toml b/pyproject.toml -index e7f052a..3a75dc1 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -1,5 +1,5 @@ - [build-system] --requires = ["setuptools", "setuptools-scm", "mypy>=1.4.1,<=1.15.0"] -+requires = ["setuptools", "setuptools-scm", "mypy>=1.4.1,<=1.17.0"] - build-backend = "setuptools.build_meta" - - [project] --- -2.39.5 - diff --git a/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.2.bb b/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.2.bb deleted file mode 100644 index e98f823247..0000000000 --- a/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.2.bb +++ /dev/null @@ -1,26 +0,0 @@ -SUMMARY = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." -HOMEPAGE = "https://github.com/ousret/charset_normalizer" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=48178f3fc1374ad7e830412f812bde05" - -SRC_URI += "file://0001-pyproject.toml-Update-mypy-requirement.patch" - -SRC_URI[sha256sum] = "5baececa9ecba31eff645232d59845c07aa030f0c81ee70184a90d35099a0e63" - -DEPENDS += "python3-setuptools-scm-native python3-mypy-native" - -inherit pypi python_setuptools_build_meta ptest-python-pytest - -PYPI_PACKAGE = "charset_normalizer" -UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" - -RDEPENDS:${PN} += " \ - python3-core \ - python3-logging \ - python3-mypy \ - python3-codecs \ - python3-json \ -" - -RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-charmap-gb18030 glibc-charmaps" -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.3.bb b/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.3.bb new file mode 100644 index 0000000000..c257e1fb2a --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.3.bb @@ -0,0 +1,25 @@ +SUMMARY = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." +HOMEPAGE = "https://github.com/ousret/charset_normalizer" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=48178f3fc1374ad7e830412f812bde05" + +#SRC_URI += "file://0001-pyproject.toml-Update-mypy-requirement.patch" + +SRC_URI[sha256sum] = "6fce4b8500244f6fcb71465d4a4930d132ba9ab8e71a7859e6a5d59851068d14" + +DEPENDS += "python3-setuptools-scm-native python3-mypy-native" + +inherit pypi python_setuptools_build_meta ptest-python-pytest + +PYPI_PACKAGE = "charset_normalizer" +UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" + +RDEPENDS:${PN} += " \ + python3-core \ + python3-logging \ + python3-codecs \ + python3-json \ +" + +RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-charmap-gb18030 glibc-charmaps" +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf