From f487522a7e68ca4146b9000c415b58d69ccce9432acf137d08d9b118f1bce241 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 23 Dec 2022 16:15:56 +0000 Subject: [PATCH] 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 --- _service | 4 ---- exceptiongroup-1.0.4-gh.tar.gz | 3 --- exceptiongroup-1.1.0-gh.tar.gz | 3 +++ python-exceptiongroup.changes | 11 +++++++++++ python-exceptiongroup.spec | 11 +++++++++-- 5 files changed, 23 insertions(+), 9 deletions(-) delete mode 100644 _service delete mode 100644 exceptiongroup-1.0.4-gh.tar.gz create mode 100644 exceptiongroup-1.1.0-gh.tar.gz diff --git a/_service b/_service deleted file mode 100644 index 1bd86b8..0000000 --- a/_service +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/exceptiongroup-1.0.4-gh.tar.gz b/exceptiongroup-1.0.4-gh.tar.gz deleted file mode 100644 index 9a3f552..0000000 --- a/exceptiongroup-1.0.4-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:69e8a2ddd1b03175ca2c43f474bb1e7eb5074afadf73e63e9c905cdee1a82a6b -size 22529 diff --git a/exceptiongroup-1.1.0-gh.tar.gz b/exceptiongroup-1.1.0-gh.tar.gz new file mode 100644 index 0000000..326ca76 --- /dev/null +++ b/exceptiongroup-1.1.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9036aa671fa6fcd0f40ee80f9f373697c3501fb66ac0dbec3bce50baeda81e1d +size 22724 diff --git a/python-exceptiongroup.changes b/python-exceptiongroup.changes index d0802cc..3ec7e84 100644 --- a/python-exceptiongroup.changes +++ b/python-exceptiongroup.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Fri Dec 23 15:24:56 UTC 2022 - Ben Greiner + +- 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 diff --git a/python-exceptiongroup.spec b/python-exceptiongroup.spec index 75d883f..fa386c8 100644 --- a/python-exceptiongroup.spec +++ b/python-exceptiongroup.spec @@ -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