forked from pool/python-imagecodecs
Compare commits
43 Commits
Author | SHA256 | Date | |
---|---|---|---|
12712a3267 | |||
57ae029bef | |||
08246d518f | |||
7b934b2bb6 | |||
e8d4f0b170 | |||
6848bc531c | |||
722a2dd5a4 | |||
f6330ec6fa | |||
84e882b236 | |||
769e707a33 | |||
967c3510f9 | |||
95989b50e2 | |||
d079e4d82d | |||
620d9a545d | |||
8c65f7dfe4 | |||
9c02223259 | |||
4879d6d2cc | |||
3ac346bdcc | |||
519ddf838e | |||
502793a086 | |||
8a26f0c6be | |||
9b87025fae | |||
4a5f84b1f4 | |||
3468cf65fd | |||
2b336ef261 | |||
ca587188c8 | |||
a703e24678 | |||
c84e56f8fa | |||
|
0ed7c839f5 | ||
b8f177977f | |||
9488f3439b | |||
3303e85a39 | |||
73b9a17614 | |||
|
88299ee7fe | ||
|
c232204244 | ||
791d08ea40 | |||
|
1daf82d201 | ||
74521b3f44 | |||
|
acd53791aa | ||
4160a7339c | |||
|
379e0e2de6 | ||
e1012dd22b | |||
|
95396eb11a |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:fde46bd698d008255deef5411c59b35c0e875295e835bf6079f7e2ab22f216eb
|
|
||||||
size 9452821
|
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:0f3e94b7f51e2f78287b7ffae82cd850b1007639148894538274fa50bd179886
|
|
||||||
size 9459867
|
|
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
|
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
|
||||||
|
|
||||||
def customize_build(EXTENSIONS, OPTIONS):
|
def customize_build(EXTENSIONS, OPTIONS):
|
||||||
|
|
||||||
@@ -19,6 +18,9 @@ def customize_build(EXTENSIONS, OPTIONS):
|
|||||||
del EXTENSIONS['mozjpeg'] # Win32 only
|
del EXTENSIONS['mozjpeg'] # Win32 only
|
||||||
del EXTENSIONS['pcodec'] # not available in Factory
|
del EXTENSIONS['pcodec'] # not available in Factory
|
||||||
del EXTENSIONS['sperr'] # not available in Factory
|
del EXTENSIONS['sperr'] # not available in Factory
|
||||||
|
del EXTENSIONS['jpegxs'] # jxs not available in Factory
|
||||||
|
del EXTENSIONS['sz3'] # SZ3c not available in Factory
|
||||||
|
del EXTENSIONS['ultrahdr'] # uhdr not available in Factory
|
||||||
|
|
||||||
EXTENSIONS['avif']['libraries'] = [
|
EXTENSIONS['avif']['libraries'] = [
|
||||||
'avif',
|
'avif',
|
||||||
@@ -38,3 +40,5 @@ def customize_build(EXTENSIONS, OPTIONS):
|
|||||||
EXTENSIONS['rcomp']['include_dirs'].append(includedir + 'cfitsio')
|
EXTENSIONS['rcomp']['include_dirs'].append(includedir + 'cfitsio')
|
||||||
EXTENSIONS['zopfli']['include_dirs'].append(includedir + 'zopfli')
|
EXTENSIONS['zopfli']['include_dirs'].append(includedir + 'zopfli')
|
||||||
EXTENSIONS['lzham']['libraries'] = ['lzhamdll']
|
EXTENSIONS['lzham']['libraries'] = ['lzhamdll']
|
||||||
|
# gh#gohlke/imagecodecs#111
|
||||||
|
EXTENSIONS['jpeg8']['sources'] = []
|
||||||
|
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,34 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Update to 2024.9.22
|
||||||
|
* Use libjpeg-turbo for all Lossless JPEG bit-depths if possible
|
||||||
|
(#105).
|
||||||
|
* Fix PackBits encoder fails to skip short replication blocks
|
||||||
|
(#107).
|
||||||
|
* Fix JPEG2K encoder leaving trailing random bytes (#104).
|
||||||
|
* Fix encoding and decoding JPEG XL with custom bitspersample
|
||||||
|
(#102).
|
||||||
|
* Improve error handling in lzf_decode (#103).
|
||||||
|
* Add Ultra HDR (JPEG_R) codec based on libultrahdr library
|
||||||
|
(#108).
|
||||||
|
* Add JPEGXS codec based on libjxs library (source only).
|
||||||
|
* Add SZ3 codec based on SZ3 library.
|
||||||
|
* Deprecate Python 3.9, support Python 3.13.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 14 14:51:22 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Wed Aug 14 14:51:22 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-imagecodecs
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -26,16 +26,18 @@
|
|||||||
%endif
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-imagecodecs%{psuffix}
|
Name: python-imagecodecs%{psuffix}
|
||||||
Version: 2024.6.1
|
Version: 2025.3.30
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Image transformation, compression, and decompression codecs
|
Summary: Image transformation, compression, and decompression codecs
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/cgohlke/imagecodecs/
|
URL: https://github.com/cgohlke/imagecodecs/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/i/imagecodecs/imagecodecs-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/i/imagecodecs/imagecodecs-%{version}.tar.gz
|
||||||
Source1: imagecodecs_distributor_setup.py
|
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
|
ExcludeArch: %ix86 %arm32 ppc s390
|
||||||
BuildRequires: %{python_module Cython >= 3}
|
BuildRequires: %{python_module Cython >= 3.0.11}
|
||||||
BuildRequires: %{python_module base >= 3.8}
|
BuildRequires: %{python_module base >= 3.10}
|
||||||
BuildRequires: %{python_module numpy-devel}
|
BuildRequires: %{python_module numpy-devel}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -68,7 +70,7 @@ BuildRequires: %{python_module numcodecs}
|
|||||||
BuildRequires: %{python_module pytest-xdist}
|
BuildRequires: %{python_module pytest-xdist}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module python-snappy}
|
BuildRequires: %{python_module python-snappy}
|
||||||
BuildRequires: %{python_module scikit-image}
|
BuildRequires: %{python_module scikit-image if %python-base < 3.13}
|
||||||
BuildRequires: %{python_module tifffile}
|
BuildRequires: %{python_module tifffile}
|
||||||
BuildRequires: %{python_module zarr}
|
BuildRequires: %{python_module zarr}
|
||||||
BuildRequires: %{python_module zstd}
|
BuildRequires: %{python_module zstd}
|
||||||
@@ -97,6 +99,7 @@ BuildRequires: snappy-devel
|
|||||||
BuildRequires: sz2-devel
|
BuildRequires: sz2-devel
|
||||||
BuildRequires: xz-devel
|
BuildRequires: xz-devel
|
||||||
BuildRequires: zfp-devel
|
BuildRequires: zfp-devel
|
||||||
|
BuildRequires: pkgconfig(SvtAv1Enc)
|
||||||
BuildRequires: pkgconfig(blosc)
|
BuildRequires: pkgconfig(blosc)
|
||||||
BuildRequires: pkgconfig(blosc2) >= 2.7.1
|
BuildRequires: pkgconfig(blosc2) >= 2.7.1
|
||||||
BuildRequires: pkgconfig(bzip2)
|
BuildRequires: pkgconfig(bzip2)
|
||||||
@@ -105,16 +108,14 @@ BuildRequires: pkgconfig(lcms2) >= 2.16
|
|||||||
BuildRequires: pkgconfig(libavif) >= 1.0.0
|
BuildRequires: pkgconfig(libavif) >= 1.0.0
|
||||||
BuildRequires: pkgconfig(libbrotlicommon)
|
BuildRequires: pkgconfig(libbrotlicommon)
|
||||||
BuildRequires: pkgconfig(libheif)
|
BuildRequires: pkgconfig(libheif)
|
||||||
# Tests fail if enabled
|
|
||||||
# BuildRequires: pkgconfig(libturbojpeg)
|
|
||||||
BuildRequires: pkgconfig(libjxl) >= 0.9
|
BuildRequires: pkgconfig(libjxl) >= 0.9
|
||||||
BuildRequires: pkgconfig(SvtAv1Enc)
|
|
||||||
BuildRequires: pkgconfig(liblz4)
|
BuildRequires: pkgconfig(liblz4)
|
||||||
BuildRequires: pkgconfig(liblzma)
|
BuildRequires: pkgconfig(liblzma)
|
||||||
BuildRequires: pkgconfig(libopenjp2)
|
BuildRequires: pkgconfig(libopenjp2)
|
||||||
BuildRequires: pkgconfig(libpng)
|
BuildRequires: pkgconfig(libpng)
|
||||||
BuildRequires: pkgconfig(libsharpyuv)
|
BuildRequires: pkgconfig(libsharpyuv)
|
||||||
BuildRequires: pkgconfig(libtiff-4)
|
BuildRequires: pkgconfig(libtiff-4)
|
||||||
|
BuildRequires: pkgconfig(libturbojpeg) >= 3
|
||||||
BuildRequires: pkgconfig(libwebp)
|
BuildRequires: pkgconfig(libwebp)
|
||||||
BuildRequires: pkgconfig(libzstd)
|
BuildRequires: pkgconfig(libzstd)
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
@@ -146,6 +147,9 @@ rm imagecodecs/licenses/LICENSE-lzokay
|
|||||||
rm imagecodecs/licenses/LICENSE-mozjpeg
|
rm imagecodecs/licenses/LICENSE-mozjpeg
|
||||||
rm imagecodecs/licenses/LICENSE-pcodec
|
rm imagecodecs/licenses/LICENSE-pcodec
|
||||||
rm imagecodecs/licenses/LICENSE-sperr
|
rm imagecodecs/licenses/LICENSE-sperr
|
||||||
|
rm imagecodecs/licenses/LICENSE-libjxs
|
||||||
|
rm imagecodecs/licenses/LICENSE-sz3
|
||||||
|
rm imagecodecs/licenses/LICENSE-libultrahdr
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
|
@@ -1,11 +0,0 @@
|
|||||||
--- imagecodecs-2024.1.1.orig/setup.py
|
|
||||||
+++ imagecodecs-2024.1.1/setup.py
|
|
||||||
@@ -246,7 +246,7 @@ def customize_build_default(EXTENSIONS,
|
|
||||||
del EXTENSIONS['sperr'] # sperr not commonly available
|
|
||||||
del EXTENSIONS['zlibng'] # zlib-ng library not commonly available
|
|
||||||
|
|
||||||
- if 'arch' not in platform.platform():
|
|
||||||
+ if True:
|
|
||||||
del EXTENSIONS['jpegls'] # CharLS 2.1 library not commonly available
|
|
||||||
del EXTENSIONS['jpegxl'] # jpeg-xl library not commonly available
|
|
||||||
del EXTENSIONS['brunsli'] # Brunsli library not commonly available
|
|
Reference in New Issue
Block a user