From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CE8FD15808D for ; Tue, 19 Apr 2022 06:53:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD321E0845; Tue, 19 Apr 2022 06:53:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 67D29E0845 for ; Tue, 19 Apr 2022 06:53:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 411D03419B6 for ; Tue, 19 Apr 2022 06:53:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9AA54342 for ; Tue, 19 Apr 2022 06:53:46 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1650351200.c3ec427ca440b2414083291e19982faec6e37b6e.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/PyPDF2/files/, dev-python/PyPDF2/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/PyPDF2/Manifest dev-python/PyPDF2/PyPDF2-1.26.0-r2.ebuild dev-python/PyPDF2/PyPDF2-1.27.1.ebuild dev-python/PyPDF2/PyPDF2-1.27.3.ebuild dev-python/PyPDF2/PyPDF2-1.27.4.ebuild dev-python/PyPDF2/files/PyPDF2-1.26.0-py3-tests.patch X-VCS-Directories: dev-python/PyPDF2/ dev-python/PyPDF2/files/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: c3ec427ca440b2414083291e19982faec6e37b6e X-VCS-Branch: master Date: Tue, 19 Apr 2022 06:53:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4965057a-030f-4ce6-a297-8041843f6ed9 X-Archives-Hash: d16b63c8010c3470eb20641d12063e7f commit: c3ec427ca440b2414083291e19982faec6e37b6e Author: Arthur Zamarin gentoo org> AuthorDate: Tue Apr 19 06:53:20 2022 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Tue Apr 19 06:53:20 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3ec427c dev-python/PyPDF2: drop 1.26.0-r2, 1.27.1, 1.27.3, 1.27.4 Bug: https://bugs.gentoo.org/839354 Signed-off-by: Arthur Zamarin gentoo.org> dev-python/PyPDF2/Manifest | 4 --- dev-python/PyPDF2/PyPDF2-1.26.0-r2.ebuild | 33 ------------------ dev-python/PyPDF2/PyPDF2-1.27.1.ebuild | 39 ---------------------- dev-python/PyPDF2/PyPDF2-1.27.3.ebuild | 39 ---------------------- dev-python/PyPDF2/PyPDF2-1.27.4.ebuild | 39 ---------------------- .../PyPDF2/files/PyPDF2-1.26.0-py3-tests.patch | 35 ------------------- 6 files changed, 189 deletions(-) diff --git a/dev-python/PyPDF2/Manifest b/dev-python/PyPDF2/Manifest index a749db122873..d6ccd803c534 100644 --- a/dev-python/PyPDF2/Manifest +++ b/dev-python/PyPDF2/Manifest @@ -1,5 +1 @@ -DIST PyPDF2-1.26.0.tar.gz 77556 BLAKE2B 8ce9b95165a3841154b6e38e24ca5a4db434ceef9c55fbf2d146b379586160cb985948e0feb7aed135f601535d034ef79ddc1af58a670b07ff7d3621907022ec SHA512 7b427f1d099dcd687a718fb8d86e6f677ad45257414c6367e4dfacd8dfef7e3dbe3816027359868764981f36a30721f1731b4c23cbe2f35cfab1c64fb290b034 -DIST PyPDF2-1.27.1.gh.tar.gz 1170252 BLAKE2B 81049707d4dd406405ec994228226edfe7cde4d57007146893c5fec14a4e82355c427cac64a2e338945f06c5bce1802e64bf9b042770a2d2ea7da6ed6982908d SHA512 3bd00e7057af8d0f7fdea378b8fae463ce93d37c68997511df10c53b139c0cb13329143bdac133a825404ab459ab3ead64c455ac3e58ddd5097c2985f86c2a46 -DIST PyPDF2-1.27.3.gh.tar.gz 2036376 BLAKE2B fdb35cc61a0fe4c16de9a3717b03c276478a1810ce99996c391d50ccf9ae2d3e048201e95cf9d51e120674aaea2b6435c648ee238d1c9a45de50406c0b3df196 SHA512 01ec6d2f51e6b0865a6d1b5f7cc0297783ee745336b0d8be295c0b1234e1904f2904d49ebbb0f471e65325a75428ed9904f8c565cb7b7001fce27b22521a7f04 -DIST PyPDF2-1.27.4.gh.tar.gz 2037899 BLAKE2B 6f9a71504303959bd8c84d75e0c695e73ffc1927aa664c5ae8b43c678a692ea9c0b1c852d01ace4aa502dc2bba99c7047e373c427a1d044608d0300f5dd647fa SHA512 c0153226e996166ca5f4fa1f04a496afdc5a465dd427df64422748bad907184d18336dbc929b64b479483cf6e435fdeb1dd79d444bc9f4b8cd5f184acb3236f1 DIST PyPDF2-1.27.5.gh.tar.gz 2053469 BLAKE2B 1a01289145574a4551f1fa237e4c790dd866088787f5bc9afb529ea99424f4d211f1913737cf4a2c744ceae90568ca26612cc4956ff1eda5840624e41df76d78 SHA512 c1f77c7ea46e866da104cf05421ccf15870db07923ff5860a6b44c944d599b38e98d33d6042a155b0698ecd100d1c6f57aa7bb8904dd08e679f6560a578d4488 diff --git a/dev-python/PyPDF2/PyPDF2-1.26.0-r2.ebuild b/dev-python/PyPDF2/PyPDF2-1.26.0-r2.ebuild deleted file mode 100644 index 33e37401377e..000000000000 --- a/dev-python/PyPDF2/PyPDF2-1.26.0-r2.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) - -inherit distutils-r1 - -DESCRIPTION="Python library to work with PDF files" -HOMEPAGE="https://pypi.org/project/PyPDF2/ https://github.com/mstamy2/PyPDF2" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="amd64 ~arm64 ~ppc64 x86" -IUSE="examples" - -PATCHES=( "${FILESDIR}/${P}-py3-tests.patch" ) - -python_test() { - "${EPYTHON}" -m unittest Tests.tests || die "Tests failed under ${EPYTHON}" -} - -python_install_all() { - if use examples; then - docinto examples - dodoc -r Sample_Code/. - docompress -x /usr/share/doc/${PF}/examples - fi - distutils-r1_python_install_all -} diff --git a/dev-python/PyPDF2/PyPDF2-1.27.1.ebuild b/dev-python/PyPDF2/PyPDF2-1.27.1.ebuild deleted file mode 100644 index f2b04ef62173..000000000000 --- a/dev-python/PyPDF2/PyPDF2-1.27.1.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) - -inherit distutils-r1 - -DESCRIPTION="Python library to work with PDF files" -HOMEPAGE=" - https://pypi.org/project/PyPDF2/ - https://github.com/py-pdf/PyPDF2/ -" -SRC_URI=" - https://github.com/py-pdf/PyPDF2/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" -IUSE="examples" - -BDEPEND=" - dev-python/pillow[${PYTHON_USEDEP}] -" - -distutils_enable_tests pytest - -python_install_all() { - if use examples; then - docinto examples - dodoc -r Sample_Code/. - docompress -x /usr/share/doc/${PF}/examples - fi - distutils-r1_python_install_all -} diff --git a/dev-python/PyPDF2/PyPDF2-1.27.3.ebuild b/dev-python/PyPDF2/PyPDF2-1.27.3.ebuild deleted file mode 100644 index f2b04ef62173..000000000000 --- a/dev-python/PyPDF2/PyPDF2-1.27.3.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) - -inherit distutils-r1 - -DESCRIPTION="Python library to work with PDF files" -HOMEPAGE=" - https://pypi.org/project/PyPDF2/ - https://github.com/py-pdf/PyPDF2/ -" -SRC_URI=" - https://github.com/py-pdf/PyPDF2/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" -IUSE="examples" - -BDEPEND=" - dev-python/pillow[${PYTHON_USEDEP}] -" - -distutils_enable_tests pytest - -python_install_all() { - if use examples; then - docinto examples - dodoc -r Sample_Code/. - docompress -x /usr/share/doc/${PF}/examples - fi - distutils-r1_python_install_all -} diff --git a/dev-python/PyPDF2/PyPDF2-1.27.4.ebuild b/dev-python/PyPDF2/PyPDF2-1.27.4.ebuild deleted file mode 100644 index f2b04ef62173..000000000000 --- a/dev-python/PyPDF2/PyPDF2-1.27.4.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) - -inherit distutils-r1 - -DESCRIPTION="Python library to work with PDF files" -HOMEPAGE=" - https://pypi.org/project/PyPDF2/ - https://github.com/py-pdf/PyPDF2/ -" -SRC_URI=" - https://github.com/py-pdf/PyPDF2/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" -IUSE="examples" - -BDEPEND=" - dev-python/pillow[${PYTHON_USEDEP}] -" - -distutils_enable_tests pytest - -python_install_all() { - if use examples; then - docinto examples - dodoc -r Sample_Code/. - docompress -x /usr/share/doc/${PF}/examples - fi - distutils-r1_python_install_all -} diff --git a/dev-python/PyPDF2/files/PyPDF2-1.26.0-py3-tests.patch b/dev-python/PyPDF2/files/PyPDF2-1.26.0-py3-tests.patch deleted file mode 100644 index c74491b964a3..000000000000 --- a/dev-python/PyPDF2/files/PyPDF2-1.26.0-py3-tests.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 6b46d03ee3a5bd5c2c18fae8aec8a0020ee68add Mon Sep 17 00:00:00 2001 -From: Venelin Stoykov -Date: Sat, 26 Dec 2015 17:26:00 +0200 -Subject: [PATCH 2/3] Fix tests for Python 3 - ---- - Tests/tests.py | 11 ++++++----- - 1 file changed, 6 insertions(+), 5 deletions(-) - -diff --git a/Tests/tests.py b/Tests/tests.py -index fa93c10..83b5951 100644 ---- a/Tests/tests.py -+++ b/Tests/tests.py -@@ -27,14 +27,15 @@ def test_PdfReaderFileLoad(self): - ipdf_p1 = ipdf.getPage(0) - - # Retrieve the text of the PDF -- pdftext_file = open(os.path.join(RESOURCE_ROOT, 'crazyones.txt'), 'r') -- pdftext = pdftext_file.read() -- ipdf_p1_text = ipdf_p1.extractText().replace('\n', '') -+ with open(os.path.join(RESOURCE_ROOT, 'crazyones.txt'), 'rb') as pdftext_file: -+ pdftext = pdftext_file.read() -+ -+ ipdf_p1_text = ipdf_p1.extractText().replace('\n', '').encode('utf-8') - - # Compare the text of the PDF to a known source -- self.assertEqual(ipdf_p1_text.encode('utf-8', errors='ignore'), pdftext, -+ self.assertEqual(ipdf_p1_text, pdftext, - msg='PDF extracted text differs from expected value.\n\nExpected:\n\n%r\n\nExtracted:\n\n%r\n\n' -- % (pdftext, ipdf_p1_text.encode('utf-8', errors='ignore'))) -+ % (pdftext, ipdf_p1_text)) - - - class AddJsTestCase(unittest.TestCase): -