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/lz4/files/, dev-python/lz4/
Date: Tue, 28 Dec 2021 10:37:19
Message-Id: 1640687650.821bad62e5daab8aae03f55a63f5f86343296a89.mgorny@gentoo
1 commit: 821bad62e5daab8aae03f55a63f5f86343296a89
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 28 10:33:52 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 28 10:34:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=821bad62
7
8 dev-python/lz4: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/lz4/Manifest | 1 -
13 dev-python/lz4/files/lz4-3.1.3-310-readall.patch | 32 ------------------------
14 dev-python/lz4/lz4-3.1.3.ebuild | 32 ------------------------
15 3 files changed, 65 deletions(-)
16
17 diff --git a/dev-python/lz4/Manifest b/dev-python/lz4/Manifest
18 index cb7e6eb4ec3d..412d75d8147d 100644
19 --- a/dev-python/lz4/Manifest
20 +++ b/dev-python/lz4/Manifest
21 @@ -1,2 +1 @@
22 DIST lz4-3.1.10.tar.gz 162886 BLAKE2B d87a84e619b62b0fb13c942c5bee1ba78c1457e1f8bef093d5be732ea6b1481ad1de38a3e3e9e3479fb407477d43183b376fd1ce2a2b5d6289d293a6c79dc414 SHA512 61983e77fa445f59503ccf8ed5fe0605d79754cdeb166e16a7093a856b23369634db7d105d57b3829e680dad0a3728adec9d18dccd92c994347b74c5af95580e
23 -DIST lz4-3.1.3.tar.gz 159016 BLAKE2B 2ab86799cbd37b96550ebb5d0e1a3c301cbcee2a42c6da189f5ae0fee4eb9c5614860dd044363e2c9312e3ab275eb527a116210604a72bd74354f49589d6567b SHA512 170b5330a8ec0eb4d69f3692c54eaa384fd4de78a7e7db95721d2f1e521ae9558f814e63bbb31db2775a81f7cd7eaea1420ad2c96406cff95d25bc5d30811aba
24
25 diff --git a/dev-python/lz4/files/lz4-3.1.3-310-readall.patch b/dev-python/lz4/files/lz4-3.1.3-310-readall.patch
26 deleted file mode 100644
27 index 63b306b4e4f3..000000000000
28 --- a/dev-python/lz4/files/lz4-3.1.3-310-readall.patch
29 +++ /dev/null
30 @@ -1,32 +0,0 @@
31 -diff --git a/lz4/frame/__init__.py b/lz4/frame/__init__.py
32 -index 5fa03ce..b77c425 100644
33 ---- a/lz4/frame/__init__.py
34 -+++ b/lz4/frame/__init__.py
35 -@@ -617,6 +617,17 @@ class LZ4FrameFile(_compression.BaseStream):
36 - # returns at least one byte (except at EOF)
37 - return self._buffer.peek(size)
38 -
39 -+ def readall(self):
40 -+ chunks = bytearray()
41 -+
42 -+ while True:
43 -+ data = self.read(io.DEFAULT_BUFFER_SIZE)
44 -+ chunks += data
45 -+ if not data:
46 -+ break
47 -+
48 -+ return bytes(chunks)
49 -+
50 - def read(self, size=-1):
51 - """Read up to ``size`` uncompressed bytes from the file.
52 -
53 -@@ -632,6 +643,9 @@ class LZ4FrameFile(_compression.BaseStream):
54 -
55 - """
56 - self._check_can_read()
57 -+
58 -+ if size < 0 and sys.version_info >= (3, 10):
59 -+ return self.readall()
60 - return self._buffer.read(size)
61 -
62 - def read1(self, size=-1):
63
64 diff --git a/dev-python/lz4/lz4-3.1.3.ebuild b/dev-python/lz4/lz4-3.1.3.ebuild
65 deleted file mode 100644
66 index b86d4cd56978..000000000000
67 --- a/dev-python/lz4/lz4-3.1.3.ebuild
68 +++ /dev/null
69 @@ -1,32 +0,0 @@
70 -# Copyright 1999-2021 Gentoo Authors
71 -# Distributed under the terms of the GNU General Public License v2
72 -
73 -EAPI=7
74 -
75 -PYTHON_COMPAT=( python3_{7..10} )
76 -
77 -inherit distutils-r1
78 -
79 -DESCRIPTION="LZ4 Bindings for Python"
80 -HOMEPAGE="https://pypi.org/project/lz4/ https://github.com/python-lz4/python-lz4"
81 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
82 -
83 -SLOT="0"
84 -LICENSE="BSD"
85 -KEYWORDS="amd64 arm arm64 x86 ~amd64-linux ~x86-linux"
86 -
87 -RDEPEND="app-arch/lz4:="
88 -DEPEND=${RDEPEND}
89 -BDEPEND="
90 - dev-python/setuptools_scm[${PYTHON_USEDEP}]
91 - dev-python/pkgconfig[${PYTHON_USEDEP}]
92 - test? (
93 - dev-python/psutil[${PYTHON_USEDEP}]
94 - )
95 -"
96 -
97 -PATCHES=(
98 - "${FILESDIR}/${P}-310-readall.patch"
99 -)
100 -
101 -distutils_enable_tests pytest