[gentoo-commits] repo/gentoo:master commit in: dev-python/lz4/files/, dev-python/lz4/

2021-12-28 Thread Michał Górny
commit: 821bad62e5daab8aae03f55a63f5f86343296a89
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Dec 28 10:33:52 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Dec 28 10:34:10 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=821bad62

dev-python/lz4: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/lz4/Manifest  |  1 -
 dev-python/lz4/files/lz4-3.1.3-310-readall.patch | 32 
 dev-python/lz4/lz4-3.1.3.ebuild  | 32 
 3 files changed, 65 deletions(-)

diff --git a/dev-python/lz4/Manifest b/dev-python/lz4/Manifest
index cb7e6eb4ec3d..412d75d8147d 100644
--- a/dev-python/lz4/Manifest
+++ b/dev-python/lz4/Manifest
@@ -1,2 +1 @@
 DIST lz4-3.1.10.tar.gz 162886 BLAKE2B 
d87a84e619b62b0fb13c942c5bee1ba78c1457e1f8bef093d5be732ea6b1481ad1de38a3e3e9e3479fb407477d43183b376fd1ce2a2b5d6289d293a6c79dc414
 SHA512 
61983e77fa445f59503ccf8ed5fe0605d79754cdeb166e16a7093a856b23369634db7d105d57b3829e680dad0a3728adec9d18dccd92c994347b74c5af95580e
-DIST lz4-3.1.3.tar.gz 159016 BLAKE2B 
2ab86799cbd37b96550ebb5d0e1a3c301cbcee2a42c6da189f5ae0fee4eb9c5614860dd044363e2c9312e3ab275eb527a116210604a72bd74354f49589d6567b
 SHA512 
170b5330a8ec0eb4d69f3692c54eaa384fd4de78a7e7db95721d2f1e521ae9558f814e63bbb31db2775a81f7cd7eaea1420ad2c96406cff95d25bc5d30811aba

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
deleted file mode 100644
index 63b306b4e4f3..
--- a/dev-python/lz4/files/lz4-3.1.3-310-readall.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-diff --git a/lz4/frame/__init__.py b/lz4/frame/__init__.py
-index 5fa03ce..b77c425 100644
 a/lz4/frame/__init__.py
-+++ b/lz4/frame/__init__.py
-@@ -617,6 +617,17 @@ class LZ4FrameFile(_compression.BaseStream):
- # returns at least one byte (except at EOF)
- return self._buffer.peek(size)
- 
-+def readall(self):
-+chunks = bytearray()
-+
-+while True:
-+data = self.read(io.DEFAULT_BUFFER_SIZE)
-+chunks += data
-+if not data:
-+break
-+
-+return bytes(chunks)
-+
- def read(self, size=-1):
- """Read up to ``size`` uncompressed bytes from the file.
- 
-@@ -632,6 +643,9 @@ class LZ4FrameFile(_compression.BaseStream):
- 
- """
- self._check_can_read()
-+
-+if size < 0 and sys.version_info >= (3, 10):
-+return self.readall()
- return self._buffer.read(size)
- 
- def read1(self, size=-1):

diff --git a/dev-python/lz4/lz4-3.1.3.ebuild b/dev-python/lz4/lz4-3.1.3.ebuild
deleted file mode 100644
index b86d4cd56978..
--- a/dev-python/lz4/lz4-3.1.3.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7..10} )
-
-inherit distutils-r1
-
-DESCRIPTION="LZ4 Bindings for Python"
-HOMEPAGE="https://pypi.org/project/lz4/ 
https://github.com/python-lz4/python-lz4;
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-SLOT="0"
-LICENSE="BSD"
-KEYWORDS="amd64 arm arm64 x86 ~amd64-linux ~x86-linux"
-
-RDEPEND="app-arch/lz4:="
-DEPEND=${RDEPEND}
-BDEPEND="
-   dev-python/setuptools_scm[${PYTHON_USEDEP}]
-   dev-python/pkgconfig[${PYTHON_USEDEP}]
-   test? (
-   dev-python/psutil[${PYTHON_USEDEP}]
-   )
-"
-
-PATCHES=(
-   "${FILESDIR}/${P}-310-readall.patch"
-)
-
-distutils_enable_tests pytest



[gentoo-commits] repo/gentoo:master commit in: dev-python/lz4/files/, dev-python/lz4/

2021-06-02 Thread Michał Górny
commit: 21d3fe04259d617da1e5204a635d1a5cac5e0efd
Author: Ekaterina Vaartis  kotobank  ch>
AuthorDate: Tue Jun  1 14:50:27 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Jun  2 19:46:27 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21d3fe04

dev-python/lz4: Bump to py3.10

Signed-off-by: Ekaterina Vaartis  kotobank.ch>
Closes: https://github.com/gentoo/gentoo/pull/21074
Signed-off-by: Michał Górny  gentoo.org>

 dev-python/lz4/files/lz4-3.1.3-310-readall.patch | 32 
 dev-python/lz4/lz4-3.1.3.ebuild  |  6 -
 2 files changed, 37 insertions(+), 1 deletion(-)

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
new file mode 100644
index 000..63b306b4e4f
--- /dev/null
+++ b/dev-python/lz4/files/lz4-3.1.3-310-readall.patch
@@ -0,0 +1,32 @@
+diff --git a/lz4/frame/__init__.py b/lz4/frame/__init__.py
+index 5fa03ce..b77c425 100644
+--- a/lz4/frame/__init__.py
 b/lz4/frame/__init__.py
+@@ -617,6 +617,17 @@ class LZ4FrameFile(_compression.BaseStream):
+ # returns at least one byte (except at EOF)
+ return self._buffer.peek(size)
+ 
++def readall(self):
++chunks = bytearray()
++
++while True:
++data = self.read(io.DEFAULT_BUFFER_SIZE)
++chunks += data
++if not data:
++break
++
++return bytes(chunks)
++
+ def read(self, size=-1):
+ """Read up to ``size`` uncompressed bytes from the file.
+ 
+@@ -632,6 +643,9 @@ class LZ4FrameFile(_compression.BaseStream):
+ 
+ """
+ self._check_can_read()
++
++if size < 0 and sys.version_info >= (3, 10):
++return self.readall()
+ return self._buffer.read(size)
+ 
+ def read1(self, size=-1):

diff --git a/dev-python/lz4/lz4-3.1.3.ebuild b/dev-python/lz4/lz4-3.1.3.ebuild
index d0b08c54db0..b86d4cd5697 100644
--- a/dev-python/lz4/lz4-3.1.3.ebuild
+++ b/dev-python/lz4/lz4-3.1.3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{7..10} )
 
 inherit distutils-r1
 
@@ -25,4 +25,8 @@ BDEPEND="
)
 "
 
+PATCHES=(
+   "${FILESDIR}/${P}-310-readall.patch"
+)
+
 distutils_enable_tests pytest



[gentoo-commits] repo/gentoo:master commit in: dev-python/lz4/files/, dev-python/lz4/

2021-02-21 Thread Michał Górny
commit: 3a997cc95211851416d0fa4d71f7a64cb9832dc6
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Feb 21 08:13:35 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Feb 21 08:23:18 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a997cc9

dev-python/lz4: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/lz4/Manifest|  2 --
 .../lz4/files/lz4-3.0.2-test-fail-skip.patch   | 19 -
 dev-python/lz4/lz4-3.1.1.ebuild| 33 --
 dev-python/lz4/lz4-3.1.2.ebuild| 28 --
 4 files changed, 82 deletions(-)

diff --git a/dev-python/lz4/Manifest b/dev-python/lz4/Manifest
index 1865ef79a68..94346fa3a8a 100644
--- a/dev-python/lz4/Manifest
+++ b/dev-python/lz4/Manifest
@@ -1,3 +1 @@
-DIST lz4-3.1.1.tar.gz 154325 BLAKE2B 
2d40728087aea735aeac4d39c415edf94f9aca83c77e4a36fe53f6f32f6c1595c0b1ad97c11f6e58cacafb95e0e12d29336d9f072d4f0d47f2d522f552a368bf
 SHA512 
b6ddcabcb323b88eeff1fa9cb91d379d6435ab51b2b51e080138892fbce57d92c8175e2ae1ef72e8a2f95429aaa4be66a5e8cd9d4dbc5bcd6b44ec26b7df96db
-DIST lz4-3.1.2.tar.gz 153729 BLAKE2B 
f7d8b1b6dd4ee59d07eb4c2108516f939041bb1f131c62925986c2ad49406222c3eeac5232528979d6277aa5c1a950999f7bb3e984ffe26788e9d92a7eccf2e8
 SHA512 
bd277baf83a4d7819c2deee64e053fc030c5ccff8d5ea91762bfad2c38d5922f5305f8435b060821e86480be06716fa826cd05f407188077cc20637122e7c397
 DIST lz4-3.1.3.tar.gz 159016 BLAKE2B 
2ab86799cbd37b96550ebb5d0e1a3c301cbcee2a42c6da189f5ae0fee4eb9c5614860dd044363e2c9312e3ab275eb527a116210604a72bd74354f49589d6567b
 SHA512 
170b5330a8ec0eb4d69f3692c54eaa384fd4de78a7e7db95721d2f1e521ae9558f814e63bbb31db2775a81f7cd7eaea1420ad2c96406cff95d25bc5d30811aba

diff --git a/dev-python/lz4/files/lz4-3.0.2-test-fail-skip.patch 
b/dev-python/lz4/files/lz4-3.0.2-test-fail-skip.patch
deleted file mode 100644
index 40e6be63ff0..000
--- a/dev-python/lz4/files/lz4-3.0.2-test-fail-skip.patch
+++ /dev/null
@@ -1,19 +0,0 @@
 a/tests/stream/test_stream_1.py2020-04-29 13:00:05.213776356 -0700
-+++ b/tests/stream/test_stream_1.py2020-04-29 13:16:33.958779776 -0700
-@@ -172,6 +172,8 @@
- 
- 
- def test_invalid_config_d_4(store_comp_size):
-+
-+pytest.skip('Known test failure, bug: 
https://github.com/python-lz4/python-lz4/issues/199')
- d_kwargs = {}
- d_kwargs['strategy'] = "double_buffer"
- d_kwargs['buffer_size'] = 1 << (8 * store_comp_size['store_comp_size'])
-@@ -231,6 +233,8 @@
- 
- 
- def test_invalid_config_d_5():
-+
-+pytest.skip('Known test failure, bug: 
https://github.com/python-lz4/python-lz4/issues/199')
- d_kwargs = {}
- d_kwargs['strategy'] = "double_buffer"

diff --git a/dev-python/lz4/lz4-3.1.1.ebuild b/dev-python/lz4/lz4-3.1.1.ebuild
deleted file mode 100644
index dce203cc7ad..000
--- a/dev-python/lz4/lz4-3.1.1.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7,8,9} )
-
-inherit distutils-r1
-
-DESCRIPTION="LZ4 Bindings for Python"
-HOMEPAGE="https://pypi.org/project/lz4/ 
https://github.com/python-lz4/python-lz4;
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-SLOT="0"
-LICENSE="BSD"
-KEYWORDS="amd64 arm arm64 x86 ~amd64-linux ~x86-linux"
-
-RDEPEND="app-arch/lz4"
-DEPEND="
-   ${RDEPEND}
-   dev-python/setuptools_scm[${PYTHON_USEDEP}]
-   dev-python/pkgconfig[${PYTHON_USEDEP}]
-   test? (
-   dev-python/psutil[${PYTHON_USEDEP}]
-   )
-"
-
-# known test failure: https://github.com/python-lz4/python-lz4/issues/199
-PATCHES=(
-   "${FILESDIR}/lz4-3.0.2-test-fail-skip.patch"
-)
-
-distutils_enable_tests pytest

diff --git a/dev-python/lz4/lz4-3.1.2.ebuild b/dev-python/lz4/lz4-3.1.2.ebuild
deleted file mode 100644
index a3e56121659..000
--- a/dev-python/lz4/lz4-3.1.2.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7,8,9} )
-
-inherit distutils-r1
-
-DESCRIPTION="LZ4 Bindings for Python"
-HOMEPAGE="https://pypi.org/project/lz4/ 
https://github.com/python-lz4/python-lz4;
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-SLOT="0"
-LICENSE="BSD"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
-
-RDEPEND="app-arch/lz4:="
-DEPEND=${RDEPEND}
-BDEPEND="
-   dev-python/setuptools_scm[${PYTHON_USEDEP}]
-   dev-python/pkgconfig[${PYTHON_USEDEP}]
-   test? (
-   dev-python/psutil[${PYTHON_USEDEP}]
-   )
-"
-
-distutils_enable_tests pytest



[gentoo-commits] repo/gentoo:master commit in: dev-python/lz4/files/, dev-python/lz4/

2020-05-08 Thread Brian Dolbec
commit: 1481a88b401bdefec806c0ba182f0277840259fd
Author: Brian Dolbec  gentoo  org>
AuthorDate: Fri May  8 19:02:53 2020 +
Commit: Brian Dolbec  gentoo  org>
CommitDate: Fri May  8 20:34:12 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1481a88b

dev-python/lz4: Version bump, adds python-3.8

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Brian Dolbec  gentoo.org>

 dev-python/lz4/Manifest|  1 +
 .../lz4/files/lz4-3.0.2-test-fail-skip.patch   | 19 +
 dev-python/lz4/lz4-3.0.2.ebuild| 32 ++
 3 files changed, 52 insertions(+)

diff --git a/dev-python/lz4/Manifest b/dev-python/lz4/Manifest
index accecfd1820..e8bc570e35f 100644
--- a/dev-python/lz4/Manifest
+++ b/dev-python/lz4/Manifest
@@ -1,2 +1,3 @@
 DIST lz4-0.8.2.tar.gz 30818 BLAKE2B 
ec51d733ebd33fcb00d3d3b634d11be39d92b14741a595139e23b5b067955a43ca325a0a655233a5ae3a62e18a1cf70cc21787d443703fc1a56ab7a765d5e2f4
 SHA512 
e516d5c3309f214fa422b040a0aacdda079395624dd4f5548ed7af637b1594012aac75b309cef260b41c10a623410f815fc089b54ca5d80955d5f2ead12841b1
 DIST lz4-2.1.6.tar.gz 129066 BLAKE2B 
1a739c54946150441ddd4025b4ce8bf79a718d64a714ca5cfeaf8712c73fa88c47e1823a08ec7ad50acd31cba5bc10292f4c9e0905d8b5965b789944dd6eca9f
 SHA512 
e37f9576f182adab263d8248e846c9f7d8a0260b2d2c5f94d74ebf3c2e51d91ba07d4bb0bf8a7560981a930fd380a2a3f5c4d21f4de5be3ae066d44a2246e9b5
+DIST lz4-3.0.2.tar.gz 152443 BLAKE2B 
3bf452b5b5ee65caed13b21fd7c39f32ccdea18e6d900facf74e3271868299a2da258b2b0058efaea12a3b42006f0ad0d17004692c95be951c173fee1a1162be
 SHA512 
c31116ee3cd70241b19bff6c59d1852d4c26ad5f0c9a56cd2ecec58e8c2751773162c7ac6a2d887e8cf537bc869ed8866929164f976849efa3ea041eacc4535a

diff --git a/dev-python/lz4/files/lz4-3.0.2-test-fail-skip.patch 
b/dev-python/lz4/files/lz4-3.0.2-test-fail-skip.patch
new file mode 100644
index 000..40e6be63ff0
--- /dev/null
+++ b/dev-python/lz4/files/lz4-3.0.2-test-fail-skip.patch
@@ -0,0 +1,19 @@
+--- a/tests/stream/test_stream_1.py2020-04-29 13:00:05.213776356 -0700
 b/tests/stream/test_stream_1.py2020-04-29 13:16:33.958779776 -0700
+@@ -172,6 +172,8 @@
+ 
+ 
+ def test_invalid_config_d_4(store_comp_size):
++
++pytest.skip('Known test failure, bug: 
https://github.com/python-lz4/python-lz4/issues/199')
+ d_kwargs = {}
+ d_kwargs['strategy'] = "double_buffer"
+ d_kwargs['buffer_size'] = 1 << (8 * store_comp_size['store_comp_size'])
+@@ -231,6 +233,8 @@
+ 
+ 
+ def test_invalid_config_d_5():
++
++pytest.skip('Known test failure, bug: 
https://github.com/python-lz4/python-lz4/issues/199')
+ d_kwargs = {}
+ d_kwargs['strategy'] = "double_buffer"

diff --git a/dev-python/lz4/lz4-3.0.2.ebuild b/dev-python/lz4/lz4-3.0.2.ebuild
new file mode 100644
index 000..f46bebe41b2
--- /dev/null
+++ b/dev-python/lz4/lz4-3.0.2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="LZ4 Bindings for Python"
+HOMEPAGE="https://pypi.org/project/lz4/ 
https://github.com/python-lz4/python-lz4;
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="app-arch/lz4"
+DEPEND="
+   ${RDEPEND}
+   dev-python/setuptools_scm[${PYTHON_USEDEP}]
+   dev-python/pkgconfig[${PYTHON_USEDEP}]
+   test? (
+   dev-python/psutil[${PYTHON_USEDEP}]
+   )
+"
+
+# known test failure: https://github.com/python-lz4/python-lz4/issues/199
+PATCHES=( "${FILESDIR}/lz4-3.0.2-test-fail-skip.patch"
+)
+
+distutils_enable_tests pytest