diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
commit | 21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch) | |
tree | e1810a4b135afce04b34862ef0fab2bfaeb8aeca /dev-python/pikepdf | |
parent | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff) |
gentoo resync : 15.01.2020
Diffstat (limited to 'dev-python/pikepdf')
-rw-r--r-- | dev-python/pikepdf/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pikepdf/files/pikepdf-1.8.3-test.patch | 40 | ||||
-rw-r--r-- | dev-python/pikepdf/metadata.xml | 16 | ||||
-rw-r--r-- | dev-python/pikepdf/pikepdf-1.8.3.ebuild | 51 |
4 files changed, 111 insertions, 0 deletions
diff --git a/dev-python/pikepdf/Manifest b/dev-python/pikepdf/Manifest new file mode 100644 index 000000000000..05d053a115f1 --- /dev/null +++ b/dev-python/pikepdf/Manifest @@ -0,0 +1,4 @@ +AUX pikepdf-1.8.3-test.patch 1383 BLAKE2B 18ac2e4ad4fd2c1e6db158ecd87505ef3099a5053d3d4b5b96a2b1179eeeb77218ba0582e1f25975f5f94867220fd382c82ca960da404154ea67008cd389ff82 SHA512 6db05c94c09f5474f53bd2dd77b0ebdf6cecb4cf00ae5c344b1795bd81379f072856c7d06c05630d40c878ba2fd9b09c918d0f6fe364b54fea720638135caf0c +DIST pikepdf-1.8.3.tar.gz 1649370 BLAKE2B c655eb2a9304eb624b5f3dd3ea68ff3194f5a508b4249ef0643689945c28bbe9eaad015df481516d6cfce6768a70a34377725a7995b448f22a2eb025b4967e71 SHA512 5cb674042dca6850df7cf9476743956967d0ad168ac6bdadda03895a604f6c3670849e33ab863e7686eaa46922489d6dd1da9883d19a721c8021323d768086a9 +EBUILD pikepdf-1.8.3.ebuild 1448 BLAKE2B bcc45f6908fb64a2d74fed49277f000e3655c8f0c7f564333d094203f5875a2ef33e2b88f28164916da130ed812ec0cf943746652d346c05eb1b82b2ddf2df4b SHA512 a56a545f64ba95ec6e51c5eb6eb49f361c39d1d636aae7c5014c11f1f3bba35179b3084cb645f7654f04f1609d47dc852dce547e0a49c667c8e85d4b2d5abc5f +MISC metadata.xml 579 BLAKE2B 010d66d2d00284f744a85bebf5b916e77efc7f46f880886815bc677007ae0f71b5f19b6caf6cc49c05e1e9ce13c954876e8d13b988a533af2fb68de147e6911a SHA512 3f41579208b5354e6361d6cd1f035bf0e5819fd90575e15c684cf501ca33bc14b6c4a7b70040cd5f44796a8ca58810535734787ce84ce8183d0cadc14d6c1f01 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 000000000000..b142980caa77 --- /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/metadata.xml b/dev-python/pikepdf/metadata.xml new file mode 100644 index 000000000000..bb5d42c73a8c --- /dev/null +++ b/dev-python/pikepdf/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>grozin@gentoo.org</email> + <name>Andrey Grozin</name> + </maintainer> + <longdescription lang="en"> + pikepdf is a Python library for reading and writing PDF files. + pikepdf is based on QPDF, a powerful PDF manipulation and repair library. + </longdescription> + <upstream> + <remote-id type="pypi">pikepdf</remote-id> + <remote-id type="github">pikepdf/pikepdf</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pikepdf/pikepdf-1.8.3.ebuild b/dev-python/pikepdf/pikepdf-1.8.3.ebuild new file mode 100644 index 000000000000..03166127d0d0 --- /dev/null +++ b/dev-python/pikepdf/pikepdf-1.8.3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) +inherit distutils-r1 + +DESCRIPTION="Python library to work with pdf files based on qpdf" +HOMEPAGE="https://pypi.org/project/pikepdf/ https://github.com/pikepdf/pikepdf" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" +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}] + 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 +#} |