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/PyPDF2/
Date: Mon, 26 Sep 2022 11:22:04
Message-Id: 1664190336.5288d8b5af626c156b0e8fde4fa3e57c7c4971d7.mgorny@gentoo
1 commit: 5288d8b5af626c156b0e8fde4fa3e57c7c4971d7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 26 10:42:01 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 26 11:05:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5288d8b5
7
8 dev-python/PyPDF2: Bump to 2.11.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/PyPDF2/Manifest | 1 +
13 dev-python/PyPDF2/PyPDF2-2.11.0.ebuild | 58 ++++++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/dev-python/PyPDF2/Manifest b/dev-python/PyPDF2/Manifest
17 index bd1de2f51492..9286268d8cdf 100644
18 --- a/dev-python/PyPDF2/Manifest
19 +++ b/dev-python/PyPDF2/Manifest
20 @@ -4,5 +4,6 @@ DIST PyPDF2-2.10.5.gh.tar.gz 6443691 BLAKE2B 6b60ea4d1a044ee5f20718744118f5739a4
21 DIST PyPDF2-2.10.6.gh.tar.gz 6443648 BLAKE2B 4b5282363dea4bcec65ee6fddec787a95055ae900636b75c118fa3f2a4f5afc73807425b611c81cff6a580d4109c4df14083a1f64d7d6c373a1cd6ff9cb92fb3 SHA512 c158e6eec44429bdc103cd7f0e358289a14de92dc1d23b77f58e45a7a9851e9072fab3c8c5710f1755fdc5093380d3756db4fd12d0bdc8461cb9119d499fe012
22 DIST PyPDF2-2.10.8.gh.tar.gz 6444481 BLAKE2B 888cfb7977dd34c5b7d12d0fc9d2e81aaa76b837036e98537fc0829dedb6193ea4f5e9c40d2a677b036f9fc2ff09adb47afde8ad7d1e5e037613e1dda93c8faf SHA512 29bcadfb8e7fd9285ffe7b5d706cd43bec3ce9b80425232d77b834010513cd9907bf65d90e820ee1d0718be0ed384a7ff3e097c4d16d614d6cd89e272e767174
23 DIST PyPDF2-2.10.9.gh.tar.gz 6448504 BLAKE2B 5508ce0b2b0d3cb00f1057a4e52dafde3ff0dbf5eaa79be46e9d20a5041b76968fd46ba74b86f15e9fb2948f2c053fd1f722f11806cfbed552d241a768d01f00 SHA512 43aec1a381e97b26145b7c8e3414a4cab33d0d03520be73b3e5e4c9565db10e9bfd764280b56f328ec5931cc41d1a6f558b29d59d0930d92de8da00b52e2f7da
24 +DIST PyPDF2-2.11.0.gh.tar.gz 6452850 BLAKE2B 695e39336cb93f138b06182b221aa7ed1f90a582bbfff9111763b60b26b37fd13f70ed3ef67c2237d19dbb845c1703944190d04fbfe6694d0afe67671b188d73 SHA512 b0574d31d7487b3346d093229cb768baa2668619c1a3b8dde135c40f9b65cc6e291cd8e012c4fcae403f3163a3ded6445491e42efdf49c36653b3167544ce64b
25 DIST PyPDF2-sample-files-b6f4ff3de00745783d79f25cb8803901d1f20d28.gh.tar.gz 5522867 BLAKE2B 9a6cb3b92032f9ec697b972b1a257b2c2528d36cd4a7e40092ac6dbf0a4955c5b204b8c82d37f9bad4a19fccddf0070b095ee2f3b56de22d738ed3d8a3b555c0 SHA512 74aad38060f441ace87f6650de152a28f4a251e4f47574a8d46066857c8fbbb187cd3cd275caa198dce2c1557e90664b288f071995c2bbb9bf13a341210313e8
26 DIST PyPDF2-sample-files-bedcbe077c4898e1b97c6c6f81d937f5048b4630.gh.tar.gz 7198720 BLAKE2B 91d177e7329fd137322972a3a38841cb0611de7f839071fe2fa5ecff0343cbffdf6976f42f4a779f520a8a2bac2d6573c5cd65bf2f1bc68395077e6e9c7322d9 SHA512 0cdaee85f1da12cf678165f06c8d351aa0808137d25f68c07f19f1bd3c929eeb52e604041dfaa0df94665379aeb7d19a43426d724a5e6602b7e4fbe7a62e753d
27
28 diff --git a/dev-python/PyPDF2/PyPDF2-2.11.0.ebuild b/dev-python/PyPDF2/PyPDF2-2.11.0.ebuild
29 new file mode 100644
30 index 000000000000..66b49dd2cca4
31 --- /dev/null
32 +++ b/dev-python/PyPDF2/PyPDF2-2.11.0.ebuild
33 @@ -0,0 +1,58 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +DISTUTILS_USE_PEP517=setuptools
40 +PYTHON_COMPAT=( python3_{8..11} )
41 +
42 +inherit distutils-r1
43 +
44 +SAMPLE_COMMIT=bedcbe077c4898e1b97c6c6f81d937f5048b4630
45 +DESCRIPTION="Python library to work with PDF files"
46 +HOMEPAGE="
47 + https://pypi.org/project/PyPDF2/
48 + https://github.com/py-pdf/PyPDF2/
49 +"
50 +SRC_URI="
51 + https://github.com/py-pdf/PyPDF2/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 +
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}"/* "${P}"/sample-files/ || die
90 + fi
91 +}