From nobody Thu Jun 16 19:38:56 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E2C9B844DC2; Thu, 16 Jun 2022 19:38:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LPCCh65lsz574B; Thu, 16 Jun 2022 19:38:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655408336; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V3dkuMtnM5uRD5d7CvcVSu8fDWUmWG6Yq+hkhY171wA=; b=ogZwvJ2WngyZFXa1uO4pp1muqksBp39LDtTAU/pz2NoFOv9465e4Y0TUYXKNjo9Mzbdrq8 eOS8hBUIUcjWJ1/0GkBHMlqFBHvtun2JpgteXckNEYsshQzxBACkFFCAez+VBrO08W4fnO 32huQf+P5llKbCtGYpv9R89DZsZvd50YKuRkmDsl3MgHRLRVsBSKVIP3Ffowd/EXpY3YQ/ BIdez0z4d45ynGQYbY/5Axttal9PRry1Xh815UsnKiJ5N2MEg3y7gj0mFYbIaGQwIw6A6m P3Cj4iVkbYceqtFvnXdKGWHlfk6Ihts2J0E0X8uT5m2SsUrohrDclaOPUFOgeA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B1B2A11894; Thu, 16 Jun 2022 19:38:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25GJcuMm063815; Thu, 16 Jun 2022 19:38:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25GJcuJb063814; Thu, 16 Jun 2022 19:38:56 GMT (envelope-from git) Date: Thu, 16 Jun 2022 19:38:56 GMT Message-Id: <202206161938.25GJcuJb063814@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 989a4b109689 - main - devel/py-exceptiongroup: Add py-exceptiongroup 1.0.0rc8 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 989a4b1096890f1759c8032b1e43fe6bac94ec61 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655408336; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V3dkuMtnM5uRD5d7CvcVSu8fDWUmWG6Yq+hkhY171wA=; b=MXcZuq94KPrPYGKx5rW8v6e1ufX43D3Tg4zOnsesa/feVdzafKvKXFSHfXAg/WReYzJayg C4lKppnjPIScqLT36iTkEdlv4DO0sPJHHcrUgHcjOcCYBhbx6L39pSqNxs0RXgspu/ubnH kbzGCwii9aXR0bMygxp81PHQXqpoYUpHoN/XtA9lrsGe0zGwudix0chCVH2o5/ptFeZ4S3 xP3bJyeppgK+Q488QMVeyZM+5tu9TeZ7zGPulkjiEMfwxvemZ09HjiM5cE3IsSUTsLsCZI FWSuy+ARpqXjHgWtay/WOtaFjPHpxdT0kwkhp+bR/OPn/sSXP9FltGC2maIS4A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655408336; a=rsa-sha256; cv=none; b=Un7t22xV0POBaJQvLbxKGtYYRHKqg4UEbm9UdmSkyFnERUY9cgY0Yx8xkkrFLLnxOtx5M7 m8X0l97evN+tQJYytyCSKo+RLep4LSfhYEb20ndUNdnjcPNLmZW3sxB+cwUDMrfs4Ohpnp cvNQMjKVYwrzAkCUncFFAwg4HKQZLniEdOrpmWumNzc1S41g7W3C79KBe9v+wHK6bTc2ea n1wEqdrcMix12OJ+hNNevZjWVL9VFtescGpreeog4+WxBnT7cTF1gnDOOGjtsMui5WlznR AmjfGk9Iiv5+qbwZC64IhlBnu0pxBgAJ6jmqDmJVWtqgTG/0XGPHWs98uOZ3/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=989a4b1096890f1759c8032b1e43fe6bac94ec61 commit 989a4b1096890f1759c8032b1e43fe6bac94ec61 Author: Po-Chuan Hsieh AuthorDate: 2022-06-16 19:30:52 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-06-16 19:30:52 +0000 devel/py-exceptiongroup: Add py-exceptiongroup 1.0.0rc8 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. WWW: https://github.com/agronholm/exceptiongroup --- devel/Makefile | 1 + devel/py-exceptiongroup/Makefile | 23 +++++++++++++++++++++++ devel/py-exceptiongroup/distinfo | 3 +++ devel/py-exceptiongroup/files/setup.py | 29 +++++++++++++++++++++++++++++ devel/py-exceptiongroup/pkg-descr | 19 +++++++++++++++++++ 5 files changed, 75 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 64422a8a4ffc..bccd4c6c1003 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4534,6 +4534,7 @@ SUBDIR += py-eventlib SUBDIR += py-ewmh SUBDIR += py-exam + SUBDIR += py-exceptiongroup SUBDIR += py-executing SUBDIR += py-expiringdict SUBDIR += py-extras diff --git a/devel/py-exceptiongroup/Makefile b/devel/py-exceptiongroup/Makefile new file mode 100644 index 000000000000..f9c20d4e2164 --- /dev/null +++ b/devel/py-exceptiongroup/Makefile @@ -0,0 +1,23 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= exceptiongroup +PORTVERSION= 1.0.0rc8 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Backport of PEP 654 (exception groups) + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +post-patch: + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + +.include diff --git a/devel/py-exceptiongroup/distinfo b/devel/py-exceptiongroup/distinfo new file mode 100644 index 000000000000..cd29667b2f2b --- /dev/null +++ b/devel/py-exceptiongroup/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1655398642 +SHA256 (exceptiongroup-1.0.0rc8.tar.gz) = 6990c24f06b8d33c8065cfe43e5e8a4bfa384e0358be036af9cc60b6321bd11a +SIZE (exceptiongroup-1.0.0rc8.tar.gz) = 11299 diff --git a/devel/py-exceptiongroup/files/setup.py b/devel/py-exceptiongroup/files/setup.py new file mode 100644 index 000000000000..00fe7e9866ad --- /dev/null +++ b/devel/py-exceptiongroup/files/setup.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python +# setup.py generated by flit for tools that don't yet use PEP 517 + +from distutils.core import setup + +packages = \ +['exceptiongroup'] + +package_data = \ +{'': ['*']} + +package_dir = \ +{'': 'src'} + +extras_require = \ +{'test': ['pytest >= 6']} + +setup(name='exceptiongroup', + version='%%PORTVERSION%%', + description='Backport of PEP 654 (exception groups)', + author=None, + author_email='Alex Grönholm ', + url=None, + packages=packages, + package_data=package_data, + package_dir=package_dir, + extras_require=extras_require, + python_requires='>=3.7', + ) diff --git a/devel/py-exceptiongroup/pkg-descr b/devel/py-exceptiongroup/pkg-descr new file mode 100644 index 000000000000..78040b7ee13c --- /dev/null +++ b/devel/py-exceptiongroup/pkg-descr @@ -0,0 +1,19 @@ +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. + +WWW: https://github.com/agronholm/exceptiongroup