1
0

25 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
d464606f62 Accepting request 1169658 from devel:languages:python
- Fix tests with python 3.12.3, bsc#1223128
- update to 1.2.1:
  * Updated the copying of __notes__ to match CPython behavior
  * Corrected the type annotation of the exception handler
    callback to accept a BaseExceptionGroup instead of
    BaseException
  * Fixed type errors on Python < 3.10 and the type annotation of
    suppress()

OBS-URL: https://build.opensuse.org/request/show/1169658
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-exceptiongroup?expand=0&rev=8
2024-04-23 16:55:09 +00:00
044c974452 - update to 1.2.1:
* Updated the copying of __notes__ to match CPython behavior
  * Corrected the type annotation of the exception handler
    callback to accept a BaseExceptionGroup instead of
    BaseException
  * Fixed type errors on Python < 3.10 and the type annotation of
    suppress()

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=21
2024-04-20 14:09:00 +00:00
ed81958f82 Accepting request 1129176 from devel:languages:python
- update to 1.2.0:
  * Added special monkeypatching if `Apport
    <https://github.com/canonical/apport>`_ has
    overridden ``sys.excepthook`` so it will format exception
    groups correctly
  * Added a backport of ``contextlib.suppress()`` from Python
    3.12.1 which also handles suppressing exceptions inside
    exception groups
  * Fixed bare ``raise`` in a handler reraising the original
    naked exception rather than an exception group which is what
    is raised when you do a ``raise`` in an ``except*`` handler
  * ``catch()`` now raises a ``TypeError`` if passed an async
    exception handler instead of just giving a ``RuntimeWarning``
    about the coroutine never being awaited.
  * Fixed plain ``raise`` statement in an exception handler
    callback to work like a ``raise`` in an ``except*`` block
  * Fixed new exception group not being chained to the original
    exception when raising an exception group from exceptions
    raised in handler callbacks
  * Fixed type annotations of the ``derive()``, ``subgroup()``
    and ``split()`` methods to match the ones in typeshed
- drop skip-test_catch_handler_raises-for-older-311.patch
  (upstream)

- Add skip-test_catch_handler_raises-for-older-311.patch

OBS-URL: https://build.opensuse.org/request/show/1129176
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-exceptiongroup?expand=0&rev=7
2023-11-28 21:18:26 +00:00
cc196127b8 - update to 1.2.0:
* Added special monkeypatching if `Apport
    <https://github.com/canonical/apport>`_ has
    overridden ``sys.excepthook`` so it will format exception
    groups correctly
  * Added a backport of ``contextlib.suppress()`` from Python
    3.12.1 which also handles suppressing exceptions inside
    exception groups
  * Fixed bare ``raise`` in a handler reraising the original
    naked exception rather than an exception group which is what
    is raised when you do a ``raise`` in an ``except*`` handler
  * ``catch()`` now raises a ``TypeError`` if passed an async
    exception handler instead of just giving a ``RuntimeWarning``
    about the coroutine never being awaited.
  * Fixed plain ``raise`` statement in an exception handler
    callback to work like a ``raise`` in an ``except*`` block
  * Fixed new exception group not being chained to the original
    exception when raising an exception group from exceptions
    raised in handler callbacks
  * Fixed type annotations of the ``derive()``, ``subgroup()``
    and ``split()`` methods to match the ones in typeshed
- drop skip-test_catch_handler_raises-for-older-311.patch
  (upstream)
- Add skip-test_catch_handler_raises-for-older-311.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=19
2023-11-27 15:45:13 +00:00
26b832b505 Accepting request 1096944 from devel:languages:python
- Update to 1.1.2:
  - Changed handling of exceptions in exception group handler
    callbacks to not wrap a single exception in an exception
    group, as per CPython issue gh#python/cpython#103590.
- Add skip-test_catch_handler_raises-for-older-311.patch 
  (gh#agronholm/exceptiongroup#64).

OBS-URL: https://build.opensuse.org/request/show/1096944
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-exceptiongroup?expand=0&rev=6
2023-07-06 16:27:49 +00:00
1b0987a52d - Add skip-test_catch_handler_raises-for-older-311.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=17
2023-07-05 10:24:03 +00:00
1c894e8e0f - Skip still failing test_catch_handler_raises
(gh#agronholm/exceptiongroup#64).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=16
2023-07-05 05:29:00 +00:00
48c9f9aa16 REmove unnecessary patch.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=15
2023-07-04 23:45:07 +00:00
75be636421 - Add 64_handl_embed_excep.patch fixing
gh#agronholm/exceptiongroup#64.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=14
2023-07-04 23:39:40 +00:00
48c7731673 - Update to 1.1.2:
- Changed handling of exceptions in exception group handler
    callbacks to not wrap a single exception in an exception
    group, as per CPython issue gh#python/cpython#103590.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=13
2023-07-04 22:34:59 +00:00
36d32f1802 Accepting request 1081932 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081932
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-exceptiongroup?expand=0&rev=5
2023-04-22 20:01:08 +00:00
9b6fed2b98 Accepting request 1081400 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081400
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=11
2023-04-21 14:41:12 +00:00
828cba25ca Accepting request 1071876 from devel:languages:python
- update to 1.1.1:
  * Worked around `CPython issue #98778
    ``urllib.error.HTTPError(..., fp=None)`` raises
    ``KeyError`` on unknown attribute access, on affected
    Python versions.

OBS-URL: https://build.opensuse.org/request/show/1071876
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-exceptiongroup?expand=0&rev=4
2023-03-17 16:02:05 +00:00
a4ea5e96de - update to 1.1.1:
* Worked around `CPython issue #98778
    ``urllib.error.HTTPError(..., fp=None)`` raises
    ``KeyError`` on unknown attribute access, on affected
    Python versions.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=9
2023-03-14 22:20:42 +00:00
2b2b1a1323 Accepting request 1045050 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1045050
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-exceptiongroup?expand=0&rev=3
2023-01-06 16:04:40 +00:00
f487522a7e Accepting request 1045038 from home:bnavigator:branches:devel:languages:python
- Update to 1.1.0
  * Backported upstream fix for gh-99553 (custom subclasses of
    BaseExceptionGroup that also inherit from Exception should not
    be able to wrap base exceptions)
  * Moved all initialization code to __new__() (thus matching
    Python 3.11 behavior)
- Fix multibuild

OBS-URL: https://build.opensuse.org/request/show/1045038
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=7
2022-12-23 16:15:56 +00:00
ce7d00b003 - split tests into multibuild to solve cycle with pytest
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=6
2022-12-19 10:09:00 +00:00
e433759168 Accepting request 1039279 from home:ojkastl_buildservice:Branch_devel_languages_python
update to 1.0.4

OBS-URL: https://build.opensuse.org/request/show/1039279
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=5
2022-12-02 10:48:41 +00:00
28e701243d Accepting request 1031409 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1031409
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-exceptiongroup?expand=0&rev=2
2022-10-28 17:28:53 +00:00
9028e3df74 Accepting request 1031397 from home:mcepl:branches:devel:languages:python:Factory
- The package actually builds with Python 3.11.

OBS-URL: https://build.opensuse.org/request/show/1031397
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=3
2022-10-26 21:25:04 +00:00
2a802a46f2 Accepting request 1009421 from devel:languages:python
Pre-release version required by hypothesis

OBS-URL: https://build.opensuse.org/request/show/1009421
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-exceptiongroup?expand=0&rev=1
2022-10-12 16:23:39 +00:00
e18a2b0738 Accepting request 1009195 from home:bnavigator:branches:devel:languages:python
(spec-cleaner supersede)
required by hypothesis 6.56

OBS-URL: https://build.opensuse.org/request/show/1009195
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=1
2022-10-10 13:00:21 +00:00
6 changed files with 48 additions and 8 deletions

View File

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

Binary file not shown.

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,21 @@
-------------------------------------------------------------------
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>

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