From d46d2caa25a0de13bec29f7393a98f6c557469d4 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Wed, 27 Mar 2024 10:03:27 +0200 Subject: python3-typeguard: Upgrade 4.1.5 -> 4.2.1 Upgrade to version 4.2.1: - Fixed missing typing_extensions dependency for Python 3.12 - Fixed deprecation warning in the test suite on Python 3.13 - Added support for specifying options for the pytest plugin via pytest config files - Avoid creating reference cycles when type checking unions - Fixed Optional[...] being removed from the AST if it was located within a subscript - Fixed TypedDict from typing_extensions not being recognized as one - Fixed typing types (dict[str, int], List[str], etc.) not passing checks against type or Type - Fixed detection of optional fields (NotRequired[...]) in TypedDict when using forward references - Fixed mapping checks against Django's MultiValueDict Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- .../python/python3-typeguard_4.1.5.bb | 37 -------------------- .../python/python3-typeguard_4.2.1.bb | 39 ++++++++++++++++++++++ 2 files changed, 39 insertions(+), 37 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-typeguard_4.1.5.bb create mode 100644 meta-python/recipes-devtools/python/python3-typeguard_4.2.1.bb (limited to 'meta-python/recipes-devtools') diff --git a/meta-python/recipes-devtools/python/python3-typeguard_4.1.5.bb b/meta-python/recipes-devtools/python/python3-typeguard_4.1.5.bb deleted file mode 100644 index 1e9f6685db..0000000000 --- a/meta-python/recipes-devtools/python/python3-typeguard_4.1.5.bb +++ /dev/null @@ -1,37 +0,0 @@ -SUMMARY = "Run-time type checker for Python" -HOMEPAGE = "https://pypi.org/project/typeguard/" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=f0e423eea5c91e7aa21bdb70184b3e53" - -SRC_URI[sha256sum] = "ea0a113bbc111bcffc90789ebb215625c963411f7096a7e9062d4e4630c155fd" - -inherit pypi python_setuptools_build_meta ptest - -SRC_URI += " \ - file://run-ptest \ -" - -RDEPENDS:${PN} += " \ - python3-compression \ - python3-unittest \ -" - -RDEPENDS:${PN}-ptest += " \ - python3-pytest \ - python3-typing-extensions \ - python3-unittest-automake-output \ - python3-unixadmin \ - python3-mypy \ -" - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ -} - -DEPENDS += "\ - python3-distutils-extra-native \ - python3-setuptools-scm-native \ -" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-devtools/python/python3-typeguard_4.2.1.bb b/meta-python/recipes-devtools/python/python3-typeguard_4.2.1.bb new file mode 100644 index 0000000000..e0e84df28a --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-typeguard_4.2.1.bb @@ -0,0 +1,39 @@ +SUMMARY = "Run-time type checker for Python" +HOMEPAGE = "https://pypi.org/project/typeguard/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f0e423eea5c91e7aa21bdb70184b3e53" + +SRC_URI[sha256sum] = "c556a1b95948230510070ca53fa0341fb0964611bd05d598d87fb52115d65fee" + +inherit pypi python_setuptools_build_meta ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN} += " \ + python3-core \ + python3-compression \ + python3-unittest \ + python3-typing-extensions \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-typing-extensions \ + python3-unittest-automake-output \ + python3-unixadmin \ + python3-mypy \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +DEPENDS += "\ + python3-distutils-extra-native \ + python3-setuptools-scm-native \ +" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf