public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pikepdf/, dev-python/pikepdf/files/
Date: Fri, 28 Jun 2024 06:07:52 +0000 (UTC)	[thread overview]
Message-ID: <1719554524.fb1ab190d38b0626ea02eb8f6268be9250c87fd3.mgorny@gentoo> (raw)

commit:     fb1ab190d38b0626ea02eb8f6268be9250c87fd3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 28 06:02:04 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> 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 <mgorny <AT> 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 <quantum.analyst@gmail.com>
+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() {


             reply	other threads:[~2024-06-28  6:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-28  6:07 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-29 16:29 [gentoo-commits] repo/gentoo:master commit in: dev-python/pikepdf/, dev-python/pikepdf/files/ Michał Górny
2020-01-13 16:14 Andrey Grozin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1719554524.fb1ab190d38b0626ea02eb8f6268be9250c87fd3.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox