2024-04-20 16:09:00 +02:00
-------------------------------------------------------------------
Sat Apr 20 14:08:38 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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()
2023-11-27 16:45:13 +01:00
-------------------------------------------------------------------
Mon Nov 27 15:43:56 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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)
2023-07-05 00:34:59 +02:00
-------------------------------------------------------------------
Tue Jul 4 22:32:27 UTC 2023 - Matej Cepl <mcepl@suse.com>
- 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.
2023-11-27 16:45:13 +01:00
- Add skip-test_catch_handler_raises-for-older-311.patch
2023-07-05 07:29:00 +02:00
(gh#agronholm/exceptiongroup#64).
2023-07-05 00:34:59 +02:00
2023-04-21 16:41:12 +02:00
-------------------------------------------------------------------
Fri Apr 21 12:24:46 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:41:07 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
2023-03-14 23:20:42 +01:00
-------------------------------------------------------------------
Tue Mar 14 22:18:18 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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.
2022-12-23 17:15:56 +01:00
-------------------------------------------------------------------
Fri Dec 23 15:24:56 UTC 2022 - Ben Greiner <code@bnavigator.de>
- 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
2022-12-19 11:09:00 +01:00
-------------------------------------------------------------------
Mon Dec 19 10:08:40 UTC 2022 - Dirk Müller <dmueller@suse.com>
- split tests into multibuild to solve cycle with pytest
2022-12-02 11:48:41 +01:00
-------------------------------------------------------------------
Thu Dec 1 09:42:08 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
- update to 1.0.4:
* Fixed regression introduced in v1.0.3 where the code computing the suggestions would assume that both the obj attribute of AttributeError is always available, even though this is only true from Python 3.10 onwards (#43; PR by Carl Friedrich Bolz-Tereick)
- update to 1.0.3:
* Fixed monkey patching breaking suggestions (on a NameError or AttributeError) on Python 3.10 (#41; PR by Carl Friedrich Bolz-Tereick)
- update to 1.0.2:
* Updated type annotations to match the ones in typeshed
- update to 1.0.1:
* Fixed formatted traceback missing exceptions beyond 2 nesting levels of __context__ or __cause__
- update to 1.0.0:
* Fixed AttributeError: 'PatchedTracebackException' object has no attribute '__cause__' on Python 3.10 (only) when a traceback is printed from an exception where an exception group is set as the cause (#33)
* Fixed a loop in exception groups being rendered incorrectly (#35)
* Fixed the patched formatting functions (format_exception()``etc.) not passing the ``compact=True flag on Python 3.10 like the original functions do
2022-10-26 23:25:04 +02:00
-------------------------------------------------------------------
Wed Oct 26 19:53:01 UTC 2022 - Matej Cepl <mcepl@suse.com>
- The package actually builds with Python 3.11.
2022-10-10 15:00:21 +02:00
-------------------------------------------------------------------
Sun Oct 9 19:54:31 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Initial specfile for v 1.0.0rc9
- Pre-release version required by hypothesis