From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5649D15802E for ; Fri, 28 Jun 2024 06:07:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5BD81E2A4B; Fri, 28 Jun 2024 06:07:55 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 207FAE2A4B for ; Fri, 28 Jun 2024 06:07:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5321433BEE9 for ; Fri, 28 Jun 2024 06:07:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B0D6F1D7F for ; Fri, 28 Jun 2024 06:07:52 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1719554524.fb1ab190d38b0626ea02eb8f6268be9250c87fd3.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pikepdf/, dev-python/pikepdf/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pikepdf/files/pikepdf-9.0.0-py313.patch dev-python/pikepdf/pikepdf-9.0.0.ebuild X-VCS-Directories: dev-python/pikepdf/ dev-python/pikepdf/files/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: fb1ab190d38b0626ea02eb8f6268be9250c87fd3 X-VCS-Branch: master Date: Fri, 28 Jun 2024 06:07:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d258b082-683d-4e2e-a370-2f6e749fcb46 X-Archives-Hash: fd4186715a1408b105193b7d733d9cd6 commit: fb1ab190d38b0626ea02eb8f6268be9250c87fd3 Author: Michał Górny gentoo org> AuthorDate: Fri Jun 28 06:02:04 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jun 28 06:02:04 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb1ab190 dev-python/pikepdf: Enable py3.13 Signed-off-by: Michał Górny gentoo.org> dev-python/pikepdf/files/pikepdf-9.0.0-py313.patch | 26 ++++++++++++++++++++++ dev-python/pikepdf/pikepdf-9.0.0.ebuild | 10 +++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/dev-python/pikepdf/files/pikepdf-9.0.0-py313.patch b/dev-python/pikepdf/files/pikepdf-9.0.0-py313.patch new file mode 100644 index 000000000000..d0415daec69c --- /dev/null +++ b/dev-python/pikepdf/files/pikepdf-9.0.0-py313.patch @@ -0,0 +1,26 @@ +From 6831e87bb94322b7ca53964a57ba575861b5916c Mon Sep 17 00:00:00 2001 +From: Elliott Sales de Andrade +Date: Wed, 19 Jun 2024 18:35:06 -0400 +Subject: [PATCH] Fix tests with Python 3.13 + +The exception message changed to: +``` +property '' of 'Page' object has no deleter +``` +--- + tests/test_page.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_page.py b/tests/test_page.py +index 3e5cc345..05455a93 100644 +--- a/tests/test_page.py ++++ b/tests/test_page.py +@@ -293,7 +293,7 @@ def test_page_attrs(graph): + + del graph.pages[0].Resources + with pytest.raises( +- AttributeError, match=r"can't delete|property of 'Page' object has no deleter" ++ AttributeError, match=r"can't delete|property( '')? of 'Page' object has no deleter" + ): + del graph.pages[0].obj + del graph.pages[0]['/Contents'] diff --git a/dev-python/pikepdf/pikepdf-9.0.0.ebuild b/dev-python/pikepdf/pikepdf-9.0.0.ebuild index 490090b99521..25bc51f36140 100644 --- a/dev-python/pikepdf/pikepdf-9.0.0.ebuild +++ b/dev-python/pikepdf/pikepdf-9.0.0.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} pypy3 ) +PYTHON_COMPAT=( python3_{10..13} pypy3 ) inherit distutils-r1 pypi @@ -61,8 +61,14 @@ EPYTEST_DESELECT=( ) src_prepare() { - sed -e '/-n auto/d' -i pyproject.toml || die + local PATCHES=( + # https://github.com/pikepdf/pikepdf/commit/6831e87bb94322b7ca53964a57ba575861b5916c + "${FILESDIR}/${P}-py313.patch" + ) + distutils-r1_src_prepare + + sed -e '/-n auto/d' -i pyproject.toml || die } python_test() {