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, 01 Aug 2022 11:07:19
Message-Id: 1659352022.396d0f6d05fcd2493c1ea559947a68e89f7c3169.mgorny@gentoo
1 commit: 396d0f6d05fcd2493c1ea559947a68e89f7c3169
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 1 10:56:10 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 1 11:07:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=396d0f6d
7
8 dev-python/PyPDF2: Bump to 2.9.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/PyPDF2/Manifest | 2 +
13 dev-python/PyPDF2/PyPDF2-2.9.0.ebuild | 130 ++++++++++++++++++++++++++++++++++
14 2 files changed, 132 insertions(+)
15
16 diff --git a/dev-python/PyPDF2/Manifest b/dev-python/PyPDF2/Manifest
17 index 3ded963a988d..a65fd600e5b4 100644
18 --- a/dev-python/PyPDF2/Manifest
19 +++ b/dev-python/PyPDF2/Manifest
20 @@ -5,5 +5,7 @@ DIST PyPDF2-2.6.0.gh.tar.gz 5600718 BLAKE2B 13c8e485d0cbb1a6621e0769840a9894822a
21 DIST PyPDF2-2.7.0.gh.tar.gz 5629582 BLAKE2B d6cdf3bdb974c4ffba4bf55a6acc9d8f2a30dd9f460c7ccad71bc836a0deea2ed1b3cc2743eaa0c5a377e7afe034a49412478635454bc6b846186ff3d77298ec SHA512 c04966e1d9175d729bec5f64300bbac41b9eee07ce881bf186faac9774b0a8e6f152c6213e75c81aae8e30ad90e04ed554596c3eba55526f6280e856d9556a4d
22 DIST PyPDF2-2.8.0.gh.tar.gz 5872029 BLAKE2B 3bad15238079cf6e9940c9e8a1b2108e5e810ed8c1223b6dcebf2904ab3f655809a56c8d861743100dfc1267ea6a6e5b0605702d95f2b210820e68a93585ad03 SHA512 a6d258a4ac61acd59ba6f4fa683b080a3b4c70bb0405c2b041d0565319648358236c6cfcefacf1bbea5b3107b7f64a98057c82ac1816f359a5c6fb3b1ce76257
23 DIST PyPDF2-2.8.1.gh.tar.gz 5872212 BLAKE2B 19224d1b38947ad14adfb9b33201e0223f6da43072c6bffb78fae939872d0a025e6d2fd6f1eed0c0b88754a359a5459a45a36130659d81089caa884025a922d1 SHA512 6414339017c154610dbb5affcbf94fcda7ab6d1ea78f35cc348a2b8e5fc8c60216c4f20ffc114cb3abd8245ad7a8b40b4cca6161e3a98caff896fb823acc7bea
24 +DIST PyPDF2-2.9.0.gh.tar.gz 5877910 BLAKE2B afea03f9ac21e4b39cd39ce03adf70a8e08b80315f7cdd81440e371396ba48939560a3835de9587be8020e1aab75726409ecec753ef0fb042d69fe7fc6755e80 SHA512 fefbc6e6eb7ac0a0154f662044acb66f1c034efc114e878ced109d54a3e5427bb73088cb88d765c4576c2d67459a2daf64415789f8efe9b66cf8ed2bb78ff297
25 DIST PyPDF2-sample-files-200644f7219811c3930ad1732ef70c570ece2d16.gh.tar.gz 5513604 BLAKE2B 1bfccaf3b50431d32341c24ea7aa203060d40d60a4b3656df35274d056918e7fccf99e11ee2539f65e6de15741ce28acaccd0ddc771ca334a8ba18a8953aee05 SHA512 5d2e1aa06e240957e9ec230406208fc653384b45b9e4b6631580c2eb4f08327e192c6ef57c2310ef3ed0604c85015b15f5ade8ef7d9f525e73733e040fe37fe5
26 DIST PyPDF2-sample-files-4d24ff93dcddf21d55d028d9675d5b5bf9d7a350.gh.tar.gz 5443819 BLAKE2B 6eb440a2db3b58f7e195b8f24438552b2b414296b887cf44d75b14bda367e37ffef75b870152ac3b38e20e5a6f2c6a4cf374087b70daa9036821dd3ebdce2128 SHA512 de631f650098b6fe15830e5a816158d7f352c7a25d0c743b9e4bdf146e1ef2e3a6ea1751ed5d68f34e9a339a793bfb9dc217934595c7a8dffb854c0a4111b963
27 +DIST PyPDF2-sample-files-b6f4ff3de00745783d79f25cb8803901d1f20d28.gh.tar.gz 5522867 BLAKE2B 9a6cb3b92032f9ec697b972b1a257b2c2528d36cd4a7e40092ac6dbf0a4955c5b204b8c82d37f9bad4a19fccddf0070b095ee2f3b56de22d738ed3d8a3b555c0 SHA512 74aad38060f441ace87f6650de152a28f4a251e4f47574a8d46066857c8fbbb187cd3cd275caa198dce2c1557e90664b288f071995c2bbb9bf13a341210313e8
28
29 diff --git a/dev-python/PyPDF2/PyPDF2-2.9.0.ebuild b/dev-python/PyPDF2/PyPDF2-2.9.0.ebuild
30 new file mode 100644
31 index 000000000000..861d1fc880be
32 --- /dev/null
33 +++ b/dev-python/PyPDF2/PyPDF2-2.9.0.ebuild
34 @@ -0,0 +1,130 @@
35 +# Copyright 1999-2022 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +DISTUTILS_USE_PEP517=setuptools
41 +PYTHON_COMPAT=( python3_{8..11} )
42 +
43 +inherit distutils-r1
44 +
45 +SAMPLE_COMMIT=b6f4ff3de00745783d79f25cb8803901d1f20d28
46 +DESCRIPTION="Python library to work with PDF files"
47 +HOMEPAGE="
48 + https://pypi.org/project/PyPDF2/
49 + https://github.com/py-pdf/PyPDF2/
50 +"
51 +SRC_URI="
52 + https://github.com/py-pdf/PyPDF2/archive/${PV}.tar.gz
53 + -> ${P}.gh.tar.gz
54 + test? (
55 + https://github.com/py-pdf/sample-files/archive/${SAMPLE_COMMIT}.tar.gz
56 + -> ${PN}-sample-files-${SAMPLE_COMMIT}.gh.tar.gz
57 + )
58 +"
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 + # Needs network access
80 + tests/test_cmap.py
81 + tests/test_filters.py::test_decompress_zlib_error
82 + tests/test_filters.py::test_lzw_decode_neg1
83 + tests/test_generic.py::test_dict_read_from_stream
84 + tests/test_generic.py::test_parse_content_stream_peek_percentage
85 + tests/test_generic.py::test_read_inline_image_no_has_q
86 + tests/test_generic.py::test_read_inline_image_loc_neg_1
87 + tests/test_generic.py::test_text_string_write_to_stream
88 + tests/test_generic.py::test_name_object_read_from_stream_unicode_error
89 + tests/test_generic.py::test_bool_repr
90 + tests/test_generic.py::test_issue_997
91 + tests/test_merger.py::test1
92 + tests/test_merger.py::test_bookmark
93 + tests/test_merger.py::test_iss1145
94 + tests/test_merger.py::test_sweep_indirect_list_newobj_is_None
95 + tests/test_merger.py::test_sweep_recursion1
96 + tests/test_merger.py::test_sweep_recursion2
97 + tests/test_merger.py::test_trim_outline
98 + tests/test_merger.py::test_trim_outline_list
99 + tests/test_merger.py::test_zoom
100 + tests/test_merger.py::test_zoom_xyz_no_left
101 + tests/test_page.py::test_empyt_password_1088
102 + tests/test_page.py::test_extract_text_operator_t_star
103 + tests/test_page.py::test_extract_text_page_pdf
104 + tests/test_page.py::test_extract_text_page_pdf_impossible_decode_xform
105 + tests/test_page.py::test_extract_text_single_quote_op
106 + 'tests/test_page.py::test_page_operations[https://arxiv.org/pdf/2201.00029.pdf-None]'
107 + tests/test_reader.py::test_extract_text_pdf15
108 + tests/test_reader.py::test_extract_text_xref_issue_2
109 + tests/test_reader.py::test_extract_text_xref_issue_3
110 + tests/test_reader.py::test_extract_text_xref_table_21_bytes_clrf
111 + tests/test_reader.py::test_get_fields
112 + tests/test_reader.py::test_get_fields_read_else_block
113 + tests/test_reader.py::test_get_fields_read_else_block2
114 + tests/test_reader.py::test_get_fields_read_else_block3
115 + tests/test_reader.py::test_get_fields_read_write_report
116 + tests/test_reader.py::test_iss925
117 + tests/test_reader.py::test_metadata_is_none
118 + tests/test_reader.py::test_outline_color
119 + tests/test_reader.py::test_outline_font_format
120 + tests/test_reader.py::test_outline_with_empty_action
121 + tests/test_reader.py::test_outline_with_missing_named_destination
122 + tests/test_reader.py::test_read_form_416
123 + tests/test_reader.py::test_unexpected_destination
124 + tests/test_reader.py::test_unexpected_destination
125 + tests/test_reader.py::test_xfa_non_empty
126 + tests/test_reader.py::test_PdfReaderMultipleDefinitions
127 + tests/test_utils.py::test_deprecate_no_replacement
128 + tests/test_workflows.py::test_compress
129 + tests/test_workflows.py::test_extract_text
130 + tests/test_workflows.py::test_extract_textbench
131 + tests/test_workflows.py::test_get_fields
132 + tests/test_workflows.py::test_get_fonts
133 + tests/test_workflows.py::test_get_metadata
134 + tests/test_workflows.py::test_get_outline
135 + tests/test_workflows.py::test_image_extraction
136 + tests/test_workflows.py::test_merge
137 + tests/test_workflows.py::test_merge_with_warning
138 + tests/test_workflows.py::test_overlay
139 + tests/test_workflows.py::test_scale_rectangle_indirect_object
140 + tests/test_workflows.py::test_get_xfa
141 + tests/test_writer.py::test_sweep_indirect_references_nullobject_exception
142 + tests/test_writer.py::test_write_bookmark_on_page_fitv
143 + tests/test_xmp.py::test_custom_properties
144 + tests/test_xmp.py::test_dc_creator
145 + tests/test_xmp.py::test_dc_description
146 + tests/test_xmp.py::test_dc_subject
147 + tests/test_xmp.py::test_issue585
148 + tests/test_xmp.py::test_xmpmm
149 + tests/test_merger.py::test_outline_item
150 + tests/test_page.py::test_iss_1142
151 + tests/test_page.py::test_read_link_annotation
152 + tests/test_reader.py::test_named_destination
153 + tests/test_writer.py::test_write_outline_item_on_page_fitv
154 +
155 + # TODO
156 + tests/test_workflows.py::test_orientations
157 +)
158 +
159 +src_unpack() {
160 + default
161 + if use test; then
162 + mv "sample-files-${SAMPLE_COMMIT}"/* "${P}"/sample-files/ || die
163 + fi
164 +}