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: Mon, 27 Feb 2023 05:38:26
Message-Id: 1677476291.a8084e470bd7c878c1195428dbd55a9194098d20.mgorny@gentoo
1 commit: a8084e470bd7c878c1195428dbd55a9194098d20
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 27 04:56:38 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 27 05:38:11 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8084e47
7
8 dev-python/pypdf: Bump to 3.5.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.5.0.ebuild | 59 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/dev-python/pypdf/Manifest b/dev-python/pypdf/Manifest
17 index 656ac40ed128..0c4ead2a4c43 100644
18 --- a/dev-python/pypdf/Manifest
19 +++ b/dev-python/pypdf/Manifest
20 @@ -1,4 +1,5 @@
21 DIST pypdf-3.3.0.gh.tar.gz 6803536 BLAKE2B ff70995882581c816fbf7410232c68e9649632161b4927543924a11b1a0a816f1178be399079e32078fe8d89a2aa9cd0eb1562409dc8e7bd388cad3afde37198 SHA512 5db25d6c4b41a1d19b45fa907f53e0106e01c93eb4152079dc4ffbd7bf28fbf8915bf0e3bf1af4a371e805657884fe2c42de4856944085ca7bc07a477f3ba588
22 DIST pypdf-3.4.0.gh.tar.gz 6931831 BLAKE2B 037ac998cc1e3d078281b64183197678a80345731f6d4691b00f9e546eb61eaa34c4d7f4b704191c887975517da73359983f1b7405776e99257f79b1604dafc0 SHA512 9bee70a039c42533b600f1e95e28a4889d7df212bae18deca7d88501008d3a3e2b4d7fe36134e947cb14b0acc650126688c358ce2b662917a4c6df46241db1ab
23 DIST pypdf-3.4.1.gh.tar.gz 6930245 BLAKE2B 9e8a5a1ebe95b64c9274ce6b0ea252d65f41d4b6791d6c6acf87f810794892337aed13ddc9b77f05a404fe94b3d9c2444f2a06c4feea9661204e71684bbbbfd5 SHA512 e2e3fa74bc6e96afc5999429e7603dd3ab8e6443b6259e456bc6d90cb2d7a15a484b226e218478c1e92cfd7fe23c93247f212568c6fcd51d80afde32b83460ba
24 +DIST pypdf-3.5.0.gh.tar.gz 7181507 BLAKE2B 8f5c129613ed12a9eaa90cf0e6fa189b0fc5bf109f26b8cc35ff1550e916b0635715359b2ece9c3c0243095c2e802474e99fe4c59d16b0f75b4375fb2ce07e5d SHA512 a8a0fad3fd08d88738088a06df4f1cbf419571e9e817c6097ce8bdcf7b1dd32f478ac712879cabceb7034f4e9a421f887ff117a1812782eadb670c8043aff86c
25 DIST pypdf-sample-files-0fe84b30ed33ff3daa9293e44349b8618f135699.gh.tar.gz 9027166 BLAKE2B 912bb9fbd632bd0ad2cc2e865a1e6870ad7064aa2cf4d6f96217f63ac685e9a511f0bb20c22d48ae970a2eb171b27a0fa680fa42892425531f69735840cf741b SHA512 07a71a3566dabcea5dc8a549949d0f0c0f9483d5d9f85851d6e4e702dd374b348469a80e5300d18983e560ee9a44d0639b55eb338023b9ebbdb26c6f8c455e07
26
27 diff --git a/dev-python/pypdf/pypdf-3.5.0.ebuild b/dev-python/pypdf/pypdf-3.5.0.ebuild
28 new file mode 100644
29 index 000000000000..e9581fbc5b9a
30 --- /dev/null
31 +++ b/dev-python/pypdf/pypdf-3.5.0.ebuild
32 @@ -0,0 +1,59 @@
33 +# Copyright 1999-2023 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +DISTUTILS_USE_PEP517=flit
39 +PYTHON_COMPAT=( python3_{9..11} )
40 +
41 +inherit distutils-r1
42 +
43 +SAMPLE_COMMIT=0fe84b30ed33ff3daa9293e44349b8618f135699
44 +DESCRIPTION="Python library to work with PDF files"
45 +HOMEPAGE="
46 + https://pypi.org/project/pypdf/
47 + https://github.com/py-pdf/pypdf/
48 +"
49 +SRC_URI="
50 + https://github.com/py-pdf/pypdf/archive/${PV}.tar.gz
51 + -> ${P}.gh.tar.gz
52 + test? (
53 + https://github.com/py-pdf/sample-files/archive/${SAMPLE_COMMIT}.tar.gz
54 + -> ${PN}-sample-files-${SAMPLE_COMMIT}.gh.tar.gz
55 + )
56 +"
57 +S=${WORKDIR}/pypdf-${PV}
58 +
59 +LICENSE="BSD-2"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
62 +RESTRICT="test"
63 +# 150+ tests require network, too many to deselect
64 +PROPERTIES="test_network"
65 +
66 +RDEPEND="
67 + $(python_gen_cond_dep '
68 + dev-python/typing-extensions[${PYTHON_USEDEP}]
69 + ' 3.8 3.9)
70 +"
71 +BDEPEND="
72 + dev-python/pillow[${PYTHON_USEDEP}]
73 + test? (
74 + dev-python/pycryptodome[${PYTHON_USEDEP}]
75 + )
76 +"
77 +
78 +distutils_enable_tests pytest
79 +
80 +EPYTEST_DESELECT=(
81 + # rely on -Werror
82 + tests/test_utils.py::test_deprecate_no_replacement
83 + tests/test_workflows.py::test_orientations
84 +)
85 +
86 +src_unpack() {
87 + default
88 + if use test; then
89 + mv "sample-files-${SAMPLE_COMMIT}"/* "${S}"/sample-files/ || die
90 + fi
91 +}