mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/pikepdf: Enable py3.13
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
26
dev-python/pikepdf/files/pikepdf-9.0.0-py313.patch
Normal file
26
dev-python/pikepdf/files/pikepdf-9.0.0-py313.patch
Normal file
@@ -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']
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user