From 9b0015577ce8717086ff1e4667638a81a3a5ebe4 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 10 Apr 2025 00:07:24 -0700 Subject: python3-charset-normalizer: Switch to PEP-517 build backends Add ptest support but do not enable them as they all do not pass yet Signed-off-by: Khem Raj --- ...001-pyproject.toml-Relax-version-for-mypy.patch | 25 ++++++++++++++++++++++ .../python/python3-charset-normalizer_3.4.1.bb | 7 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-Relax-version-for-mypy.patch (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-Relax-version-for-mypy.patch b/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-Relax-version-for-mypy.patch new file mode 100644 index 0000000000..d544caaa17 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-Relax-version-for-mypy.patch @@ -0,0 +1,25 @@ +From 57b626d6d8c247c9203dde51a988b9401abe065c Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 9 Apr 2025 23:44:44 -0700 +Subject: [PATCH] pyproject.toml: Relax version for mypy + +It asks for mypy <= 1.14.0 but we have 1.15.x +already in meta-python + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index bbb8227..ad42715 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools", "setuptools-scm", "mypy>=1.4.1,<=1.14.0"] ++requires = ["setuptools", "setuptools-scm", "mypy>=1.4.1,<=1.16.0"] + build-backend = "setuptools.build_meta" + + [project] diff --git a/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.1.bb b/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.1.bb index b13524c227..4f9b09ef93 100644 --- a/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.1.bb +++ b/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.1.bb @@ -3,9 +3,12 @@ HOMEPAGE = "https://github.com/ousret/charset_normalizer" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=48178f3fc1374ad7e830412f812bde05" +SRC_URI += "file://0001-pyproject.toml-Relax-version-for-mypy.patch" SRC_URI[sha256sum] = "44251f18cd68a75b56585dd00dae26183e102cd5e0f9f1466e6df5da2ed64ea3" -inherit pypi setuptools3 +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}" @@ -13,8 +16,10 @@ 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" -- cgit v1.2.3-54-g00ecf