14
0

4 Commits

Author SHA256 Message Date
a5bfd9d499 Accepting request 1303587 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1303587
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-exceptiongroup?expand=0&rev=10
2025-09-11 12:38:13 +00:00
b1d38e674d - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=25
2025-09-10 09:15:34 +00:00
2ae8d4dd95 Accepting request 1189790 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1189790
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-exceptiongroup?expand=0&rev=9
2024-07-28 15:18:58 +00:00
572efa6ac7 - Update to 1.2.2
* Removed an ``assert`` in ``exceptiongroup._formatting``
    that caused compatibility issues with Sentry (#123)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=23
2024-07-26 13:29:04 +00:00
5 changed files with 55 additions and 5 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b59b2c0cee4423a01ca6dba773efac4dd6390e3908e36ed222d683ce827c8f3b
size 28203

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7af03131ce1ad5177a6e449b7dc36aa9148bb9103654542a7217f5842a4df551
size 29197

23
py314.patch Normal file
View File

@@ -0,0 +1,23 @@
From a0da94dadfb39c0b52c0cd5c87ace166b00f74c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= <alex.gronholm@nextday.fi>
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

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Mon Sep 8 14:14:36 UTC 2025 - Markéta Machová <mmachova@suse.com>
- 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 <adrian.glaubitz@suse.com>
- Update to 1.2.2
* Removed an ``assert`` in ``exceptiongroup._formatting``
that caused compatibility issues with Sentry (#123)
-------------------------------------------------------------------
Sat Apr 20 14:08:38 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -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.1
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}