Commit Graph

14 Commits

Author SHA256 Message Date
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
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
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
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
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
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
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
Markéta Machová
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