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
This commit is contained in:
commit
e18a2b0738
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
exceptiongroup-1.0.0rc9-gh.tar.gz
Normal file
3
exceptiongroup-1.0.0rc9-gh.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ddd6f144d7c33f54b9bb6009be2b514416e7c13eb7853d1241d2d82e31212dfd
|
||||||
|
size 19109
|
5
python-exceptiongroup.changes
Normal file
5
python-exceptiongroup.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 9 19:54:31 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Initial specfile for v 1.0.0rc9
|
||||||
|
- Pre-release version required by hypothesis
|
84
python-exceptiongroup.spec
Normal file
84
python-exceptiongroup.spec
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-exceptiongroup
|
||||||
|
#
|
||||||
|
# Copyright (c) 2022 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define pyversion 1.0.0rc9
|
||||||
|
%define skip_python311 1
|
||||||
|
Name: python-exceptiongroup
|
||||||
|
Version: 1.0.0~rc9
|
||||||
|
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
|
||||||
|
BuildRequires: %{python_module base >= 3.7 with %python-base < 3.11}
|
||||||
|
BuildRequires: %{python_module flit-scm}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
This is a backport of the ``BaseExceptionGroup`` and ``ExceptionGroup`` classes from
|
||||||
|
Python 3.11.
|
||||||
|
|
||||||
|
It contains the following:
|
||||||
|
|
||||||
|
* The ``exceptiongroup.BaseExceptionGroup`` and ``exceptiongroup.ExceptionGroup``
|
||||||
|
classes
|
||||||
|
* A utility function (``exceptiongroup.catch()``) for catching exceptions possibly
|
||||||
|
nested in an exception group
|
||||||
|
* Patches to the ``TracebackException`` class that properly formats exception groups
|
||||||
|
(installed on import)
|
||||||
|
* An exception hook that handles formatting of exception groups through
|
||||||
|
``TracebackException`` (installed on import)
|
||||||
|
* Special versions of some of the functions from the ``traceback`` module, modified to
|
||||||
|
correctly handle exception groups even when monkey patching is disabled, or blocked by
|
||||||
|
another custom exception hook:
|
||||||
|
|
||||||
|
* ``traceback.format_exception()``
|
||||||
|
* ``traceback.format_exception_only()``
|
||||||
|
* ``traceback.print_exception()``
|
||||||
|
* ``traceback.print_exc()``
|
||||||
|
|
||||||
|
If this package is imported on Python 3.11 or later, the built-in implementations of the
|
||||||
|
exception group classes are used instead, ``TracebackException`` is not monkey patched
|
||||||
|
and the exception hook won't be installed.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n exceptiongroup-%{pyversion}
|
||||||
|
|
||||||
|
%build
|
||||||
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{pyversion}
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%pytest
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python_sitelib}/exceptiongroup
|
||||||
|
%{python_sitelib}/exceptiongroup-%{pyversion}*-info
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user