diff --git a/exceptiongroup-1.2.2-gh.tar.gz b/exceptiongroup-1.2.2-gh.tar.gz deleted file mode 100644 index f80a51e..0000000 --- a/exceptiongroup-1.2.2-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f001cc7f3c1c89ccbff903f6ecd0880429d2d923c466f643d4bc2225d6af18b8 -size 28364 diff --git a/exceptiongroup-1.3.0-gh.tar.gz b/exceptiongroup-1.3.0-gh.tar.gz new file mode 100644 index 0000000..7f8dd31 --- /dev/null +++ b/exceptiongroup-1.3.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7af03131ce1ad5177a6e449b7dc36aa9148bb9103654542a7217f5842a4df551 +size 29197 diff --git a/py314.patch b/py314.patch new file mode 100644 index 0000000..6ffac60 --- /dev/null +++ b/py314.patch @@ -0,0 +1,23 @@ +From a0da94dadfb39c0b52c0cd5c87ace166b00f74c1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= +Date: Sat, 31 May 2025 12:36:46 +0300 +Subject: [PATCH] Fixed test failures on Python 3.14 + +Fixes #148. +--- + tests/test_exceptions.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py +index 2edcfcd..e2bc81a 100644 +--- a/tests/test_exceptions.py ++++ b/tests/test_exceptions.py +@@ -374,7 +374,7 @@ def test_basics_split_by_predicate__match(self): + class DeepRecursionInSplitAndSubgroup(unittest.TestCase): + def make_deep_eg(self): + e = TypeError(1) +- for _ in range(10000): ++ for _ in range(150_000): + e = ExceptionGroup("eg", [e]) + return e + diff --git a/python-exceptiongroup.changes b/python-exceptiongroup.changes index 115b0d9..c3778de 100644 --- a/python-exceptiongroup.changes +++ b/python-exceptiongroup.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Mon Sep 8 14:14:36 UTC 2025 - Markéta Machová + +- Update to 1.3.0 + * Added **kwargs to function and method signatures as appropriate + to match the signatures in the standard library + * In line with the stdlib typings in typeshed, updated + (Base)ExceptionGroup generic types to define defaults for their + generic arguments (defaulting to BaseExceptionGroup[BaseException] + and ExceptionGroup[Exception]) + * Changed BaseExceptionGroup.__init__() to directly call + BaseException.__init__() instead of the superclass __init__() + in order to emulate the CPython behavior (broken or not) + * Changed the exceptions attribute to always return the same tuple + of exceptions, created from the original exceptions sequence + passed to BaseExceptionGroup to match CPython behavior +- Add py314.patch to fix tests on Python 3.14 + ------------------------------------------------------------------- Fri Jul 26 11:42:55 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-exceptiongroup.spec b/python-exceptiongroup.spec index 580c4eb..ea8d09c 100644 --- a/python-exceptiongroup.spec +++ b/python-exceptiongroup.spec @@ -1,7 +1,7 @@ # # spec file for package python-exceptiongroup # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,12 +29,14 @@ %{?sle15_python_module_pythons} Name: python-exceptiongroup%{psuffix} -Version: 1.2.2 +Version: 1.3.0 Release: 0 Summary: Backport of PEP 654 (exception groups) License: MIT AND Python-2.0 URL: https://github.com/agronholm/exceptiongroup Source: https://github.com/agronholm/exceptiongroup/archive/refs/tags/%{version}.tar.gz#/exceptiongroup-%{version}-gh.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/agronholm/exceptiongroup/commit/a0da94dadfb39c0b52c0cd5c87ace166b00f74c1 Fixed test failures on Python 3.14 +Patch0: py314.patch BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module flit-scm} BuildRequires: %{python_module pip}