From df8f6f4978c16dc469894628bebd45c4479d5982 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Wed, 28 Feb 2024 15:32:48 +0800 Subject: python3-typing-extensions: upgrade 4.9.0 -> 4.10.0 Changelog: ============ -Add support for PEP 728, supporting the closed keyword argument and the special __extra_items__ key for TypedDict. -Add support for PEP 742, adding typing_extensions.TypeIs. -Drop runtime error when a read-only TypedDict item overrides a mutable one. Type checkers should still flag this as an error. -Speedup issubclass() checks against simple runtime-checkable protocols by around 6% (backporting python/cpython#112717 -Fix a regression in the implementation of protocols where typing.Protocol classes that were not marked as @runtime_checkable would be unnecessarily introspected, potentially causing exceptions to be raised if the protocol had problematic members. (From OE-Core rev: 91dd6f2878bcdbb6f9ba65927f6c6f981b0b3f1a) Signed-off-by: Wang Mingyu Signed-off-by: Richard Purdie --- .../python/python3-typing-extensions_4.10.0.bb | 24 ++++++++++++++++++++++ .../python/python3-typing-extensions_4.9.0.bb | 24 ---------------------- 2 files changed, 24 insertions(+), 24 deletions(-) create mode 100644 meta/recipes-devtools/python/python3-typing-extensions_4.10.0.bb delete mode 100644 meta/recipes-devtools/python/python3-typing-extensions_4.9.0.bb diff --git a/meta/recipes-devtools/python/python3-typing-extensions_4.10.0.bb b/meta/recipes-devtools/python/python3-typing-extensions_4.10.0.bb new file mode 100644 index 0000000000..8698a80cc5 --- /dev/null +++ b/meta/recipes-devtools/python/python3-typing-extensions_4.10.0.bb @@ -0,0 +1,24 @@ +SUMMARY = "Backported and Experimental Type Hints for Python 3.7+" +DESCRIPTION = "The typing_extensions module serves two related purposes:\ +\ +* Enable use of new type system features on older Python versions. For \ + example, typing.TypeGuard is new in Python 3.10, but typing_extensions \ + allows users on previous Python versions to use it too.\ +* Enable experimentation with new type system PEPs before they are accepted \ + and added to the typing module." +HOMEPAGE = "https://github.com/python/typing_extensions" +BUGTRACKER = "https://github.com/python/typing_extensions/issues" +SECTIONS = "libs" +LICENSE = "PSF-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=fcf6b249c2641540219a727f35d8d2c2" + +# The name on PyPi is slightly different. +PYPI_PACKAGE = "typing_extensions" + +SRC_URI[sha256sum] = "b0abd7c89e8fb96f98db18d86106ff1d90ab692004eb746cf6eda2682f91b3cb" + +inherit pypi python_flit_core + +UPSTREAM_CHECK_REGEX = "/typing-extensions/(?P(\d+[\.\-_]*)+)/" + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-devtools/python/python3-typing-extensions_4.9.0.bb b/meta/recipes-devtools/python/python3-typing-extensions_4.9.0.bb deleted file mode 100644 index 3553c597ac..0000000000 --- a/meta/recipes-devtools/python/python3-typing-extensions_4.9.0.bb +++ /dev/null @@ -1,24 +0,0 @@ -SUMMARY = "Backported and Experimental Type Hints for Python 3.7+" -DESCRIPTION = "The typing_extensions module serves two related purposes:\ -\ -* Enable use of new type system features on older Python versions. For \ - example, typing.TypeGuard is new in Python 3.10, but typing_extensions \ - allows users on previous Python versions to use it too.\ -* Enable experimentation with new type system PEPs before they are accepted \ - and added to the typing module." -HOMEPAGE = "https://github.com/python/typing_extensions" -BUGTRACKER = "https://github.com/python/typing_extensions/issues" -SECTIONS = "libs" -LICENSE = "PSF-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=fcf6b249c2641540219a727f35d8d2c2" - -# The name on PyPi is slightly different. -PYPI_PACKAGE = "typing_extensions" - -SRC_URI[sha256sum] = "23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783" - -inherit pypi python_flit_core - -UPSTREAM_CHECK_REGEX = "/typing-extensions/(?P(\d+[\.\-_]*)+)/" - -BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf