Files
bpfire/lfs/python3-exceptiongroup
Adolf Belka c60238f606 python3-exceptiongroup: Update to version 1.2.0
- 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 <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-29 16:03:31 +00:00

96 lines
3.5 KiB
Plaintext

###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2024 IPFire Team <info@ipfire.org> #
# #
# 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 #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = 1.2.0
SUMMARY = This is a backport of the BaseExceptionGroup and ExceptionGroup classes from Python 3.11.
THISAPP = exceptiongroup-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = python3-exceptiongroup
PAK_VER = 2
DEPS =
SERVICES =
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = 4f3b5505c9c6e229eae52fda1e2dc957ada9e44eb8da8f2a8c62315ee93a1e2129005d0b4a1a7f3bbc2a1448e89929fdaf6ee59a40c8aefb44104c5e330d5ac9
install : $(TARGET)
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
download :$(patsubst %,$(DIR_DL)/%,$(objects))
b2 : $(subst %,%_BLAKE2,$(objects))
dist:
@$(PAK)
###############################################################################
# Downloading, checking, b2sum
###############################################################################
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
@$(CHECK)
$(patsubst %,$(DIR_DL)/%,$(objects)) :
@$(LOAD)
$(subst %,%_BLAKE2,$(objects)) :
@$(B2SUM)
###############################################################################
# Installation Details
###############################################################################
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && python3 -m build \
--no-isolation \
--wheel
cd $(DIR_APP) && pip3 install \
--no-build-isolation \
--root="/" \
--no-deps \
--ignore-installed \
dist/*.whl
# remove temp build files in /root/.cache from rootfile
cd $(DIR_APP) && rm -R /root/.cache/
@rm -rf $(DIR_APP)
@$(POSTBUILD)