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 <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2022-04-19 09:53:20 +03:00
parent 95184262e5
commit c3ec427ca4
6 changed files with 0 additions and 189 deletions

View File

@@ -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

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -1,35 +0,0 @@
From 6b46d03ee3a5bd5c2c18fae8aec8a0020ee68add Mon Sep 17 00:00:00 2001
From: Venelin Stoykov <vkstoykov@gmail.com>
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):