From patchwork Mon Jan 29 13:41:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 7505 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4TNqGJ3xjTz3xPl for ; Mon, 29 Jan 2024 13:41:44 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4TNqGG5vKxz7Nq; Mon, 29 Jan 2024 13:41:42 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4TNqGG3vmQz32hL; Mon, 29 Jan 2024 13:41:42 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4TNqG02N9hz30S9 for ; Mon, 29 Jan 2024 13:41:28 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4TNqG00tCJzkc; Mon, 29 Jan 2024 13:41:28 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1706535688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mOsXQ/mdQB62S79IeqkcP8qjK3KzXKJ/FKQuA0AhWAw=; b=eiE2d6T3rSa+ZcdsBqxRdt/MC6UQlzr0NYjOiQ48G0NjBXm+Vp1ZWvDV3C9tsWPK8+N3bo fpRSZD3P3fk4FpBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1706535688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mOsXQ/mdQB62S79IeqkcP8qjK3KzXKJ/FKQuA0AhWAw=; b=hesQcCzl1SXP71Or3OQ2Xm2Zhjq+aSOt8GVePmFDYWPl7Ve5OPxj5M48HtOi3f3y3g+Ztk eBZ8A20fxGZYVto6euDpa2ISQRdHry44lRzLn7CiFc3mS2YSDUO62L+xUJsxRZviqdysxN DJj5AI2SkxYGHucU+PYi2eikPwnpSU09PN3yO+xBRPeUNXD4uXJEOHgIOrGxEAa0iy7cRN OqvLInxtf2Wok54mFVE3cAD5gba8qRSIb9VnT9+tb36haZp/Hj3C+YdyMVp+mjfdHILzwO 01X502QB4nhYnD3ztc0/sLoaX2l0YGfa9RgITvH+AzZ/Wa4LJlDhCR8sWuO/4w== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 11/15] python3-exceptiongroup: Update to version 1.2.0 Date: Mon, 29 Jan 2024 14:41:16 +0100 Message-ID: <20240129134120.3269534-11-adolf.belka@ipfire.org> In-Reply-To: <20240129134120.3269534-1-adolf.belka@ipfire.org> References: <20240129134120.3269534-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: M6SICNDM7JILXGTQHE2QYSZCAF75USIN X-Message-ID-Hash: M6SICNDM7JILXGTQHE2QYSZCAF75USIN X-MailFrom: adolf.belka@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: - Updated from version 1.1.0 to 1.2.0 - Update of rootfile - Changelog 1.2.0 Added special monkeypatching if Apport has overridden sys.excepthook so it will format exception groups correctly (PR by John Litborn) Added a backport of contextlib.suppress() from Python 3.12.1 which also handles suppressing exceptions inside exception groups Fixed bare raise in a handler reraising the original naked exception rather than an exception group which is what is raised when you do a raise in an except* handler 1.1.3 catch() now raises a TypeError if passed an async exception handler instead of just giving a RuntimeWarning about the coroutine never being awaited. (#66, PR by John Litborn) Fixed plain raise statement in an exception handler callback to work like a raise in an except* block Fixed new exception group not being chained to the original exception when raising an exception group from exceptions raised in handler callbacks Fixed type annotations of the derive(), subgroup() and split() methods to match the ones in typeshed 1.1.2 Changed handling of exceptions in exception group handler callbacks to not wrap a single exception in an exception group, as per CPython issue 103590 1.1.1 Worked around CPython issue #98778, urllib.error.HTTPError(..., fp=None) raises KeyError on unknown attribute access, on affected Python versions. (PR by Zac Hatfield-Dodds) Tested-by: Adolf Belka Signed-off-by: Adolf Belka --- .../rootfiles/packages/python3-exceptiongroup | 17 +++++++++-------- lfs/python3-exceptiongroup | 8 ++++---- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/config/rootfiles/packages/python3-exceptiongroup b/config/rootfiles/packages/python3-exceptiongroup index 0ed2ae1f5..08e10c3b9 100644 --- a/config/rootfiles/packages/python3-exceptiongroup +++ b/config/rootfiles/packages/python3-exceptiongroup @@ -1,15 +1,16 @@ usr/lib/python3.10/site-packages/exceptiongroup -#usr/lib/python3.10/site-packages/exceptiongroup-1.1.1.dist-info -#usr/lib/python3.10/site-packages/exceptiongroup-1.1.1.dist-info/INSTALLER -#usr/lib/python3.10/site-packages/exceptiongroup-1.1.1.dist-info/LICENSE -#usr/lib/python3.10/site-packages/exceptiongroup-1.1.1.dist-info/METADATA -#usr/lib/python3.10/site-packages/exceptiongroup-1.1.1.dist-info/RECORD -#usr/lib/python3.10/site-packages/exceptiongroup-1.1.1.dist-info/REQUESTED -#usr/lib/python3.10/site-packages/exceptiongroup-1.1.1.dist-info/WHEEL -#usr/lib/python3.10/site-packages/exceptiongroup-1.1.1.dist-info/direct_url.json +#usr/lib/python3.10/site-packages/exceptiongroup-1.2.0.dist-info +#usr/lib/python3.10/site-packages/exceptiongroup-1.2.0.dist-info/INSTALLER +#usr/lib/python3.10/site-packages/exceptiongroup-1.2.0.dist-info/LICENSE +#usr/lib/python3.10/site-packages/exceptiongroup-1.2.0.dist-info/METADATA +#usr/lib/python3.10/site-packages/exceptiongroup-1.2.0.dist-info/RECORD +#usr/lib/python3.10/site-packages/exceptiongroup-1.2.0.dist-info/REQUESTED +#usr/lib/python3.10/site-packages/exceptiongroup-1.2.0.dist-info/WHEEL +#usr/lib/python3.10/site-packages/exceptiongroup-1.2.0.dist-info/direct_url.json usr/lib/python3.10/site-packages/exceptiongroup/__init__.py usr/lib/python3.10/site-packages/exceptiongroup/_catch.py usr/lib/python3.10/site-packages/exceptiongroup/_exceptions.py usr/lib/python3.10/site-packages/exceptiongroup/_formatting.py +usr/lib/python3.10/site-packages/exceptiongroup/_suppress.py usr/lib/python3.10/site-packages/exceptiongroup/_version.py usr/lib/python3.10/site-packages/exceptiongroup/py.typed diff --git a/lfs/python3-exceptiongroup b/lfs/python3-exceptiongroup index f1de6bb6f..067b42f14 100644 --- a/lfs/python3-exceptiongroup +++ b/lfs/python3-exceptiongroup @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2023 IPFire Team # +# Copyright (C) 2007-2024 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,7 +24,7 @@ include Config -VER = 1.1.1 +VER = 1.2.0 SUMMARY = This is a backport of the BaseExceptionGroup and ExceptionGroup classes from Python 3.11. THISAPP = exceptiongroup-$(VER) @@ -33,7 +33,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = python3-exceptiongroup -PAK_VER = 1 +PAK_VER = 2 DEPS = @@ -47,7 +47,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_BLAKE2 = c396d1e1ab15265e06d76d11e6cbbff5c4e52284f890d727aab65d0ab40fcd17e3db8827ba4bba6b34d13f66606ca34ac8bcc361dd4aecf9afe624d5001de327 +$(DL_FILE)_BLAKE2 = 4f3b5505c9c6e229eae52fda1e2dc957ada9e44eb8da8f2a8c62315ee93a1e2129005d0b4a1a7f3bbc2a1448e89929fdaf6ee59a40c8aefb44104c5e330d5ac9 install : $(TARGET)