Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pypdf/
Date: Sun, 19 Mar 2023 19:03:50
Message-Id: 1679252622.ea5a217c9c73fb889d8152e39a735cf902fac98a.mgorny@gentoo
1 commit: ea5a217c9c73fb889d8152e39a735cf902fac98a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 19 17:49:20 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 19 19:03:42 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea5a217c
7
8 dev-python/pypdf: Bump to 3.6.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pypdf/Manifest | 1 +
13 dev-python/pypdf/pypdf-3.6.0.ebuild | 60 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 61 insertions(+)
15
16 diff --git a/dev-python/pypdf/Manifest b/dev-python/pypdf/Manifest
17 index a8cb63cb6b91..5f10df003ada 100644
18 --- a/dev-python/pypdf/Manifest
19 +++ b/dev-python/pypdf/Manifest
20 @@ -4,5 +4,6 @@ DIST pypdf-3.4.1.gh.tar.gz 6930245 BLAKE2B 9e8a5a1ebe95b64c9274ce6b0ea252d65f41d
21 DIST pypdf-3.5.0.gh.tar.gz 7181507 BLAKE2B 8f5c129613ed12a9eaa90cf0e6fa189b0fc5bf109f26b8cc35ff1550e916b0635715359b2ece9c3c0243095c2e802474e99fe4c59d16b0f75b4375fb2ce07e5d SHA512 a8a0fad3fd08d88738088a06df4f1cbf419571e9e817c6097ce8bdcf7b1dd32f478ac712879cabceb7034f4e9a421f887ff117a1812782eadb670c8043aff86c
22 DIST pypdf-3.5.1.gh.tar.gz 7183874 BLAKE2B 29ce7d052f0c466e72974ec051e149c2383136cc0097e2e104c4c1e5c37836f7908b25bfaa32e5fd85082f860b06ad88adbfbb5bbff95bc7a735e127b26d7964 SHA512 4f28cc0822f472087f096b4b2ee553b87e458009b29c43d41bbba53de9862292c78f4b31a860d4c783a6af4f92fdf32612bab7a42190373d9d9ceae39080bb35
23 DIST pypdf-3.5.2.gh.tar.gz 7185283 BLAKE2B b92af14da7fed1cecda4cb0088efaa7031e9a44daa7c81ee0450bbb0f7630129b6e09e4044b3592e4333c466c73f16d033ee32f428c2866d163fc250a15516e9 SHA512 f257f05ddbd0a0195e0ec075b88fd4077bf0c44490311eee6fe1f4d3715c6d29abc681df53d22c2e7a08c2a545f5151d48f1bec2e436031c3b8e599204eb0f5a
24 +DIST pypdf-3.6.0.gh.tar.gz 7174931 BLAKE2B 2d9260ecccc03e6039d288d1fb16f8d1deffcd8daf83e4bb25ff7f2c49b3c6c979ebca2f04458964999d29fb5979b21a0087b02ac66c0bf387cce2be50a308be SHA512 43286f7c9c68048d763a87b02eb932ba597a7aa778153e8abd96d7d496da0d910199dab1e985d21c625daae225dde69936fff56accd52102353e6a03e30db4c7
25 DIST pypdf-sample-files-0fe84b30ed33ff3daa9293e44349b8618f135699.gh.tar.gz 9027166 BLAKE2B 912bb9fbd632bd0ad2cc2e865a1e6870ad7064aa2cf4d6f96217f63ac685e9a511f0bb20c22d48ae970a2eb171b27a0fa680fa42892425531f69735840cf741b SHA512 07a71a3566dabcea5dc8a549949d0f0c0f9483d5d9f85851d6e4e702dd374b348469a80e5300d18983e560ee9a44d0639b55eb338023b9ebbdb26c6f8c455e07
26 DIST pypdf-sample-files-fb7a080b35b3553bd10221282beeda7847959e83.gh.tar.gz 9027029 BLAKE2B 8f8797263b86f08efd9708d5812000efd08708abf66a0e95f50f5a147102e555dd7f8c465ae73cae842d86efdb52cabba5f8962626f56cb1b98409bfa108e150 SHA512 3a9cdab964a14cf6b14d80d917441a4e5effe2b7647163b666781ecabd189624dbbe5039111f6b1d753ff73e013665a1b86d87ca7806580fda58ec5810f88e94
27
28 diff --git a/dev-python/pypdf/pypdf-3.6.0.ebuild b/dev-python/pypdf/pypdf-3.6.0.ebuild
29 new file mode 100644
30 index 000000000000..246ddfc145ee
31 --- /dev/null
32 +++ b/dev-python/pypdf/pypdf-3.6.0.ebuild
33 @@ -0,0 +1,60 @@
34 +# Copyright 1999-2023 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +DISTUTILS_USE_PEP517=flit
40 +PYTHON_COMPAT=( python3_{9..11} )
41 +
42 +inherit distutils-r1
43 +
44 +SAMPLE_COMMIT=fb7a080b35b3553bd10221282beeda7847959e83
45 +DESCRIPTION="Python library to work with PDF files"
46 +HOMEPAGE="
47 + https://pypi.org/project/pypdf/
48 + https://github.com/py-pdf/pypdf/
49 +"
50 +SRC_URI="
51 + https://github.com/py-pdf/pypdf/archive/${PV}.tar.gz
52 + -> ${P}.gh.tar.gz
53 + test? (
54 + https://github.com/py-pdf/sample-files/archive/${SAMPLE_COMMIT}.tar.gz
55 + -> ${PN}-sample-files-${SAMPLE_COMMIT}.gh.tar.gz
56 + )
57 +"
58 +S=${WORKDIR}/pypdf-${PV}
59 +
60 +LICENSE="BSD-2"
61 +SLOT="0"
62 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
63 +
64 +RDEPEND="
65 + $(python_gen_cond_dep '
66 + dev-python/typing-extensions[${PYTHON_USEDEP}]
67 + ' 3.8 3.9)
68 +"
69 +BDEPEND="
70 + dev-python/pillow[${PYTHON_USEDEP}]
71 + test? (
72 + dev-python/pycryptodome[${PYTHON_USEDEP}]
73 + )
74 +"
75 +
76 +distutils_enable_tests pytest
77 +
78 +EPYTEST_DESELECT=(
79 + # rely on -Werror
80 + tests/test_utils.py::test_deprecate_no_replacement
81 + tests/test_workflows.py::test_orientations
82 +)
83 +
84 +src_unpack() {
85 + default
86 + if use test; then
87 + mv "sample-files-${SAMPLE_COMMIT}"/* "${S}"/sample-files/ || die
88 + fi
89 +}
90 +
91 +python_test() {
92 + epytest -o addopts= -m "not enable_socket"
93 +}