From be496d5b03930e4a79eb82ba671b6cdc861df300 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 1 Aug 2023 15:41:53 +0800 Subject: python3-typeguard: upgrade 4.0.0 -> 4.1.0 Changelog: ========== - Added support for passing a tuple as expected_type to check_type(), making it more of a drop-in replacement for isinstance() - Fixed regression where Literal inside a Union had quotes stripped from its contents, thus typically causing NameError to be raised when run - Fixed handling of typing_extensions.Literal on Python 3.8 and 3.9 when typing_extensions>=4.6.0 is installed - Fixed NameError when generated type checking code references an imported name from a method - Fixed docstrings disappearing from instrumented functions - Fixed @typechecked failing to instrument functions when there are more than one function within the same scope - Fixed frozenset not being checked Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../python/python3-typeguard_4.0.0.bb | 35 ---------------------- .../python/python3-typeguard_4.1.0.bb | 35 ++++++++++++++++++++++ 2 files changed, 35 insertions(+), 35 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-typeguard_4.0.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-typeguard_4.1.0.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-typeguard_4.0.0.bb b/meta-python/recipes-devtools/python/python3-typeguard_4.0.0.bb deleted file mode 100644 index ca17e2b135..0000000000 --- a/meta-python/recipes-devtools/python/python3-typeguard_4.0.0.bb +++ /dev/null @@ -1,35 +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] = "194fb3dbcb06ea9caf7088f3befee014de57961689f9c859ac5239b1ef61d987" - -inherit pypi python_setuptools_build_meta ptest - -SRC_URI += " \ - file://run-ptest \ -" - -RDEPENDS:${PN} += " \ - python3-compression \ - python3-unittest \ -" - -RDEPENDS:${PN}-ptest += " \ - ${PYTHON_PN}-pytest \ - ${PYTHON_PN}-typing-extensions \ - ${PYTHON_PN}-unixadmin \ -" - -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.1.0.bb b/meta-python/recipes-devtools/python/python3-typeguard_4.1.0.bb new file mode 100644 index 0000000000..f64c70a72d --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-typeguard_4.1.0.bb @@ -0,0 +1,35 @@ +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] = "b05a54bb0276eefd28880df42e004a71e699c8081fcb9d0536b2ceb01019f60c" + +inherit pypi python_setuptools_build_meta ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN} += " \ + python3-compression \ + python3-unittest \ +" + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-typing-extensions \ + ${PYTHON_PN}-unixadmin \ +" + +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