diff --git a/info.yml b/info.yml index d454553..96d32d5 100644 --- a/info.yml +++ b/info.yml @@ -1,7 +1,7 @@ name: python-typing_extensions description: Backported and experimental type hints for Python -version: 4.15.0 -revision: 2 +version: 4.16.0 +revision: 1 license: Python-2.0.1 maintainers: - enumdev@enumerated.dev @@ -20,4 +20,4 @@ downloads: - url: https://github.com/python/typing_extensions/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: 40e4fd945fb070e470976538741ee85add33de5e8ab2f1583e9e264d8386916b + checksum: 4d569f4d4bcd3d26345e0d92cfd14ce1f1302cac2f62a5a7e337c06fb0fdc1ea diff --git a/recipe.sh b/recipe.sh index acef0d3..0cd3fc3 100644 --- a/recipe.sh +++ b/recipe.sh @@ -2,13 +2,6 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -# The prepare function is executed in the root of the temp directory -# This function is used for putting downloaded files to the correct location or applying patches -prepare() { - cd "$BPM_SOURCE" - patch -Np1 -i "$BPM_WORKDIR"/fix-test-on-python-3.14.patch -} - # The build function is executed in the source directory # This function is used to compile the source code build() { diff --git a/source-files/fix-test-on-python-3.14.patch b/source-files/fix-test-on-python-3.14.patch deleted file mode 100644 index 4108118..0000000 --- a/source-files/fix-test-on-python-3.14.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 16cc1566a6a4b8e729e8b91e1a4e6a31526823a0 Mon Sep 17 00:00:00 2001 -From: Jelle Zijlstra -Date: Fri, 19 Sep 2025 07:22:40 -0700 -Subject: [PATCH] fix test on 3.14 (#683) - ---- - src/test_typing_extensions.py | 8 ++++++-- - 1 file changed, 6 insertions(+), 2 deletions(-) - -diff --git a/src/test_typing_extensions.py b/src/test_typing_extensions.py -index 27f4059c..f07e1eb0 100644 ---- a/src/test_typing_extensions.py -+++ b/src/test_typing_extensions.py -@@ -4508,8 +4508,12 @@ def _make_td(future, class_name, annos, base, extra_names=None): - child = _make_td( - child_future, "Child", {"child": "int"}, "Base", {"Base": base} - ) -- base_anno = typing.ForwardRef("int", module="builtins") if base_future else int -- child_anno = typing.ForwardRef("int", module="builtins") if child_future else int -+ if sys.version_info >= (3, 14): -+ base_anno = typing.ForwardRef("int", module="builtins", owner=base) if base_future else int -+ child_anno = typing.ForwardRef("int", module="builtins", owner=child) if child_future else int -+ else: -+ base_anno = typing.ForwardRef("int", module="builtins") if base_future else int -+ child_anno = typing.ForwardRef("int", module="builtins") if child_future else int - self.assertEqual(base.__annotations__, {'base': base_anno}) - self.assertEqual( - child.__annotations__, {'child': child_anno, 'base': base_anno}