From 63f8bab3dbb44647a0325a23c7e697e187d95046 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 25 Nov 2024 15:32:00 +0200 Subject: python3-typeguard: Upgrade 4.3.0 -> 4.4.1 Upgrade to release 4.4.1: - Dropped Python 3.8 support - Changed the signature of typeguard_ignore() to be compatible with typing.no_type_check() - Avoid creating reference cycles when type checking uniontypes and classes - Fixed checking of variable assignments involving tuple unpacking - Fixed TypeError when checking a class against type[Self] - Fixed checking of protocols on the class level (against type[SomeProtocol]) - Fixed Self checks in instance/class methods that have positional-only arguments - Fixed explicit checks of PEP 604 unions against types.UnionType - Fixed checks against annotations wrapped in NotRequired not being run unless the NotRequired is a forward reference Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- .../python/python3-typeguard_4.3.0.bb | 39 ---------------------- .../python/python3-typeguard_4.4.1.bb | 39 ++++++++++++++++++++++ 2 files changed, 39 insertions(+), 39 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-typeguard_4.3.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-typeguard_4.4.1.bb (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python3-typeguard_4.3.0.bb b/meta-python/recipes-devtools/python/python3-typeguard_4.3.0.bb deleted file mode 100644 index 3f6acdd8e7..0000000000 --- a/meta-python/recipes-devtools/python/python3-typeguard_4.3.0.bb +++ /dev/null @@ -1,39 +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] = "92ee6a0aec9135181eae6067ebd617fd9de8d75d714fb548728a4933b1dea651" - -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" diff --git a/meta-python/recipes-devtools/python/python3-typeguard_4.4.1.bb b/meta-python/recipes-devtools/python/python3-typeguard_4.4.1.bb new file mode 100644 index 0000000000..8b2604e4a2 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-typeguard_4.4.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] = "0d22a89d00b453b47c49875f42b6601b961757541a2e1e0ef517b6e24213c21b" + +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