BSD Ports

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

SystemPortVersion
MidnightBSDdevel/py-exceptiongroup1.2.1_1
FreeBSDdevel/py-exceptiongroup1.3.1
OpenBSDdevel/py-exceptiongroup1.3.1p0
NetBSDdevel/py-exceptiongroup1.3.1
DragonFlydevel/py-exceptiongroup1.2.2
HardenedBSDdevel/py-exceptiongroup1.3.1
GhostBSDdevel/py-exceptiongroup1.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

Build dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
exceptiongroup-1.2.1.tar.gz28717a4785e48b045528f5bfe627b6ad554ff32def154f42372786903b7abcfe1aa16
Master sites 1
  • PYPI