Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-lz4 for openSUSE:Factory 
checked in at 2021-12-16 21:18:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-lz4 (Old)
 and      /work/SRC/openSUSE:Factory/.python-lz4.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-lz4"

Thu Dec 16 21:18:53 2021 rev:11 rq:940550 version:3.1.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-lz4/python-lz4.changes    2021-11-23 
22:12:22.726519081 +0100
+++ /work/SRC/openSUSE:Factory/.python-lz4.new.2520/python-lz4.changes  
2021-12-16 21:19:23.466523039 +0100
@@ -1,0 +2,11 @@
+Mon Dec 13 20:23:17 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- update to 3.1.10:
+  * LZ4FrameFile.write()/LZ4FrameDecompressor.decompress() handle
+    buffer protocol correctly (#227, #228). Thanks to @judahrand.
+  * Pass source_size kwarg through from frame.open to LZ4FrameFile
+    instance (#224, #225). Thanks to @shawnperdue.
+  * Add readall to LZ4FrameFile and use it on python 3.10 (#219,
+    #220). Thanks to @vaartis.
+
+-------------------------------------------------------------------

Old:
----
  lz4-3.1.3.tar.gz

New:
----
  lz4-3.1.10.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-lz4.spec ++++++
--- /var/tmp/diff_new_pack.9ej5zD/_old  2021-12-16 21:19:23.958523226 +0100
+++ /var/tmp/diff_new_pack.9ej5zD/_new  2021-12-16 21:19:23.962523228 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-lz4
-Version:        3.1.3
+Version:        3.1.10
 Release:        0
 Summary:        LZ4 Bindings for Python
 License:        BSD-3-Clause
@@ -29,7 +29,6 @@
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pkgconfig}
 BuildRequires:  %{python_module psutil}
-BuildRequires:  %{python_module pytest-cov}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}

++++++ lz4-3.1.3.tar.gz -> lz4-3.1.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lz4-3.1.3/.github/workflows/build_dist.yml 
new/lz4-3.1.10/.github/workflows/build_dist.yml
--- old/lz4-3.1.3/.github/workflows/build_dist.yml      1970-01-01 
01:00:00.000000000 +0100
+++ new/lz4-3.1.10/.github/workflows/build_dist.yml     2021-11-25 
23:38:34.000000000 +0100
@@ -0,0 +1,75 @@
+name: Build
+
+# on: [push, pull_request, release]
+
+on:
+  push:
+    branches:
+  release:
+    types: [created]
+  pull_request:
+
+jobs:
+  sdist:
+    name: Build source distribution
+    runs-on: ubuntu-latest
+    steps:
+    - name: Check out repository
+      uses: actions/checkout@v2
+    - name: Install Python 3.x
+      uses: actions/setup-python@v2
+      with:
+        python-version: 3.x
+    - name: Build sdist
+      run: python setup.py sdist
+    - name: Save sdist
+      uses: actions/upload-artifact@v2
+      with:
+        path: dist/*.tar.gz
+
+  wheels:
+    name: Build wheels on ${{ matrix.os }} CIBW_BUILD=${{ matrix.cibw_build }} 
CIBW_ARCHS_LINUX=${{ matrix.cibw_archs_linux }}
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ubuntu-latest, macOS-latest] # ,windows-latest] 
+        cibw_build: [cp36-*, cp37-*, cp38-*, cp39-*]
+        cibw_archs_linux: [auto, ] # aarch64]
+    steps:
+      - name: Check out repository
+        uses: actions/checkout@v2
+      - name: Install Python 3.x
+        uses: actions/setup-python@v2
+        with:
+          python-version: 3.x
+      - name: Set up QEMU  # Needed to build aarch64 wheels
+        if: runner.os == 'Linux' && matrix.cibw_archs_linux == 'aarch64'
+        uses: docker/setup-qemu-action@v1
+        with:
+          platforms: all
+      - name: Build wheels
+        uses: joerick/cibuildwheel@v1.11.1
+        env:
+          CIBW_ARCHS_LINUX: ${{ matrix.cibw_archs_linux }}
+          CIBW_BUILD: ${{ matrix.cibw_build }}
+          CIBW_TEST_COMMAND: "pushd {project} && tox tests && popd"
+          CIBW_BEFORE_BUILD: "python -m pip install -U pip && python -m pip 
install tox"
+      - name: Save wheels
+        uses: actions/upload-artifact@v2
+        with:
+          path: wheelhouse/*.whl
+
+  upload_pypi:
+    name: Upload to PyPI
+    needs: [sdist, wheels]
+    runs-on: ubuntu-latest
+    if: startsWith(github.ref, 'refs/tags/')
+    steps:
+      - uses: actions/download-artifact@v2
+        with:
+          name: artifact
+          path: dist
+      - uses: pypa/gh-action-pypi-publish@master
+        with:
+          password: ${{ secrets.PYPI_API_TOKEN }}
+          skip_existing: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lz4-3.1.3/PKG-INFO new/lz4-3.1.10/PKG-INFO
--- old/lz4-3.1.3/PKG-INFO      2021-01-19 09:58:46.000000000 +0100
+++ new/lz4-3.1.10/PKG-INFO     2021-11-25 23:38:45.659771700 +0100
@@ -1,84 +1,11 @@
 Metadata-Version: 2.1
 Name: lz4
-Version: 3.1.3
+Version: 3.1.10
 Summary: LZ4 Bindings for Python
 Home-page: https://github.com/python-lz4/python-lz4
 Author: Jonathan Underwood
 Author-email: jonathan.underw...@gmail.com
 License: UNKNOWN
-Description: ==========
-        python-lz4
-        ==========
-        
-        Status
-        ======
-        
-        .. image:: 
https://travis-ci.org/python-lz4/python-lz4.svg?branch=master
-           :target: https://travis-ci.org/python-lz4/python-lz4
-           :alt: Build Status
-        
-        .. image:: 
https://ci.appveyor.com/api/projects/status/r2qvw9mlfo63lklo/branch/master?svg=true
-           :target: 
https://ci.appveyor.com/project/jonathanunderwood/python-lz4
-           :alt: Build Status Windows
-        
-        .. image:: 
https://readthedocs.org/projects/python-lz4/badge/?version=stable
-           :target: https://readthedocs.org/projects/python-lz4/
-           :alt: Documentation
-        
-        .. image:: 
https://codecov.io/gh/python-lz4/python-lz4/branch/codecov/graph/badge.svg
-           :target: https://codecov.io/gh/python-lz4/python-lz4
-           :alt: CodeCov
-        
-        
-        Introduction
-        ============
-        This package provides python bindings for the `LZ4 compression library
-        <https://lz4.github.io/lz4/>`_.
-        
-        The bindings provided in this package cover the `frame format
-        <https://github.com/lz4/lz4/blob/master/doc/lz4_Frame_format.md>`_, 
the `block
-        format 
<https://github.com/lz4/lz4/blob/dev/doc/lz4_Block_format.md>`_, and the
-        `streaming format
-        
<https://github.com/lz4/lz4/blob/master/examples/streaming_api_basics.md>`_
-        specifications. The frame format bindings are the recommended ones to 
use, as
-        this guarantees interoperability with other implementations and 
language
-        bindings.
-        
-        The API provided by the frame format bindings follows that of the 
LZMA, zlib,
-        gzip and bzip2 compression libraries which are provided with the 
Python standard
-        library. As such, these LZ4 bindings should provide a drop-in 
alternative to the
-        compression libraries shipped with Python. The package provides 
context managers
-        and file handler support.
-        
-        The bindings drop the GIL when calling in to the underlying LZ4 
library, and is
-        thread safe. An extensive test suite is included.
-        
-        Documentation
-        =============
-        
-        .. image:: 
https://readthedocs.org/projects/python-lz4/badge/?version=stable
-           :target: https://readthedocs.org/projects/python-lz4/
-           :alt: Documentation
-        
-        Full documentation is included with the project. The documentation is
-        generated using Sphinx. Documentation is also hosted on readthedocs.
-        
-        :master: http://python-lz4.readthedocs.io/en/stable/
-        :development: http://python-lz4.readthedocs.io/en/latest/
-        
-        Homepage
-        ========
-        
-        The `project homepage <https://www.github.com/python-lz4/python-lz4>`_ 
is hosted
-        on Github. Please report any issues you find using the `issue tracker
-        <https://github.com/python-lz4/python-lz4/issues>`_.
-        
-        Licensing
-        =========
-        Code specific to this project is covered by the `BSD 3-Clause License
-        <http://opensource.org/licenses/BSD-3-Clause>`_
-        
-        
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: License :: OSI Approved :: BSD License
@@ -93,3 +20,79 @@
 Provides-Extra: tests
 Provides-Extra: docs
 Provides-Extra: flake8
+License-File: LICENSE
+
+==========
+python-lz4
+==========
+
+Status
+======
+
+.. image:: https://travis-ci.org/python-lz4/python-lz4.svg?branch=master
+   :target: https://travis-ci.org/python-lz4/python-lz4
+   :alt: Build Status
+
+.. image:: 
https://ci.appveyor.com/api/projects/status/r2qvw9mlfo63lklo/branch/master?svg=true
+   :target: https://ci.appveyor.com/project/jonathanunderwood/python-lz4
+   :alt: Build Status Windows
+
+.. image:: https://readthedocs.org/projects/python-lz4/badge/?version=stable
+   :target: https://readthedocs.org/projects/python-lz4/
+   :alt: Documentation
+
+.. image:: 
https://codecov.io/gh/python-lz4/python-lz4/branch/codecov/graph/badge.svg
+   :target: https://codecov.io/gh/python-lz4/python-lz4
+   :alt: CodeCov
+
+
+Introduction
+============
+This package provides python bindings for the `LZ4 compression library
+<https://lz4.github.io/lz4/>`_.
+
+The bindings provided in this package cover the `frame format
+<https://github.com/lz4/lz4/blob/master/doc/lz4_Frame_format.md>`_, the `block
+format <https://github.com/lz4/lz4/blob/dev/doc/lz4_Block_format.md>`_, and the
+`streaming format
+<https://github.com/lz4/lz4/blob/master/examples/streaming_api_basics.md>`_
+specifications. The frame format bindings are the recommended ones to use, as
+this guarantees interoperability with other implementations and language
+bindings.
+
+The API provided by the frame format bindings follows that of the LZMA, zlib,
+gzip and bzip2 compression libraries which are provided with the Python 
standard
+library. As such, these LZ4 bindings should provide a drop-in alternative to 
the
+compression libraries shipped with Python. The package provides context 
managers
+and file handler support.
+
+The bindings drop the GIL when calling in to the underlying LZ4 library, and is
+thread safe. An extensive test suite is included.
+
+Documentation
+=============
+
+.. image:: https://readthedocs.org/projects/python-lz4/badge/?version=stable
+   :target: https://readthedocs.org/projects/python-lz4/
+   :alt: Documentation
+
+Full documentation is included with the project. The documentation is
+generated using Sphinx. Documentation is also hosted on readthedocs.
+
+:master: http://python-lz4.readthedocs.io/en/stable/
+:development: http://python-lz4.readthedocs.io/en/latest/
+
+Homepage
+========
+
+The `project homepage <https://www.github.com/python-lz4/python-lz4>`_ is 
hosted
+on Github. Please report any issues you find using the `issue tracker
+<https://github.com/python-lz4/python-lz4/issues>`_.
+
+Licensing
+=========
+Code specific to this project is covered by the `BSD 3-Clause License
+<http://opensource.org/licenses/BSD-3-Clause>`_
+
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lz4-3.1.3/lz4/frame/__init__.py 
new/lz4-3.1.10/lz4/frame/__init__.py
--- old/lz4-3.1.3/lz4/frame/__init__.py 2021-01-19 09:49:32.000000000 +0100
+++ new/lz4-3.1.10/lz4/frame/__init__.py        2021-11-25 23:38:34.000000000 
+0100
@@ -387,6 +387,8 @@
             bytes: Uncompressed data
 
         """
+        if not isinstance(data, (bytes, bytearray)):
+            data = memoryview(data).tobytes()
 
         if self._unconsumed_data:
             data = self._unconsumed_data + data
@@ -617,6 +619,17 @@
         # 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 +645,9 @@
 
         """
         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):
@@ -679,9 +695,10 @@
     def write(self, data):
         """Write a bytes object to the file.
 
-        Returns the number of uncompressed bytes written, which is always
-        ``len(data)``. Note that due to buffering, the file on disk may not
-        reflect the data written until close() is called.
+        Returns the number of uncompressed bytes written, which is
+        always the length of data in bytes. Note that due to buffering,
+        the file on disk may not reflect the data written until close()
+        is called.
 
         Args:
             data(bytes): uncompressed data to compress and write to the file
@@ -690,11 +707,18 @@
             int: the number of uncompressed bytes written to the file
 
         """
+        if isinstance(data, (bytes, bytearray)):
+            length = len(data)
+        else:
+            # accept any data that supports the buffer protocol
+            data = memoryview(data)
+            length = data.nbytes
+
         self._check_can_write()
         compressed = self._compressor.compress(data)
         self._fp.write(compressed)
-        self._pos += len(data)
-        return len(data)
+        self._pos += length
+        return length
 
     def seek(self, offset, whence=io.SEEK_SET):
         """Change the file position.
@@ -829,6 +853,7 @@
         block_checksum=block_checksum,
         auto_flush=auto_flush,
         return_bytearray=return_bytearray,
+        source_size=source_size,
     )
 
     if 't' in mode:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lz4-3.1.3/lz4/version.py 
new/lz4-3.1.10/lz4/version.py
--- old/lz4-3.1.3/lz4/version.py        2021-01-19 09:58:46.000000000 +0100
+++ new/lz4-3.1.10/lz4/version.py       2021-11-25 23:38:45.000000000 +0100
@@ -1,5 +1,5 @@
 # coding: utf-8
 # file generated by setuptools_scm
 # don't change, don't track in version control
-version = '3.1.3'
-version_tuple = (3, 1, 3)
+version = '3.1.10'
+version_tuple = (3, 1, 10)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lz4-3.1.3/lz4.egg-info/PKG-INFO 
new/lz4-3.1.10/lz4.egg-info/PKG-INFO
--- old/lz4-3.1.3/lz4.egg-info/PKG-INFO 2021-01-19 09:58:46.000000000 +0100
+++ new/lz4-3.1.10/lz4.egg-info/PKG-INFO        2021-11-25 23:38:45.000000000 
+0100
@@ -1,84 +1,11 @@
 Metadata-Version: 2.1
 Name: lz4
-Version: 3.1.3
+Version: 3.1.10
 Summary: LZ4 Bindings for Python
 Home-page: https://github.com/python-lz4/python-lz4
 Author: Jonathan Underwood
 Author-email: jonathan.underw...@gmail.com
 License: UNKNOWN
-Description: ==========
-        python-lz4
-        ==========
-        
-        Status
-        ======
-        
-        .. image:: 
https://travis-ci.org/python-lz4/python-lz4.svg?branch=master
-           :target: https://travis-ci.org/python-lz4/python-lz4
-           :alt: Build Status
-        
-        .. image:: 
https://ci.appveyor.com/api/projects/status/r2qvw9mlfo63lklo/branch/master?svg=true
-           :target: 
https://ci.appveyor.com/project/jonathanunderwood/python-lz4
-           :alt: Build Status Windows
-        
-        .. image:: 
https://readthedocs.org/projects/python-lz4/badge/?version=stable
-           :target: https://readthedocs.org/projects/python-lz4/
-           :alt: Documentation
-        
-        .. image:: 
https://codecov.io/gh/python-lz4/python-lz4/branch/codecov/graph/badge.svg
-           :target: https://codecov.io/gh/python-lz4/python-lz4
-           :alt: CodeCov
-        
-        
-        Introduction
-        ============
-        This package provides python bindings for the `LZ4 compression library
-        <https://lz4.github.io/lz4/>`_.
-        
-        The bindings provided in this package cover the `frame format
-        <https://github.com/lz4/lz4/blob/master/doc/lz4_Frame_format.md>`_, 
the `block
-        format 
<https://github.com/lz4/lz4/blob/dev/doc/lz4_Block_format.md>`_, and the
-        `streaming format
-        
<https://github.com/lz4/lz4/blob/master/examples/streaming_api_basics.md>`_
-        specifications. The frame format bindings are the recommended ones to 
use, as
-        this guarantees interoperability with other implementations and 
language
-        bindings.
-        
-        The API provided by the frame format bindings follows that of the 
LZMA, zlib,
-        gzip and bzip2 compression libraries which are provided with the 
Python standard
-        library. As such, these LZ4 bindings should provide a drop-in 
alternative to the
-        compression libraries shipped with Python. The package provides 
context managers
-        and file handler support.
-        
-        The bindings drop the GIL when calling in to the underlying LZ4 
library, and is
-        thread safe. An extensive test suite is included.
-        
-        Documentation
-        =============
-        
-        .. image:: 
https://readthedocs.org/projects/python-lz4/badge/?version=stable
-           :target: https://readthedocs.org/projects/python-lz4/
-           :alt: Documentation
-        
-        Full documentation is included with the project. The documentation is
-        generated using Sphinx. Documentation is also hosted on readthedocs.
-        
-        :master: http://python-lz4.readthedocs.io/en/stable/
-        :development: http://python-lz4.readthedocs.io/en/latest/
-        
-        Homepage
-        ========
-        
-        The `project homepage <https://www.github.com/python-lz4/python-lz4>`_ 
is hosted
-        on Github. Please report any issues you find using the `issue tracker
-        <https://github.com/python-lz4/python-lz4/issues>`_.
-        
-        Licensing
-        =========
-        Code specific to this project is covered by the `BSD 3-Clause License
-        <http://opensource.org/licenses/BSD-3-Clause>`_
-        
-        
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: License :: OSI Approved :: BSD License
@@ -93,3 +20,79 @@
 Provides-Extra: tests
 Provides-Extra: docs
 Provides-Extra: flake8
+License-File: LICENSE
+
+==========
+python-lz4
+==========
+
+Status
+======
+
+.. image:: https://travis-ci.org/python-lz4/python-lz4.svg?branch=master
+   :target: https://travis-ci.org/python-lz4/python-lz4
+   :alt: Build Status
+
+.. image:: 
https://ci.appveyor.com/api/projects/status/r2qvw9mlfo63lklo/branch/master?svg=true
+   :target: https://ci.appveyor.com/project/jonathanunderwood/python-lz4
+   :alt: Build Status Windows
+
+.. image:: https://readthedocs.org/projects/python-lz4/badge/?version=stable
+   :target: https://readthedocs.org/projects/python-lz4/
+   :alt: Documentation
+
+.. image:: 
https://codecov.io/gh/python-lz4/python-lz4/branch/codecov/graph/badge.svg
+   :target: https://codecov.io/gh/python-lz4/python-lz4
+   :alt: CodeCov
+
+
+Introduction
+============
+This package provides python bindings for the `LZ4 compression library
+<https://lz4.github.io/lz4/>`_.
+
+The bindings provided in this package cover the `frame format
+<https://github.com/lz4/lz4/blob/master/doc/lz4_Frame_format.md>`_, the `block
+format <https://github.com/lz4/lz4/blob/dev/doc/lz4_Block_format.md>`_, and the
+`streaming format
+<https://github.com/lz4/lz4/blob/master/examples/streaming_api_basics.md>`_
+specifications. The frame format bindings are the recommended ones to use, as
+this guarantees interoperability with other implementations and language
+bindings.
+
+The API provided by the frame format bindings follows that of the LZMA, zlib,
+gzip and bzip2 compression libraries which are provided with the Python 
standard
+library. As such, these LZ4 bindings should provide a drop-in alternative to 
the
+compression libraries shipped with Python. The package provides context 
managers
+and file handler support.
+
+The bindings drop the GIL when calling in to the underlying LZ4 library, and is
+thread safe. An extensive test suite is included.
+
+Documentation
+=============
+
+.. image:: https://readthedocs.org/projects/python-lz4/badge/?version=stable
+   :target: https://readthedocs.org/projects/python-lz4/
+   :alt: Documentation
+
+Full documentation is included with the project. The documentation is
+generated using Sphinx. Documentation is also hosted on readthedocs.
+
+:master: http://python-lz4.readthedocs.io/en/stable/
+:development: http://python-lz4.readthedocs.io/en/latest/
+
+Homepage
+========
+
+The `project homepage <https://www.github.com/python-lz4/python-lz4>`_ is 
hosted
+on Github. Please report any issues you find using the `issue tracker
+<https://github.com/python-lz4/python-lz4/issues>`_.
+
+Licensing
+=========
+Code specific to this project is covered by the `BSD 3-Clause License
+<http://opensource.org/licenses/BSD-3-Clause>`_
+
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lz4-3.1.3/lz4.egg-info/SOURCES.txt 
new/lz4-3.1.10/lz4.egg-info/SOURCES.txt
--- old/lz4-3.1.3/lz4.egg-info/SOURCES.txt      2021-01-19 09:58:46.000000000 
+0100
+++ new/lz4-3.1.10/lz4.egg-info/SOURCES.txt     2021-11-25 23:38:45.000000000 
+0100
@@ -5,6 +5,7 @@
 setup.cfg
 setup.py
 tox.ini
+.github/workflows/build_dist.yml
 docs/Makefile
 docs/conf.py
 docs/contributors.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lz4-3.1.3/tests/block/test_block_0.py 
new/lz4-3.1.10/tests/block/test_block_0.py
--- old/lz4-3.1.3/tests/block/test_block_0.py   2021-01-19 09:49:32.000000000 
+0100
+++ new/lz4-3.1.10/tests/block/test_block_0.py  2021-11-25 23:38:34.000000000 
+0100
@@ -84,7 +84,7 @@
 
     data_in = [data for i in range(32)]
 
-    pool = ThreadPool(8)
+    pool = ThreadPool(2)
     rt = partial(roundtrip, c_kwargs=c_kwargs,
                  d_kwargs=d_kwargs, dictionary=dictionary)
     data_out = pool.map(rt, data_in)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lz4-3.1.3/tests/frame/test_frame_9.py 
new/lz4-3.1.10/tests/frame/test_frame_9.py
--- old/lz4-3.1.3/tests/frame/test_frame_9.py   2021-01-19 09:49:32.000000000 
+0100
+++ new/lz4-3.1.10/tests/frame/test_frame_9.py  2021-11-25 23:38:34.000000000 
+0100
@@ -1,5 +1,10 @@
+import array
 import os
+import io
+import pickle
+import sys
 import lz4.frame
+import pytest
 
 
 def test_issue_172_1():
@@ -42,3 +47,25 @@
         data = fp.read(16 * 1024 - 1)
         assert len(data) == 9 * 1024
         assert data == input_data
+
+
+def test_issue_227_1():
+    q = array.array('Q', [1, 2, 3, 4, 5])
+    LENGTH = len(q) * q.itemsize
+
+    with lz4.frame.open(io.BytesIO(), 'w') as f:
+        assert f.write(q) == LENGTH
+        assert f.tell() == LENGTH
+
+
+@pytest.mark.skipif(
+    sys.version_info < (3, 8),
+    reason="PickleBuffer only availiable in Python 3.8 or greater"
+)
+def test_issue_227_2():
+    q = array.array('Q', [1, 2, 3, 4, 5])
+
+    c = lz4.frame.compress(q)
+    d = lz4.frame.LZ4FrameDecompressor().decompress(pickle.PickleBuffer(c))
+
+    assert memoryview(q).tobytes() == d
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lz4-3.1.3/tests/stream/conftest.py 
new/lz4-3.1.10/tests/stream/conftest.py
--- old/lz4-3.1.3/tests/stream/conftest.py      2021-01-19 09:49:32.000000000 
+0100
+++ new/lz4-3.1.10/tests/stream/conftest.py     2021-11-25 23:38:34.000000000 
+0100
@@ -78,11 +78,11 @@
                 'store_comp_size': 2
             }
         ),
-        (
-            {
-                'store_comp_size': 4
-            }
-        ),
+        # (
+        #     {
+        #         'store_comp_size': 4
+        #     }
+        # ),
     ]
 )
 def store_comp_size(request):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lz4-3.1.3/tox.ini new/lz4-3.1.10/tox.ini
--- old/lz4-3.1.3/tox.ini       2021-01-19 09:49:32.000000000 +0100
+++ new/lz4-3.1.10/tox.ini      2021-11-25 23:38:34.000000000 +0100
@@ -1,11 +1,8 @@
 [tox]
 envlist = py,flake8,docs
 minversion = 2.4.0
-# Pinning more-itertools and specifying virtualenv minimum version are
-# workaround hacks for Python 2.7 and can be dropped when we drop support for
-# Python 2.7.
-requires = virtualenv >= 16.4.0
-    more-itertools==4.2.0
+requires = virtualenv
+    more-itertools
     pathlib2
 
 [testenv]

Reply via email to