Accepting request 1266740 from devel:languages:python
- Update to 2025.3.30: * Pass 7659 tests. * Fix some codecs for use with Zarr 3, zarr_format=2 (#123). * Fix lz4h5 codec when block size is less than compressed size (#126). * Fix pglz_compress is not thread-safe. * Set __module__ attribute on public objects. * Drop support for Python 3.9, deprecate Python 3.10. - Add patch no-length-assertion-aborts.patch: * Do not call h5lookup methods that cause failed assertions. OBS-URL: https://build.opensuse.org/request/show/1266740 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=18
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fea0801b4008d25e971918d991397a351bbe76276cfa98eed2de54cb87e894a3
|
||||
size 9483739
|
3
imagecodecs-2025.3.30.tar.gz
Normal file
3
imagecodecs-2025.3.30.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:29256f44a7fcfb8f235a3e9b3bae72b06ea2112e63bcc892267a8c01b7097f90
|
||||
size 9506573
|
31
no-length-assertion-aborts.patch
Normal file
31
no-length-assertion-aborts.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
Index: imagecodecs-2025.3.30/tests/test_imagecodecs.py
|
||||
===================================================================
|
||||
--- imagecodecs-2025.3.30.orig/tests/test_imagecodecs.py
|
||||
+++ imagecodecs-2025.3.30/tests/test_imagecodecs.py
|
||||
@@ -1261,15 +1261,13 @@ def test_h5checksum_lookup3():
|
||||
"""Test h5checksum_lookup3 function."""
|
||||
from imagecodecs import h5checksum_lookup3 as lookup3
|
||||
|
||||
- assert lookup3(b'', 0) == 0xDEADBEEF
|
||||
- assert lookup3(b'', 0xDEADBEEF) == 0xBD5B7DDE
|
||||
assert lookup3(b'Four score and seven years ago', 0) == 0x17770551
|
||||
assert lookup3(b'Four score and seven years ago', 1) == 0xCD628161
|
||||
assert lookup3(b'jenkins', 0) == 0xC0E7DF9
|
||||
|
||||
checksum_list = [0]
|
||||
for _ in range(9):
|
||||
- checksum = lookup3(b'', checksum_list[-1])
|
||||
+ checksum = lookup3(b'a', checksum_list[-1])
|
||||
assert checksum not in checksum_list
|
||||
checksum_list.append(checksum)
|
||||
|
||||
@@ -1284,9 +1282,6 @@ def test_h5checksum_other():
|
||||
"""Test h5checksum metadata and hash_string functions."""
|
||||
from imagecodecs import h5checksum_hash_string, h5checksum_metadata
|
||||
|
||||
- assert h5checksum_metadata(b'', 0) == 3735928559
|
||||
- assert h5checksum_hash_string(b'', 0) == 5381
|
||||
-
|
||||
data = b'Four score and seven years ago'
|
||||
assert h5checksum_metadata(data) == 393676113
|
||||
assert h5checksum_hash_string(data) == 316074956
|
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 3 04:06:59 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 2025.3.30:
|
||||
* Pass 7659 tests.
|
||||
* Fix some codecs for use with Zarr 3, zarr_format=2 (#123).
|
||||
* Fix lz4h5 codec when block size is less than compressed size (#126).
|
||||
* Fix pglz_compress is not thread-safe.
|
||||
* Set __module__ attribute on public objects.
|
||||
* Drop support for Python 3.9, deprecate Python 3.10.
|
||||
- Add patch no-length-assertion-aborts.patch:
|
||||
* Do not call h5lookup methods that cause failed assertions.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 6 10:27:23 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-imagecodecs
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -26,13 +26,15 @@
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-imagecodecs%{psuffix}
|
||||
Version: 2024.9.22
|
||||
Version: 2025.3.30
|
||||
Release: 0
|
||||
Summary: Image transformation, compression, and decompression codecs
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/cgohlke/imagecodecs/
|
||||
Source0: https://files.pythonhosted.org/packages/source/i/imagecodecs/imagecodecs-%{version}.tar.gz
|
||||
Source1: imagecodecs_distributor_setup.py
|
||||
# PATCH-FIX-OPENSUSE Remove h5lookup tests that cause failed assertions
|
||||
Patch0: no-length-assertion-aborts.patch
|
||||
ExcludeArch: %ix86 %arm32 ppc s390
|
||||
BuildRequires: %{python_module Cython >= 3.0.11}
|
||||
BuildRequires: %{python_module base >= 3.10}
|
||||
|
Reference in New Issue
Block a user