diff mbox series

[meta-python,PATCHv2,2/2] python3-charset-normalizer: Update mypy

Message ID 20250717143639.1004847-2-leon.anavi@konsulko.com
State Under Review
Headers show
Series [meta-python,PATCHv2,1/2] python3-mypy: Upgrade 1.15.0 -> 1.17.0 | expand

Commit Message

Leon Anavi July 17, 2025, 2:36 p.m. UTC
Apply a patch to update the requirements on mypy to permit the
latest version.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 ...project.toml-Update-mypy-requirement.patch | 28 +++++++++++++++++++
 .../python3-charset-normalizer_3.4.2.bb       |  2 ++
 2 files changed, 30 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-Update-mypy-requirement.patch
diff mbox series

Patch

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
new file mode 100644
index 0000000000..44b5283359
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-Update-mypy-requirement.patch
@@ -0,0 +1,28 @@ 
+From ee56a688a46a2abc2ca46c061898b27b44fb9602 Mon Sep 17 00:00:00 2001
+From: Leon Anavi <leon.anavi@konsulko.com>
+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 <leon.anavi@konsulko.com>
+---
+ 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
index e62306fff3..e98f823247 100644
--- 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
@@ -3,6 +3,8 @@  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"