From: "Andrey Grozin" <grozin@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pikepdf/, dev-python/pikepdf/files/
Date: Mon, 13 Jan 2020 16:14:03 +0000 (UTC) [thread overview]
Message-ID: <1578932022.a08c97274a3610e3ed0a7c78e4f8c51d712aa63c.grozin@gentoo> (raw)
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
+#}
next reply other threads:[~2020-01-13 16:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-13 16:14 Andrey Grozin [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-28 6:07 [gentoo-commits] repo/gentoo:master commit in: dev-python/pikepdf/, dev-python/pikepdf/files/ Michał Górny
2024-08-29 16:29 Michał Górny
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=1578932022.a08c97274a3610e3ed0a7c78e4f8c51d712aa63c.grozin@gentoo \
--to=grozin@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