<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ec756621c0c1f621d50ef3cc822c878d730cc87a">https://github.com/macports/macports-ports/commit/ec756621c0c1f621d50ef3cc822c878d730cc87a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ec756621c0c1f621d50ef3cc822c878d730cc87a
</span>Author: Renee Otten <reneeotten@macports.org>
AuthorDate: Fri Apr 15 14:40:19 2022 -0400

<span style='display:block; white-space:pre;color:#404040;'>    py-lz4: update to 4.0.0
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes: https://trac.macports.org/ticket/64969
</span>---
 python/py-lz4/Portfile            | 19 +++++++++----------
 python/py-lz4/files/readall.patch | 33 ---------------------------------
 2 files changed, 9 insertions(+), 43 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-lz4/Portfile b/python/py-lz4/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c2ff06575ea..1baee732468 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-lz4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-lz4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem          1.0
</span> PortGroup           python 1.0
 
 name                py-lz4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version             2.2.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version             4.0.0
</span> revision            0
 
 supported_archs     noarch
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -16,11 +16,12 @@ long_description    ${description}
</span> 
 homepage            https://github.com/python-lz4/python-lz4
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums           rmd160  5c5e3e2087e99cbbcbf925b0e724204333893090 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    sha256  b666e2d04648f656b6af7d863bc7e50bd72bc00c5c569f89ead010c29c5facb4 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    size    141841
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums           rmd160  da129b7a0712a9ae6dd81dfd2a983ba2e26f12c0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  57c5dfd3b7dae833b0d2b2c1aafd7f9d0dfcab40683d183d010c67c9fd1beca3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    size    163729
</span> 
 python.versions     37 38 39 310
<span style='display:block; white-space:pre;background:#e0ffe0;'>+python.pep517       yes
</span> 
 if {${name} ne ${subport}} {
     depends_build-append \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,10 +31,9 @@ if {${name} ne ${subport}} {
</span>     depends_lib-append \
                     port:lz4
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    if {${python.version} >= 310} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        patchfiles-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    readall.patch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    build.env-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    PYLZ4_EXPERIMENTAL=TRUE
</span> 
     pre-test {
         test.env    PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -41,8 +41,7 @@ if {${name} ne ${subport}} {
</span> 
     depends_test-append \
                     port:py${python.version}-psutil \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                    port:py${python.version}-pytest \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    port:py${python.version}-pytest-runner
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:py${python.version}-pytest
</span> 
     test.run        yes
     test.cmd        py.test-${python.branch}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-lz4/files/readall.patch b/python/py-lz4/files/readall.patch
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index fcd8fad1853..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-lz4/files/readall.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,33 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Add readall to LZ4FrameFile and use it on python 3.10
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-https://github.com/python-lz4/python-lz4/issues/219
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-https://github.com/python-lz4/python-lz4/commit/55a1e2ff557662e99edb701b844ab5ec82d74f28
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- lz4/frame/__init__.py.orig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ lz4/frame/__init__.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -617,6 +617,17 @@ def peek(self, size=-1):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-         # returns at least one byte (except at EOF)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-         return self._buffer.peek(size)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+    def readall(self):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+        chunks = bytearray()
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+        while True:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+            data = self.read(io.DEFAULT_BUFFER_SIZE)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+            chunks += data
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+            if not data:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+                break
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+        return bytes(chunks)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-     def read(self, size=-1):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-         """Read up to ``size`` uncompressed bytes from the file.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -632,6 +643,9 @@ def read(self, size=-1):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-         """
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-         self._check_can_read()
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+        if size < 0 and sys.version_info >= (3, 10):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+            return self.readall()
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-         return self._buffer.read(size)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-     def read1(self, size=-1):
</span></pre><pre style='margin:0'>

</pre>