diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-26 07:51:38 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-26 07:51:38 +0000 |
| commit | e3ddd048de394edb051db0108114146f0c21ed46 (patch) | |
| tree | 02031eb6f64184d02f128877d46f1002848b8a19 | |
| parent | d5037b6ab316ad95494858e299aeb8ec453509f6 (diff) | |
automatic import of python-exceptiongroupopeneuler24.03_LTS_SP4
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | exceptiongroup.spec | 81 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 83 insertions, 0 deletions
@@ -0,0 +1 @@ +/exceptiongroup-1.2.2.tar.gz diff --git a/exceptiongroup.spec b/exceptiongroup.spec new file mode 100644 index 0000000..b93dd42 --- /dev/null +++ b/exceptiongroup.spec @@ -0,0 +1,81 @@ +# topdir: exceptiongroup-1.2.2 (produced by tar --transform on git clone) +# Build backend: flit_scm (combines flit-core + setuptools_scm for dynamic version) +# SETUPTOOLS_SCM_PRETEND_VERSION forces version since .git is excluded from tarball +%global _empty_manifest_terminate_build 0 +%global pypi_name exceptiongroup +%global _description %{expand: +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. + +See the standard library documentation for more information on exception +groups.} + +Name: python-%{pypi_name} +Version: 1.2.2 +Release: 1%{?dist} +Summary: Backport of the BaseExceptionGroup and ExceptionGroup classes from Python 3.11. + +License: MIT +URL: https://github.com/agronholm/exceptiongroup +Source0: https://github.com/agronholm/exceptiongroup/archive/refs/tags/%{version}/%{pypi_name}-%{version}.tar.gz + +BuildArch: noarch + +%description %_description + +%package -n python3-%{pypi_name} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-editables +BuildRequires: python3-flit-core +BuildRequires: python3-flit-scm +BuildRequires: pyproject-rpm-macros + +%description -n python3-%{pypi_name} %_description + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} +%pyproject_build + +%install +export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} +%pyproject_install + +%files -n python3-%{pypi_name} +%doc README.rst +%license LICENSE +%{python3_sitelib}/%{pypi_name}*.dist-info/ +%{python3_sitelib}/%{pypi_name}/ + +%changelog +* Mon Oct 26 2026 Python_Bot <Python_Bot@openeuler.org> - 1.2.2-1 +- Update package to version 1.2.2 @@ -0,0 +1 @@ +e2adc43658dc7e4cfede294285d83460 exceptiongroup-1.2.2.tar.gz |
