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:
Dirk Mueller 2022-12-23 16:15:56 +00:00 committed by Git OBS Bridge
parent ce7d00b003
commit f487522a7e
5 changed files with 23 additions and 9 deletions

View File

@ -1,4 +0,0 @@
<services>
<service name="download_files" mode="disabled">
</service>
</services>

View File

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

View File

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

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
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>

View File

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