forked from pool/python-exceptiongroup
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
This commit is contained in:
@@ -26,8 +26,9 @@
|
||||
%bcond_with test
|
||||
%define psuffix %{nil}
|
||||
%endif
|
||||
|
||||
Name: python-exceptiongroup%{psuffix}
|
||||
Version: 1.0.4
|
||||
Version: 1.1.0
|
||||
Release: 0
|
||||
Summary: Backport of PEP 654 (exception groups)
|
||||
License: MIT AND Python-2.0
|
||||
@@ -37,6 +38,7 @@ 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
|
||||
@@ -74,6 +76,7 @@ and the exception hook won't be installed.
|
||||
%prep
|
||||
%setup -q -n exceptiongroup-%{version}
|
||||
|
||||
%if !%{with test}
|
||||
%build
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||
%pyproject_wheel
|
||||
@@ -81,15 +84,19 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||
%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
|
||||
%{python_sitelib}/exceptiongroup-%{version}.dist-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user