devel/py-exceptiongroup 1.2.1_1 MidnightBSD
Backport of PEP 654 (exception groups)
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel, python
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)
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.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/py-exceptiongroup | 1.2.1_1 |
| FreeBSD | devel/py-exceptiongroup | 1.3.1 |
| OpenBSD | devel/py-exceptiongroup | 1.3.1p0 |
| NetBSD | devel/py-exceptiongroup | 1.3.1 |
| DragonFly | devel/py-exceptiongroup | 1.2.2 |
| HardenedBSD | devel/py-exceptiongroup | 1.3.1 |
| GhostBSD | devel/py-exceptiongroup | 1.3.1 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}exceptiongroup
From mports:
cd /usr/mports/devel/py-exceptiongroup && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}exceptiongroup>0:devel/py-exceptiongroup
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}flit-scm>=0: devel/py-flit-scm
Build dependencies 1
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| exceptiongroup-1.2.1.tar.gz | 28717 | a4785e48b045528f5bfe627b6ad554ff32def154f42372786903b7abcfe1aa16 |
Master sites 1
- PYPI