From 67332a323a7a8146696781494406e7edd54dd3beba5485a242d4caff3d316ff5 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 13 Mar 2023 08:05:43 +0000 Subject: [PATCH] Accepting request 1070961 from home:bnavigator:branches:devel:languages:python:numeric - Update to v4.3.2 * Fixups by @jonathanunderwood in #266 - Release 4.0.1 * Add flush method to LZ4FrameFile by @pedrovhb in #245 - Release 4.0.0 * This release relegates the stream bindings to experimental status and disables them in all wheel builds. This was necessary as the test suite was causing build failures on multiple architectures. These bindings are currently in an unmaintained state. - Clean specfile and test suite setup OBS-URL: https://build.opensuse.org/request/show/1070961 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lz4?expand=0&rev=25 --- lz4-3.1.10.tar.gz | 3 --- lz4-4.3.2.tar.gz | 3 +++ python-lz4.changes | 15 +++++++++++++++ python-lz4.spec | 29 ++++++++++++----------------- 4 files changed, 30 insertions(+), 20 deletions(-) delete mode 100644 lz4-3.1.10.tar.gz create mode 100644 lz4-4.3.2.tar.gz diff --git a/lz4-3.1.10.tar.gz b/lz4-3.1.10.tar.gz deleted file mode 100644 index a413d1b..0000000 --- a/lz4-3.1.10.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:439e575ecfa9ecffcbd63cfed99baefbe422ab9645b1e82278024d8a21d9720b -size 162886 diff --git a/lz4-4.3.2.tar.gz b/lz4-4.3.2.tar.gz new file mode 100644 index 0000000..c0de11e --- /dev/null +++ b/lz4-4.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1431d84a9cfb23e6773e72078ce8e65cad6745816d4cbf9ae67da5ea419acda +size 170869 diff --git a/python-lz4.changes b/python-lz4.changes index 47209c6..5a3e56c 100644 --- a/python-lz4.changes +++ b/python-lz4.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Sun Mar 12 03:00:40 UTC 2023 - Ben Greiner + +- Update to v4.3.2 + * Fixups by @jonathanunderwood in #266 +- Release 4.0.1 + * Add flush method to LZ4FrameFile by @pedrovhb in #245 +- Release 4.0.0 + * This release relegates the stream bindings to experimental + status and disables them in all wheel builds. This was necessary + as the test suite was causing build failures on multiple + architectures. These bindings are currently in an unmaintained + state. +- Clean specfile and test suite setup + ------------------------------------------------------------------- Mon Dec 13 20:23:17 UTC 2021 - Ben Greiner diff --git a/python-lz4.spec b/python-lz4.spec index 5b606e8..2d36402 100644 --- a/python-lz4.spec +++ b/python-lz4.spec @@ -1,7 +1,7 @@ # # spec file for package python-lz4 # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,26 +16,25 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-lz4 -Version: 3.1.10 +Version: 4.3.2 Release: 0 Summary: LZ4 Bindings for Python License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/python-lz4/python-lz4 Source: https://files.pythonhosted.org/packages/source/l/lz4/lz4-%{version}.tar.gz -BuildRequires: %{python_module devel} +BuildRequires: %{python_module devel >= 3.7} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pkgconfig} BuildRequires: %{python_module psutil} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes -BuildRequires: liblz4-devel +BuildRequires: liblz4-devel >= 1.7.5 BuildRequires: python-rpm-macros -Requires: python-psutil %python_subpackages %description @@ -43,30 +42,26 @@ This package provides python bindings for the lz4 compression library. %prep %setup -q -n lz4-%{version} -# do not set -O3 -sed -i -e '/-O3/d' setup.py %build # not neccessary, but ensure we use system lib rm -r lz4libs export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -# unit tests should be quick: -# test_block_decompress_mem_usage, test_1, test_2 -# or require less memory: -# test_huge*, test_invalid_config* -%pytest_arch -k 'not (test_1 or test_2 or test_block_decompress_mem_usage or test_huge or test_invalid_config)' +# lz4.stream is not compiled by default: https://github.com/python-lz4/python-lz4/issues/240 +ignoretest="--ignore tests/stream" +%pytest_arch $ignoretest %files %{python_files} %license LICENSE %doc README.rst %{python_sitearch}/lz4/ -%{python_sitearch}/lz4-%{version}-py*.egg-info/ +%{python_sitearch}/lz4-%{version}.dist-info %changelog