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
This commit is contained in:
commit
2b2b1a1323
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ddd6f144d7c33f54b9bb6009be2b514416e7c13eb7853d1241d2d82e31212dfd
|
||||
size 19109
|
3
exceptiongroup-1.1.0-gh.tar.gz
Normal file
3
exceptiongroup-1.1.0-gh.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9036aa671fa6fcd0f40ee80f9f373697c3501fb66ac0dbec3bce50baeda81e1d
|
||||
size 22724
|
@ -1,3 +1,35 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 19 10:08:40 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- split tests into multibuild to solve cycle with pytest
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 26 19:53:01 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package python-exceptiongroup
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
@ -16,18 +16,31 @@
|
||||
#
|
||||
|
||||
|
||||
%define pyversion 1.0.0rc9
|
||||
Name: python-exceptiongroup
|
||||
Version: 1.0.0~rc9
|
||||
# This is not only because of dependency of testsuite, but mostly
|
||||
# because of cyclical dependencies between exceptiongroup and pytest.
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%bcond_without test
|
||||
%define psuffix -test
|
||||
%else
|
||||
%bcond_with test
|
||||
%define psuffix %{nil}
|
||||
%endif
|
||||
|
||||
Name: python-exceptiongroup%{psuffix}
|
||||
Version: 1.1.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/%{pyversion}.tar.gz#/exceptiongroup-%{pyversion}-gh.tar.gz
|
||||
Source: https://github.com/agronholm/exceptiongroup/archive/refs/tags/%{version}.tar.gz#/exceptiongroup-%{version}-gh.tar.gz
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module flit-scm}
|
||||
BuildRequires: %{python_module pip}
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module exceptiongroup = %{version}}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@ -61,23 +74,29 @@ exception group classes are used instead, ``TracebackException`` is not monkey p
|
||||
and the exception hook won't be installed.
|
||||
|
||||
%prep
|
||||
%setup -q -n exceptiongroup-%{pyversion}
|
||||
%setup -q -n exceptiongroup-%{version}
|
||||
|
||||
%if !%{with test}
|
||||
%build
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=%{pyversion}
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/exceptiongroup
|
||||
%{python_sitelib}/exceptiongroup-%{pyversion}*-info
|
||||
%{python_sitelib}/exceptiongroup-%{version}.dist-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user