summaryrefslogtreecommitdiff
path: root/dev-python/pikepdf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-29 08:00:25 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-29 08:00:25 +0100
commitd855918b46ba8714cf1320fe63b55fd0ed1748a6 (patch)
tree4d7d0e86122a07796a660310d507f93e1b7747b9 /dev-python/pikepdf
parentb8325835c82367d22428eb41afa0f2d375338d3c (diff)
gentoo auto-resync : 29:06:2024 - 08:00:25
Diffstat (limited to 'dev-python/pikepdf')
-rw-r--r--dev-python/pikepdf/Manifest3
-rw-r--r--dev-python/pikepdf/files/pikepdf-9.0.0-py313.patch26
-rw-r--r--dev-python/pikepdf/pikepdf-9.0.0.ebuild14
3 files changed, 39 insertions, 4 deletions
diff --git a/dev-python/pikepdf/Manifest b/dev-python/pikepdf/Manifest
index a0a441e92102..bfcceb6ea185 100644
--- a/dev-python/pikepdf/Manifest
+++ b/dev-python/pikepdf/Manifest
@@ -1,3 +1,4 @@
+AUX pikepdf-9.0.0-py313.patch 881 BLAKE2B 4975d95cdffe2874a9c8e85a80e3906935b5a92ee935713fbdc3fc794cd603902984dc513fcc1ac38070f78579d037e534689cd43bef9ab11d44569270f24660 SHA512 4d43874e79e6b7a88299519e0b496db70d07968a388d012000a03f5bf53f15f9d1a539f64d6e150f9921bfc2bfc98e5c45ffb91e3c3a6b35130a0fe7ce1d2925
DIST pikepdf-8.11.2.tar.gz 2870263 BLAKE2B 6cf3666baca5d20b125efc3f6d8cfe7f96b9334b8a39da67fe3f4185f41232d8a18bf902f21bfe33e4259b7fb61e7dc462a247c76bf4564a3bdf0ea987119d91 SHA512 57bf5d16aaf9367eef9407f7f406a5ee74f2060d276ab861379c74c2193d02b2e3cca0925ee29813791bb36fae8dbbba4a9b16a7f4c2d19c67c21bbe7bb3f80f
DIST pikepdf-8.14.0.tar.gz 2870612 BLAKE2B be0fd5a8d48fccc7695c45acc28cbda8252529d0687197c261e077e8c3a63e3597e504bf2aae2ab09648c0f127228d517bfa630ed77ea90bc28c8f3463854779 SHA512 f0e073df952cd850e0529fa798743a09f249a998450be1393b109b21850cf86b80c8813b55db778dc4e265df48af7619fccfac30ec9195c3ac724b8c7724e858
DIST pikepdf-8.15.1.tar.gz 2870723 BLAKE2B 958bb2a417e2f1c9e5e4448b47cdadffb10e82841cc8173503881a86e92e85c05f800a8ad6936f32ee53e6f7a8cd62ee9e28e251de1f32a7cdce055139ec5fa3 SHA512 ae6b0b8bdf7e395943caf503f1d498861bd2719185e6382a522b8c0d4e38413a1b070e912367852bc5735d29b8453d05c57ff384ede825830722470445a534f6
@@ -7,5 +8,5 @@ EBUILD pikepdf-8.11.2-r1.ebuild 1731 BLAKE2B 91700e32086a03e75469137f0fb3e274bfb
EBUILD pikepdf-8.14.0-r1.ebuild 1732 BLAKE2B 9b5b7f80f737a410c8909b068403fe314ac5eee0e6fadcdd1dce1c60283188e39f61cc3484bcd972dba64747674a3f0adf06487a58d45b3fdd263f5e2f8e1e93 SHA512 0faa15815c04cd3b60584fcd421c19ef0e2688311ea051916456bb19ccaab2b0d950d1095f752615bfa818703ad24541eab8d7b91263569761f7a2f6b1fa0809
EBUILD pikepdf-8.15.1-r1.ebuild 1829 BLAKE2B 3d6a77e3f8934c2902e669307dff6ba003bc0cf9f0bef5f1e9fe7255c477dc67a548ad6f836f1d0e133c7d254dbb65de597c7388a31fffe619a2e5ebfbf0938f SHA512 da843f22d717fb2d2815a0e8620c7f20e3ac317be63de75d72026fa9eabce8bef70b79a534812e38206b4e28aec1cfbaf5da388c81c36d66e36b0938b9b57097
EBUILD pikepdf-8.4.1-r1.ebuild 1627 BLAKE2B 721f4410738d2c5d43de3d0923654a657a21da7950ecf7f47bfb918d647fe3cfa39725451ef0431a80480114e62bf3c6d941f0f8f03418c1c5a0b979049f6b72 SHA512 c6850e079ae3baff68fcb5ee0bdbac6fb60985ca3026084c5cb94f17d884531261f12ecfc24a043b61bc652205ac22dd2cf7c1359a39f84ae6f087666ad7b3ce
-EBUILD pikepdf-9.0.0.ebuild 1831 BLAKE2B 11cb7a28782c4c40aefa281b236078975c047e131fb0b06dd2cc33190d4becbeb3825e442674e5ad3daf98050d1742f9a2d841a3c1e772b6378f1c0df32dd295 SHA512 fe68849534d3e2cab17a65052b7d05493cb3bc8b76d85592e8050dde501921a4290b0f32d5a9fd9038e48e7892b3a40c6630ecb7497f73885f8ddc980405495c
+EBUILD pikepdf-9.0.0.ebuild 2073 BLAKE2B b344d8d1b7e60f47ceb882079054665412f20d5edcc8c8f8bf1cc98db252b4aec48d24d77d3ccb92483268d3e9b7d53099265dd6ddca5429a24ed98b6d929593 SHA512 06759b8cdb78b6655bddeb1313bf99d951a591ad323957bf6b32066f49fb8794acf1e169ac1d6c9a3da024b9a20948b3cf945b8ffe877939f35f6b33873601a8
MISC metadata.xml 687 BLAKE2B 07c94d9dac5323202f955fd9c1e5a6fc78518a0a6f703c54c73b70e774900c41a4823beb3f8be7068d83878d1e60df0d7e30efd53bbc1ba31019477de82b092f SHA512 1be3ec00342e8079363db0c57f75ae88bd05e873869fbbb27442e9fe98eb6917c55b4eaf03ed22c4c44ca3aec9b84839cbc254202460a3266bbc42ff8f0f84b3
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..0ffb2c3ac36f 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
@@ -17,7 +17,7 @@ HOMEPAGE="
LICENSE="MPL-2.0"
SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~s390 ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86"
IUSE="big-endian"
# Check QPDF_MIN_VERSION in pyproject.toml on bumps, as well as
@@ -58,11 +58,19 @@ distutils_enable_tests pytest
EPYTEST_DESELECT=(
# fragile to system load
tests/test_image_access.py::test_random_image
+ tests/test_image_access.py::test_image_save_compare
+ tests/test_image_access.py::test_palette_nonrgb
)
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() {