* [gentoo-commits] repo/gentoo:master commit in: dev-python/pikepdf/, dev-python/pikepdf/files/
@ 2020-01-13 16:14 Andrey Grozin
0 siblings, 0 replies; 3+ messages in thread
From: Andrey Grozin @ 2020-01-13 16:14 UTC (permalink / raw
To: gentoo-commits
commit: a08c97274a3610e3ed0a7c78e4f8c51d712aa63c
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 13 16:12:59 2020 +0000
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Mon Jan 13 16:13:42 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a08c9727
dev-python/pikepdf: ebuild improvements
Thanks to Chris Mayo <aklhfex <AT> gmail.com>
and Marco Genasci <fedeliallalinea <AT> gmail.com>
Closes: https://bugs.gentoo.org/705062
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
dev-python/pikepdf/files/pikepdf-1.8.3-test.patch | 40 +++++++++++++++++++++++
dev-python/pikepdf/pikepdf-1.8.3.ebuild | 37 +++++++++++++++++++--
2 files changed, 75 insertions(+), 2 deletions(-)
diff --git a/dev-python/pikepdf/files/pikepdf-1.8.3-test.patch b/dev-python/pikepdf/files/pikepdf-1.8.3-test.patch
new file mode 100644
index 00000000000..b142980caa7
--- /dev/null
+++ b/dev-python/pikepdf/files/pikepdf-1.8.3-test.patch
@@ -0,0 +1,40 @@
+diff -r -U3 pikepdf-1.8.3.orig/tests/test_object.py pikepdf-1.8.3/tests/test_object.py
+--- pikepdf-1.8.3.orig/tests/test_object.py 2020-01-06 18:30:03.000000000 +0700
++++ pikepdf-1.8.3/tests/test_object.py 2020-01-13 22:43:54.844142512 +0700
+@@ -146,21 +146,21 @@
+ a[-5555] = Name.Foo
+
+
+-def test_stack_depth():
+- a = [42]
+- for _ in range(100):
+- a = [a]
+- rlimit = sys.getrecursionlimit()
+- try:
+- sys.setrecursionlimit(100)
+- with pytest.raises(RecursionError):
+- assert encode(a) == a
+- with pytest.raises(RecursionError):
+- encode(a) == encode(a) # pylint: disable=expression-not-assigned
+- with pytest.raises(RecursionError):
+- repr(a)
+- finally:
+- sys.setrecursionlimit(rlimit) # So other tests are not affected
++#def test_stack_depth():
++# a = [42]
++# for _ in range(100):
++# a = [a]
++# rlimit = sys.getrecursionlimit()
++# try:
++# sys.setrecursionlimit(100)
++# with pytest.raises(RecursionError):
++# assert encode(a) == a
++# with pytest.raises(RecursionError):
++# encode(a) == encode(a) # pylint: disable=expression-not-assigned
++# with pytest.raises(RecursionError):
++# repr(a)
++# finally:
++# sys.setrecursionlimit(rlimit) # So other tests are not affected
+
+
+ def test_bytes():
diff --git a/dev-python/pikepdf/pikepdf-1.8.3.ebuild b/dev-python/pikepdf/pikepdf-1.8.3.ebuild
index 27d20472d7e..03166127d0d 100644
--- a/dev-python/pikepdf/pikepdf-1.8.3.ebuild
+++ b/dev-python/pikepdf/pikepdf-1.8.3.ebuild
@@ -11,8 +11,41 @@ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"
-IUSE=""
+IUSE="test"
RDEPEND="app-text/qpdf
+ dev-python/lxml[${PYTHON_USEDEP}]
dev-python/pybind11[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
- dev-python/setuptools_scm_git_archive[${PYTHON_USEDEP}]"
+ dev-python/setuptools_scm_git_archive[${PYTHON_USEDEP}]
+ test? ( >=dev-python/attrs-19.1.0
+ >=dev-python/hypothesis-4.24
+ <dev-python/hypothesis-5.0
+ >=dev-python/pillow-5.0.0
+ >=dev-python/pytest-4.4.0
+ <dev-python/pytest-5.0.0
+ >=dev-python/pytest-xdist-1.28
+ <dev-python/pytest-xdist-2.0
+ >=dev-python/pytest-helpers-namespace-2019.1.8
+ >=dev-python/pytest-timeout-1.3.3
+ >=dev-python/python-xmp-toolkit-2.0.1 )"
+
+PATCHES=( "${FILESDIR}"/${P}-test.patch )
+
+python_test() {
+ pytest
+}
+
+# When ipythom and matplotlib will get python3_8 support, we'll be able to add
+#
+#IUSE="doc"
+#DEPEND="doc? ( dev-python/ipython
+# dev-python/matplotlib
+# dev-python/sphinx-1.4
+# dev-python/sphinx_rtd_theme )"
+#python_compile_all() {
+# use doc && emake -C docs html
+#}
+#python_install_all() {
+# use doc && local HTML_DOCS=( docs/_build/html/. )
+# distutils-r1_python_install_all
+#}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pikepdf/, dev-python/pikepdf/files/
@ 2024-06-28 6:07 Michał Górny
0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2024-06-28 6:07 UTC (permalink / raw
To: gentoo-commits
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() {
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pikepdf/, dev-python/pikepdf/files/
@ 2024-08-29 16:29 Michał Górny
0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2024-08-29 16:29 UTC (permalink / raw
To: gentoo-commits
commit: 33581229daea5479fe77c6e93c03aee5580c8a77
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 29 14:37:36 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Aug 29 16:29:46 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33581229
dev-python/pikepdf: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pikepdf/Manifest | 6 --
dev-python/pikepdf/files/pikepdf-9.0.0-py313.patch | 26 -------
dev-python/pikepdf/pikepdf-8.11.2-r1.ebuild | 67 ------------------
dev-python/pikepdf/pikepdf-8.14.0-r1.ebuild | 67 ------------------
dev-python/pikepdf/pikepdf-8.15.1-r1.ebuild | 71 -------------------
dev-python/pikepdf/pikepdf-8.4.1-r1.ebuild | 61 -----------------
dev-python/pikepdf/pikepdf-9.0.0.ebuild | 79 ----------------------
dev-python/pikepdf/pikepdf-9.1.0.ebuild | 74 --------------------
8 files changed, 451 deletions(-)
diff --git a/dev-python/pikepdf/Manifest b/dev-python/pikepdf/Manifest
index 848cef598828..98260c7018be 100644
--- a/dev-python/pikepdf/Manifest
+++ b/dev-python/pikepdf/Manifest
@@ -1,9 +1,3 @@
-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
-DIST pikepdf-8.4.1.tar.gz 2853305 BLAKE2B 2298514159db17ba49b8e2fa2407d60de50273bea111ece704251d99193bdc4c8ed77f624237a49c3f4f129e3b14ac4ddd1006cf3024bcbf822bc5523e0fee35 SHA512 6989e8a3888f612e453ec1ea8425c0ca35ccfee19ae5e8c32df136ebc3fbb7728d9fe5beaacb4e392a20c9037a1009fc8f8d53d73634427fb0df9103626e34fa
-DIST pikepdf-9.0.0.tar.gz 2868331 BLAKE2B 6735938fd2c0e8bb6a5fb40896350a2caa2ee20f8982010574a4e682c8ff19d01bc6773d30f78e2d4a5d58496de9dfa8fe9584f1c954205ed4832753addbd373 SHA512 15248d523cebdfbfcd7a5f8b6144b7dc8371612bd77ba3847af1ce626b5d87780911346d3c61bfe7cef545a19f1863c1a4048b35ace56f2cb62dcb962272829d
-DIST pikepdf-9.1.0.tar.gz 2869103 BLAKE2B 39750e280caa2393b69a5c3c841afa9cbb0d5701a20ae9ca4e9a57088cae47e2dd33ca8b605b0b096df131b578a4cdc71eb8696d12b2817426b35a8b13668460 SHA512 0fbf1ca151b6a234cd23a5148c9e8e4e033c5da5c935b4786fe6167555da7016c55b124dd2f9e8dc414c9782829f38412227820229a8459cc9dbe03220620fae
DIST pikepdf-9.1.1.tar.gz 2869514 BLAKE2B b196a61d599db1355695d40ac69e09ea7a020cb10c246685792b7f6f7854b5dce63dd2f675a542fa256ac713c7a7ce49ba7ddd248fbe901fe267641df399ca74 SHA512 0b3c2c89d9226212806791e00470c2c64147f0738d26bfe9c5288414cf515760213e3cdc70a62ef3f53a0ee43b7d8e2cc0076f14fe22bdbac2ff50e0a8984164
DIST pikepdf-9.1.2.tar.gz 2869865 BLAKE2B 74b64d628f12a5335a9dfbe2e15fbbd0a39e266100bcc8b33e94c954aab91150f46649b181bf049cd1084a6d2412ea9485cc57d4d6a23a4678a5ea55ebbb7357 SHA512 676d68f05a506b6aa69e1b01d03164de6731d17b48d2cd4b123221ebe27aef04a75d458c897c53d504a0b3aa7d0bc3e78aaf707a3cfdcdf8d31ee5e537188bd3
DIST pikepdf-9.2.0.tar.gz 2905389 BLAKE2B f38335075db489007eba582d57a72fd5fa268f89105dc528131c14d53547673cbffa96b376ba27e9b04dac3bab6770e80bb0ac865e7549eb1c00e4ea4eb3ba27 SHA512 0e2c5e647ccb24691c11eeb41569a8f7250fb8ca55a5c76aa1ae250c9fc49cd2bfe73db6f599928b14d46a678ef71b6e6f430e134d9891139176b90a2f853e17
diff --git a/dev-python/pikepdf/files/pikepdf-9.0.0-py313.patch b/dev-python/pikepdf/files/pikepdf-9.0.0-py313.patch
deleted file mode 100644
index d0415daec69c..000000000000
--- a/dev-python/pikepdf/files/pikepdf-9.0.0-py313.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-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-8.11.2-r1.ebuild b/dev-python/pikepdf/pikepdf-8.11.2-r1.ebuild
deleted file mode 100644
index bbd2842097b5..000000000000
--- a/dev-python/pikepdf/pikepdf-8.11.2-r1.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..12} pypy3 )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Python library to work with pdf files based on qpdf"
-HOMEPAGE="
- https://github.com/pikepdf/pikepdf/
- https://pypi.org/project/pikepdf/
-"
-
-LICENSE="MPL-2.0"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~s390 sparc x86"
-
-# Check QPDF_MIN_VERSION in pyproject.toml on bumps, as well as
-# https://qpdf.readthedocs.io/en/stable/release-notes.html.
-DEPEND="
- >=app-text/qpdf-11.7.0:0=
-"
-RDEPEND="
- ${DEPEND}
- dev-python/deprecated[${PYTHON_USEDEP}]
- >=dev-python/lxml-4.0[${PYTHON_USEDEP}]
- dev-python/packaging[${PYTHON_USEDEP}]
- >=dev-python/pillow-10.0.1[lcms,${PYTHON_USEDEP}]
-"
-BDEPEND="
- >=dev-python/pybind11-2.10.1[${PYTHON_USEDEP}]
- >=dev-python/setuptools-scm-7.0.5[${PYTHON_USEDEP}]
- test? (
- >=dev-python/attrs-20.2.0[${PYTHON_USEDEP}]
- >=dev-python/hypothesis-6.36[${PYTHON_USEDEP}]
- >=dev-python/numpy-1.21.0[${PYTHON_USEDEP}]
- >=dev-python/pillow-5.0.0[${PYTHON_USEDEP},jpeg,lcms,tiff]
- >=dev-python/psutil-5.9[${PYTHON_USEDEP}]
- >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}]
- >=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}]
- $(python_gen_cond_dep '
- dev-python/tomli[${PYTHON_USEDEP}]
- ' 3.10)
- media-libs/tiff[zlib]
- )
-"
-
-distutils_enable_tests pytest
-
-EPYTEST_DESELECT=(
- # fragile to system load
- tests/test_image_access.py::test_random_image
-)
-
-src_prepare() {
- sed -e '/-n auto/d' -i pyproject.toml || die
- distutils-r1_src_prepare
-}
-
-python_test() {
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest -p timeout
-}
diff --git a/dev-python/pikepdf/pikepdf-8.14.0-r1.ebuild b/dev-python/pikepdf/pikepdf-8.14.0-r1.ebuild
deleted file mode 100644
index 342767bd45fb..000000000000
--- a/dev-python/pikepdf/pikepdf-8.14.0-r1.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..12} pypy3 )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Python library to work with pdf files based on qpdf"
-HOMEPAGE="
- https://github.com/pikepdf/pikepdf/
- https://pypi.org/project/pikepdf/
-"
-
-LICENSE="MPL-2.0"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~s390 sparc x86"
-
-# Check QPDF_MIN_VERSION in pyproject.toml on bumps, as well as
-# https://qpdf.readthedocs.io/en/stable/release-notes.html.
-DEPEND="
- >=app-text/qpdf-11.5.0:0=
-"
-RDEPEND="
- ${DEPEND}
- dev-python/deprecated[${PYTHON_USEDEP}]
- >=dev-python/lxml-4.0[${PYTHON_USEDEP}]
- dev-python/packaging[${PYTHON_USEDEP}]
- >=dev-python/pillow-10.0.1[lcms,${PYTHON_USEDEP}]
-"
-BDEPEND="
- >=dev-python/pybind11-2.10.1[${PYTHON_USEDEP}]
- >=dev-python/setuptools-scm-7.0.5[${PYTHON_USEDEP}]
- test? (
- >=dev-python/attrs-20.2.0[${PYTHON_USEDEP}]
- >=dev-python/hypothesis-6.36[${PYTHON_USEDEP}]
- >=dev-python/numpy-1.21.0[${PYTHON_USEDEP}]
- >=dev-python/pillow-5.0.0[${PYTHON_USEDEP},jpeg,lcms,tiff]
- >=dev-python/psutil-5.9[${PYTHON_USEDEP}]
- >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}]
- >=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}]
- $(python_gen_cond_dep '
- dev-python/tomli[${PYTHON_USEDEP}]
- ' 3.10)
- media-libs/tiff[zlib]
- )
-"
-
-distutils_enable_tests pytest
-
-EPYTEST_DESELECT=(
- # fragile to system load
- tests/test_image_access.py::test_random_image
-)
-
-src_prepare() {
- sed -e '/-n auto/d' -i pyproject.toml || die
- distutils-r1_src_prepare
-}
-
-python_test() {
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest -p timeout
-}
diff --git a/dev-python/pikepdf/pikepdf-8.15.1-r1.ebuild b/dev-python/pikepdf/pikepdf-8.15.1-r1.ebuild
deleted file mode 100644
index c889e6cca1d6..000000000000
--- a/dev-python/pikepdf/pikepdf-8.15.1-r1.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..12} pypy3 )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Python library to work with pdf files based on qpdf"
-HOMEPAGE="
- https://github.com/pikepdf/pikepdf/
- https://pypi.org/project/pikepdf/
-"
-
-LICENSE="MPL-2.0"
-SLOT="0"
-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
-# https://qpdf.readthedocs.io/en/stable/release-notes.html.
-DEPEND="
- >=app-text/qpdf-11.5.0:0=
-"
-RDEPEND="
- ${DEPEND}
- dev-python/deprecated[${PYTHON_USEDEP}]
- >=dev-python/lxml-4.0[${PYTHON_USEDEP}]
- dev-python/packaging[${PYTHON_USEDEP}]
- >=dev-python/pillow-10.0.1[lcms,${PYTHON_USEDEP}]
-"
-BDEPEND="
- >=dev-python/pybind11-2.10.1[${PYTHON_USEDEP}]
- >=dev-python/setuptools-scm-7.0.5[${PYTHON_USEDEP}]
- test? (
- >=dev-python/attrs-20.2.0[${PYTHON_USEDEP}]
- >=dev-python/hypothesis-6.36[${PYTHON_USEDEP}]
- >=dev-python/numpy-1.21.0[${PYTHON_USEDEP}]
- >=dev-python/pillow-5.0.0[${PYTHON_USEDEP},jpeg,lcms,tiff]
- >=dev-python/psutil-5.9[${PYTHON_USEDEP}]
- >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}]
- >=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}]
- !big-endian? (
- >=dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}]
- )
- $(python_gen_cond_dep '
- dev-python/tomli[${PYTHON_USEDEP}]
- ' 3.10)
- media-libs/tiff[zlib]
- )
-"
-
-distutils_enable_tests pytest
-
-EPYTEST_DESELECT=(
- # fragile to system load
- tests/test_image_access.py::test_random_image
-)
-
-src_prepare() {
- sed -e '/-n auto/d' -i pyproject.toml || die
- distutils-r1_src_prepare
-}
-
-python_test() {
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest -p timeout
-}
diff --git a/dev-python/pikepdf/pikepdf-8.4.1-r1.ebuild b/dev-python/pikepdf/pikepdf-8.4.1-r1.ebuild
deleted file mode 100644
index 96db3b598947..000000000000
--- a/dev-python/pikepdf/pikepdf-8.4.1-r1.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..12} pypy3 )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Python library to work with pdf files based on qpdf"
-HOMEPAGE="
- https://github.com/pikepdf/pikepdf/
- https://pypi.org/project/pikepdf/
-"
-
-LICENSE="MPL-2.0"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86"
-
-# Check QPDF_MIN_VERSION in pyproject.toml on bumps, as well as
-# https://qpdf.readthedocs.io/en/stable/release-notes.html.
-DEPEND="
- >=app-text/qpdf-11.5.0:0=
-"
-RDEPEND="
- ${DEPEND}
- dev-python/deprecation[${PYTHON_USEDEP}]
- >=dev-python/lxml-4.0[${PYTHON_USEDEP}]
- dev-python/packaging[${PYTHON_USEDEP}]
- >=dev-python/pillow-9.0[lcms,${PYTHON_USEDEP}]
-"
-BDEPEND="
- >=dev-python/pybind11-2.10.1[${PYTHON_USEDEP}]
- >=dev-python/setuptools-scm-7.0.5[${PYTHON_USEDEP}]
- test? (
- >=dev-python/attrs-20.2.0[${PYTHON_USEDEP}]
- >=dev-python/hypothesis-6.36[${PYTHON_USEDEP}]
- >=dev-python/numpy-1.21.0[${PYTHON_USEDEP}]
- >=dev-python/pillow-5.0.0[${PYTHON_USEDEP},jpeg,lcms,tiff]
- >=dev-python/psutil-5.9[${PYTHON_USEDEP}]
- >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}]
- >=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}]
- $(python_gen_cond_dep '
- dev-python/tomli[${PYTHON_USEDEP}]
- ' 3.{8..10})
- )
-"
-
-distutils_enable_tests pytest
-
-EPYTEST_DESELECT=(
- # fragile to system load
- tests/test_image_access.py::test_random_image
-)
-
-src_prepare() {
- sed -e '/-n auto/d' -i pyproject.toml || die
- distutils-r1_src_prepare
-}
diff --git a/dev-python/pikepdf/pikepdf-9.0.0.ebuild b/dev-python/pikepdf/pikepdf-9.0.0.ebuild
deleted file mode 100644
index 0ffb2c3ac36f..000000000000
--- a/dev-python/pikepdf/pikepdf-9.0.0.ebuild
+++ /dev/null
@@ -1,79 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..13} pypy3 )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Python library to work with pdf files based on qpdf"
-HOMEPAGE="
- https://github.com/pikepdf/pikepdf/
- https://pypi.org/project/pikepdf/
-"
-
-LICENSE="MPL-2.0"
-SLOT="0"
-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
-# https://qpdf.readthedocs.io/en/stable/release-notes.html.
-DEPEND="
- >=app-text/qpdf-11.5.0:0=
-"
-RDEPEND="
- ${DEPEND}
- dev-python/deprecated[${PYTHON_USEDEP}]
- >=dev-python/lxml-4.0[${PYTHON_USEDEP}]
- dev-python/packaging[${PYTHON_USEDEP}]
- >=dev-python/pillow-10.0.1[lcms,${PYTHON_USEDEP}]
-"
-BDEPEND="
- >=dev-python/pybind11-2.10.1[${PYTHON_USEDEP}]
- >=dev-python/setuptools-scm-7.0.5[${PYTHON_USEDEP}]
- test? (
- >=dev-python/attrs-20.2.0[${PYTHON_USEDEP}]
- >=dev-python/hypothesis-6.36[${PYTHON_USEDEP}]
- >=dev-python/numpy-1.21.0[${PYTHON_USEDEP}]
- >=dev-python/pillow-5.0.0[${PYTHON_USEDEP},jpeg,lcms,tiff]
- >=dev-python/psutil-5.9[${PYTHON_USEDEP}]
- >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}]
- >=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}]
- !big-endian? (
- >=dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}]
- )
- $(python_gen_cond_dep '
- dev-python/tomli[${PYTHON_USEDEP}]
- ' 3.10)
- media-libs/tiff[zlib]
- )
-"
-
-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() {
- 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() {
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest -p timeout
-}
diff --git a/dev-python/pikepdf/pikepdf-9.1.0.ebuild b/dev-python/pikepdf/pikepdf-9.1.0.ebuild
deleted file mode 100644
index 83a7ea2c9370..000000000000
--- a/dev-python/pikepdf/pikepdf-9.1.0.ebuild
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..13} pypy3 )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Python library to work with pdf files based on qpdf"
-HOMEPAGE="
- https://github.com/pikepdf/pikepdf/
- https://pypi.org/project/pikepdf/
-"
-
-LICENSE="MPL-2.0"
-SLOT="0"
-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
-# https://qpdf.readthedocs.io/en/stable/release-notes.html.
-DEPEND="
- >=app-text/qpdf-11.5.0:0=
-"
-RDEPEND="
- ${DEPEND}
- dev-python/deprecated[${PYTHON_USEDEP}]
- >=dev-python/lxml-4.0[${PYTHON_USEDEP}]
- dev-python/packaging[${PYTHON_USEDEP}]
- >=dev-python/pillow-10.0.1[lcms,${PYTHON_USEDEP}]
-"
-BDEPEND="
- >=dev-python/pybind11-2.10.1[${PYTHON_USEDEP}]
- >=dev-python/setuptools-scm-7.0.5[${PYTHON_USEDEP}]
- test? (
- >=dev-python/attrs-20.2.0[${PYTHON_USEDEP}]
- >=dev-python/hypothesis-6.36[${PYTHON_USEDEP}]
- >=dev-python/numpy-1.21.0[${PYTHON_USEDEP}]
- >=dev-python/pillow-5.0.0[${PYTHON_USEDEP},jpeg,lcms,tiff]
- >=dev-python/psutil-5.9[${PYTHON_USEDEP}]
- >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}]
- >=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}]
- !big-endian? (
- >=dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}]
- )
- $(python_gen_cond_dep '
- dev-python/tomli[${PYTHON_USEDEP}]
- ' 3.10)
- media-libs/tiff[zlib]
- )
-"
-
-distutils_enable_tests pytest
-
-src_prepare() {
- distutils-r1_src_prepare
-
- sed -e '/-n auto/d' -i pyproject.toml || die
-}
-
-python_test() {
- local 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
- )
-
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest -p timeout
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-29 16:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-29 16:29 [gentoo-commits] repo/gentoo:master commit in: dev-python/pikepdf/, dev-python/pikepdf/files/ Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2024-06-28 6:07 Michał Górny
2020-01-13 16:14 Andrey Grozin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox