Skip to contentSkip to conversation

python3-humanize: upgrade 4.4.0 -> 4.7.0

PATCH New Trevor Gamblin 1 participant 2 messages Jul 24, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-humanize: upgrade 4.4.0 -> 4.7.0

humanize moved to hatchling as a build backend, so adjust the recipe to match.

Changelog: https://github.com/python-humanize/humanize/releases

---
 .../{python3-humanize_4.4.0.bb => python3-humanize_4.7.0.bb} | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-humanize_4.4.0.bb => python3-humanize_4.7.0.bb} (71%)
meta-python/recipes-devtools/python/python3-humanize_4.7.0.bb renamed from meta-python/recipes-devtools/python/python3-humanize_4.4.0.bb +3 -2
similarity index 71%
rename from meta-python/recipes-devtools/python/python3-humanize_4.4.0.bb
rename to meta-python/recipes-devtools/python/python3-humanize_4.7.0.bb
index 7bb03b75f2..81654af875 100644
@@ -5,12 +5,13 @@ SECTION = "devel/python"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENCE;md5=4ecc42519e84f6f3e23529464df7bd1d"
 
-SRC_URI[sha256sum] = "efb2584565cc86b7ea87a977a15066de34cdedaf341b11c851cfcfd2b964779c"
+SRC_URI[sha256sum] = "7ca0e43e870981fa684acb5b062deb307218193bca1a01f2b2676479df849b3a"
 
-inherit pypi python_setuptools_build_meta
+inherit pypi python_hatchling
 
 DEPENDS += "\
     ${PYTHON_PN}-setuptools-scm-native \
+    ${PYTHON_PN}-hatch-vcs-native \
 "
 
 RDEPENDS:${PN} += "\
Signature · 1 line
2.41.0
#1 lore raw

PATCH 2/2 python3-mypy, python3-mypy-extensions: remove

While attempting to upgrade mypy and mypy-extensions, it was discovered that it depends on new modules, some of which have no maintenance plan in place, e.g.: https://pypi.org/project/types-typed-ast/

Since this is something we want to avoid adding to the ecosystem and mypy isn't a dependency for anything else in meta-python, remove the recipes.

---
 .../python/python3-mypy-extensions_0.4.3.bb   | 12 ----------
 .../python/python3-mypy_0.971.bb              | 23 -------------------
 2 files changed, 35 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb
 delete mode 100644 meta-python/recipes-devtools/python/python3-mypy_0.971.bb
meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb deleted +0 -12
deleted file mode 100644
index 83ac5362d6..0000000000
@@ -1,12 +0,0 @@
-SUMMARY = "Experimental type system extensions for programs checked with the mypy typechecker"
-HOMEPAGE = "https://github.com/python/mypy_extensions"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=0fe3219e2470a78c0d1837019b8b426e"
-
-PYPI_PACKAGE = "mypy_extensions"
-
-inherit pypi setuptools3
-
-SRC_URI[sha256sum] = "2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8"
-
-BBCLASSEXTEND = "native"
meta-python/recipes-devtools/python/python3-mypy_0.971.bb deleted +0 -23
deleted file mode 100644
index 31fcb06c9e..0000000000
@@ -1,23 +0,0 @@
-SUMMARY = "Optional static typing for Python 3 and 2 (PEP 484)"
-HOMEPAGE = "https://github.com/python/mypy"
-LICENSE = "MIT & Python-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=6ba8ec528da02073b7e1f4124c0f836f"
-
-PYPI_PACKAGE = "mypy"
-
-inherit pypi python_setuptools_build_meta
-
-SRC_URI[sha256sum] = "40b0f21484238269ae6a57200c807d80debc6459d444c0489a102d7c6a75fa56"
-
-BBCLASSEXTEND = "native"
-
-RDEPENDS:${PN} += " \
-    ${PYTHON_PN}-mypy-extensions \
-    ${PYTHON_PN}-typed-ast \
-    ${PYTHON_PN}-typing-extensions \
-    ${PYTHON_PN}-json \
-    ${PYTHON_PN}-compression \
-    ${PYTHON_PN}-pprint \
-    ${PYTHON_PN}-difflib \
-    ${PYTHON_PN}-toml \
-"
Signature · 1 line
2.41.0