1
0

43 Commits

Author SHA256 Message Date
12712a3267 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
2025-04-03 14:50:05 +00:00
57ae029bef - 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/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=42
2025-04-03 04:08:27 +00:00
08246d518f Accepting request 1228806 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1228806
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=17
2024-12-08 10:37:17 +00:00
7b934b2bb6 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=40
2024-12-06 15:35:22 +00:00
e8d4f0b170 Accepting request 1193894 from devel:languages:python
- switch to modern python for sle15

OBS-URL: https://build.opensuse.org/request/show/1193894
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=16
2024-08-16 10:23:07 +00:00
6848bc531c Accepting request 1188317 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1188317
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=15
2024-07-19 13:26:54 +00:00
722a2dd5a4 - Update to 2024.6.1
* Pass 7486 tests.
  * Fix segfault in sperr_decode.
  * Fix segfault when strided-decoding into buffers with unexpected
    shapes (#98).
  * Fix jpeg2k_encoder output buffer too small (#101).
  * Add PCODEC codec based on pcodec library.
  * Support NumPy 2.
- Drop skip-rare-codecs.patch, restore and update
  imagecodecs_distributor_setup.py

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=36
2024-07-18 06:40:53 +00:00
f6330ec6fa Accepting request 1159128 from devel:languages:python
- replace imagecodecs_distributor_setup.py with
  skip-rare-codecs.patch: this setuptools hook does not get
  called anymore with PEP517 builds

- drop brunsli-devel as dependency until it actually ends up
  in factory

- remove 32bit builds

- Add brunsli-devel as new dependency (fixes aarch64 build)

OBS-URL: https://build.opensuse.org/request/show/1159128
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=14
2024-03-19 16:29:34 +00:00
84e882b236 - replace imagecodecs_distributor_setup.py with
skip-rare-codecs.patch: this setuptools hook does not get
  called anymore with PEP517 builds

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=34
2024-03-18 19:46:13 +00:00
769e707a33 M python-imagecodecs.spec
Diff for working copy: .
Index: python-imagecodecs.spec
===================================================================

--- python-imagecodecs.spec	(revision e87904b57a6b1535aabaced45c4bc670)
+++ python-imagecodecs.spec	(working copy)
@@ -95,6 +95,7 @@
 BuildRequires:  rav1e-devel
 BuildRequires:  snappy-devel
 BuildRequires:  sz2-devel
+BuildRequires:  xz-devel
 BuildRequires:  pkgconfig(blosc)
 BuildRequires:  pkgconfig(blosc2) >= 2.7.1
 BuildRequires:  pkgconfig(bzip2)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=33
2024-03-18 13:44:29 +00:00
967c3510f9 - drop brunsli-devel as dependency until it actually ends up
in factory

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=32
2024-03-18 12:27:43 +00:00
95989b50e2 - remove 32bit builds
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=31
2024-01-25 12:33:55 +00:00
d079e4d82d Accepting request 1140550 from home:Guillaume_G:branches:devel:languages:python
- Add brunsli-devel as new dependency (fixes aarch64 build)

OBS-URL: https://build.opensuse.org/request/show/1140550
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=30
2024-01-25 12:33:19 +00:00
620d9a545d Accepting request 1136655 from devel:languages:python
- update to 2024.1.1:
  * Add 8/24-bit BMP codec.
  * Add SPERR codec based on SPERR library.
  * Add LZO decoder based on lzokay library.
  * Add DICOMRLE decoder.
  * Enable float16 in CMS codec.
  * Enable MCT for lossless JPEG2K encoder (#88).
  * Ignore pad-byte in PackBits decoder (#86).
  * Fix heif_write_callback error message not set.
  * Require lcms2 2.16 with issue-420 fixes.
  * Require libjxl 0.9, libaec 1.1, Cython 3.

- update to 2023.9.18:
  * Rebuild with updated dependencies fixes CVE-2023-4863.
  * Map avif_encode level parameter to quality (breaking).
  * Support monochrome images in avif_encode.
  * Add numthreads parameter to avif_decode (fix imread of AVIF).
  * Add experimental quantize filter (BitGroom, BitRound, GBR)
    via nc4var.c.
  * Add LZ4H5 codec.
  * Support more BCn compressed DDS fourcc types.
  * Require libavif 1.0
  * Add EER (Electron Event Representation) decoder.
  * Add option to pass initial value to crc32 and adler32 checksum
    functions.
  * Add fletcher32 and lookup3 checksum functions
    via HDF5's h5checksum.c.
  * Add Checksum codec for numcodecs.
  * Rebuild with optimized compile flags.
  * Add BCn and DDS decoder via bcdec library.

OBS-URL: https://build.opensuse.org/request/show/1136655
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=13
2024-01-17 21:18:04 +00:00
8c65f7dfe4 - update to 2024.1.1:
* Add 8/24-bit BMP codec.
  * Add SPERR codec based on SPERR library.
  * Add LZO decoder based on lzokay library.
  * Add DICOMRLE decoder.
  * Enable float16 in CMS codec.
  * Enable MCT for lossless JPEG2K encoder (#88).
  * Ignore pad-byte in PackBits decoder (#86).
  * Fix heif_write_callback error message not set.
  * Require lcms2 2.16 with issue-420 fixes.
  * Require libjxl 0.9, libaec 1.1, Cython 3.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=28
2024-01-03 18:35:24 +00:00
9c02223259 - update to 2023.9.18:
* Rebuild with updated dependencies fixes CVE-2023-4863.
  * Map avif_encode level parameter to quality (breaking).
  * Support monochrome images in avif_encode.
  * Add numthreads parameter to avif_decode (fix imread of AVIF).
  * Add experimental quantize filter (BitGroom, BitRound, GBR)
    via nc4var.c.
  * Add LZ4H5 codec.
  * Support more BCn compressed DDS fourcc types.
  * Require libavif 1.0
  * Add EER (Electron Event Representation) decoder.
  * Add option to pass initial value to crc32 and adler32 checksum
    functions.
  * Add fletcher32 and lookup3 checksum functions
    via HDF5's h5checksum.c.
  * Add Checksum codec for numcodecs.
  * Rebuild with optimized compile flags.
  * Add BCn and DDS decoder via bcdec library.
  * Add functions to transcode JPEG XL to/from JPEG (#78).
  * Add option to decode select frames from animated WebP.
  * Use legacy JPEG8 codec when building without libjpeg-turbo 3
  * Change blosc2_encode defaults to match blosc2-python (breaking).
  * Fix segfault writing JPEG2K with more than 4 samples.
  * Fix some codecs returning bytearray by default.
  * Fully vendor cfitsio's ricecomp.c.
  * Drop support for Python 3.8 and numpy < 1.21 (NEP29).
- drop always-cythonize.patch, avif.patch, quantize.patch,
       cython3.patch, libavif.patch, integrate.patch,
       tests.patch: upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=27
2024-01-02 21:06:28 +00:00
4879d6d2cc Accepting request 1111059 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1111059
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=12
2023-09-14 14:26:05 +00:00
3ac346bdcc Accepting request 1111056 from home:mcalabkova:branches:devel:languages:python:numeric
- Add patches for the compatibility with libavif 1.0.0:
  * libavif.patch
  * quantize.patch
  * avif.patch
  * tests.patch
  * integrate.patch

OBS-URL: https://build.opensuse.org/request/show/1111056
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=25
2023-09-14 09:46:45 +00:00
519ddf838e Accepting request 1110836 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1110836
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=11
2023-09-13 18:45:40 +00:00
502793a086 Accepting request 1110636 from home:mcalabkova:branches:devel:languages:python
- Add patch cython3.patch to fix build

OBS-URL: https://build.opensuse.org/request/show/1110636
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=23
2023-09-13 07:39:12 +00:00
8a26f0c6be Accepting request 1074483 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1074483
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=10
2023-03-27 16:15:38 +00:00
9b87025fae Accepting request 1074234 from home:bnavigator:branches:devel:languages:python
- Update to 2023.3.16
  * Pass 6884 tests.
  * Require libjpeg-turbo 2.1.91 (3.0 beta) and c-blosc2 2.7.1.
  * Add experimental type hints.
  * Add SZIP codec via libaec library.
  * Use Zstd streaming API to decode blocks with unknown
    decompressed size.
  * Remove unused level, index, and numthreads parameters
    (breaking).
  * Make AEC and BLOSC constants enums (breaking).
  * Capitalize numcodecs class names (breaking).
  * Remove JPEG12 codec (breaking; use JPEG8 instead).
  * Encode and decode lossless and 12-bit JPEG with JPEG8 codec by
    default.
  * Remove JPEGSOF3 fallback in JPEG codec.
  * Fix slow IFD seeking with libtiff 4.5.
  * Fixes for Cython 3.0.
- Release 2023.1.23
  * Require libjxl 0.8.
  * Change mapping of level to distance parameter in jpegxl_encode.
  * Add option to specify bitspersample in jpegxl_encode.
  * Add option to pass de/linearize tables to LJPEG codec.
  * Fix lj92 decoder for SSSS=16 (#59).
  * Prefer ljpeg over jpegsof3 codec.
  * Add option to specify AVIF encoder codec.
  * Support LERC with Zstd or Deflate compression.
  * Squeeze chunk arrays by default in numcodecs image compression
    codecs.
- Skip testing with dask on python 3.11: no numba yet
- Add blosc2, SVT-AV1, jpegxl (libjxl)), SZIP (libsz2)

OBS-URL: https://build.opensuse.org/request/show/1074234
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=21
2023-03-26 16:57:03 +00:00
4a5f84b1f4 Accepting request 1060413 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1060413
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=9
2023-01-23 17:33:37 +00:00
3468cf65fd Accepting request 1060173 from home:bnavigator:branches:devel:languages:python
- Update to 2022.12.24
  * Pass 6512 tests.
  * Fix PNG codec error handling.
  * Fix truncated transferfunctions in cms_profile (#57).
  * Fix exceptions not raised in cdef functions not returning
    Python object.
- Release 2022.12.22
  * Require libtiff 4.5 (breaking).
  * Require libavif 0.11 (breaking).
  * Change jpegxl_encode level parameter to resemble libjpeg
    quality (breaking).
  * Add LZFSE codec via lzfse library.
  * Add LZHAM codec via lzham library.
  * Fix AttributeError in cms_profile (#52).
  * Support gamma argument in cms_profile (#53).
  * Raise limit of TIFF pages to 1048576.
  * Use libtiff thread-safe error/warning handlers.
  * Add option to specify filters and strategy in png_encode.
  * Add option to specify integrity check type in lzma_encode.
  * Fix DeprecationWarning with NumPy 1.24.

OBS-URL: https://build.opensuse.org/request/show/1060173
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=19
2023-01-23 12:54:52 +00:00
2b336ef261 Accepting request 1009271 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1009271
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=8
2022-10-11 16:02:42 +00:00
ca587188c8 Accepting request 1009084 from home:jayvdb:branches:devel:languages:python
- Update imagecodecs_distributor_setup.py to skip unbuildable exts
- Refresh always-cythonize.patch
- Enable s390x & ppc64 builds
- Update to v2022.9.26

OBS-URL: https://build.opensuse.org/request/show/1009084
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=17
2022-10-10 07:26:06 +00:00
a703e24678 Accepting request 903430 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/903430
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=7
2021-07-02 11:27:04 +00:00
c84e56f8fa Accepting request 903287 from home:bnavigator:branches:devel:languages:python
- Update to 2021.6.8
  * Pass 5185 tests.
  * Fix building with Cython 0.3a7.
  * Decode TIFF with JPEG compression, YCBCR or CMYK colorspace as RGB24.
  * Vendor cfitsio/ricecomp.c for shared library builds on Windows (#18).
- Release 2021.5.20
  * Add ZLIBNG codec via zlib-ng library.
  * Add RCOMP (Rice) codec via cfitsio library.
  * Fix decoding of 16-bit JPEG with jpeg_decode.
  * Relax user provided output array shape requirement.
- Release 2021.4.28
  * Change WebP default compression level to lossless.
  * Rename jpegxl codec to brunsli (breaking).
  * Add new JPEG XL codec via jpeg-xl library.
  * Add PGLZ codec via PostgreSQL's pg_lzcompress.c.
  * Update to libtiff 4.3 and libjpeg-turbo 2.1.
  * Enable JPEG 12-bit codec in manylinux wheels.
  * Drop manylinux2010 wheels.
- Release 2021.3.31
  * Add numcodecs compatible codecs for use by Zarr (experimental).
  * Support separate JPEG header in jpeg_decode.
  * Do not decode JPEG LS and XL in jpeg_decode (breaking).
  * Fix ZFP with partial header.
  * Fix JPEG LS tests (#15).
  * Fix LZ4F contentchecksum.
  * Remove blosc Snappy tests.
  * Fix docstrings.
- drop imagecodecs-pr15-test_jpegls.patch fixed upstream-
- refresh always-cythonize.patch

OBS-URL: https://build.opensuse.org/request/show/903287
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=16
2021-07-01 13:13:31 +00:00
0ed7c839f5 Accepting request 878358 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/878358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=6
2021-03-30 19:02:40 +00:00
b8f177977f Accepting request 878211 from home:bnavigator:branches:devel:languages:python
- Update to version 2021.2.26
  Pass 4915 tests. Support X2 and X4 floating point predictors
  (found in DNG).
- enable additional codecs through imagecodecs_distributor_setup.py
- Add imagecodecs-pr15-test_jpegls.patch
  gh#cgohlke/imagecodecs#15
- disable builds for big-endian platforms as per upstream README

OBS-URL: https://build.opensuse.org/request/show/878211
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=14
2021-03-11 15:26:27 +00:00
9488f3439b Accepting request 868482 from home:bnavigator:branches:devel:languages:python
- Update to version 2021.1.28
  * Add option to return JPEG XR fixed point pixel types as
    integers
  * Add LJPEG codec via liblj92 (alternative to JPEGSOF3 codec)
  * Change zopfli header location.
- refresh always-cythonize.patch
- drop zopfli-headers.patch fixed upstream
- Add more testing requirements to test backends
- Add skip reporting to pytest to see what is still missing

OBS-URL: https://build.opensuse.org/request/show/868482
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=13
2021-02-02 00:09:38 +00:00
3303e85a39 Accepting request 865546 from home:andythe_great
update to 2021.1.11

OBS-URL: https://build.opensuse.org/request/show/865546
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=12
2021-01-22 07:19:43 +00:00
73b9a17614 Accepting request 830235 from devel:languages:python
- Switch to multibuild to not cycle

- Add patch to enforce cythonization:
  * always-cythonize.patch
- Add patch to locate zopfli headers properly:
  * zopfli-headers.patch

- Update to 2020.5.30:
  * pythhon3 only
  * add support for more codecs

OBS-URL: https://build.opensuse.org/request/show/830235
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=5
2020-09-04 09:01:06 +00:00
88299ee7fe - Switch to multibuild to not cycle
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=10
2020-08-28 09:21:22 +00:00
c232204244 - Add patch to enforce cythonization:
* always-cythonize.patch
- Add patch to locate zopfli headers properly:
  * zopfli-headers.patch

- Update to 2020.5.30:
  * pythhon3 only
  * add support for more codecs

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=9
2020-08-28 09:00:57 +00:00
791d08ea40 Accepting request 808789 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/808789
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=4
2020-05-26 15:49:32 +00:00
1daf82d201 Accepting request 808757 from home:pgajdos:python
submit

OBS-URL: https://build.opensuse.org/request/show/808757
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=7
2020-05-25 13:34:25 +00:00
74521b3f44 Accepting request 796498 from devel:languages:python
- As the package is marked as py3 only drop the python2 deps

OBS-URL: https://build.opensuse.org/request/show/796498
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=3
2020-04-23 16:36:55 +00:00
acd53791aa - As the package is marked as py3 only drop the python2 deps
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=5
2020-04-23 10:59:08 +00:00
4160a7339c Accepting request 754755 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/754755
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=2
2019-12-07 14:08:22 +00:00
379e0e2de6 Accepting request 754754 from home:TheBlackCat:branches:devel:languages:python
Disable python2 support since dependencies dropped python2

OBS-URL: https://build.opensuse.org/request/show/754754
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=3
2019-12-06 18:50:56 +00:00
e1012dd22b Accepting request 721361 from devel:languages:python
image transformation, compression, and decompression codecs

OBS-URL: https://build.opensuse.org/request/show/721361
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagecodecs?expand=0&rev=1
2019-09-05 10:33:53 +00:00
95396eb11a Accepting request 720698 from home:jayvdb:imagecodecs
Fixed py2; sorry about that.
Also trimmed a few optional lib deps which are not working yet, and noted the doctests are failing

OBS-URL: https://build.opensuse.org/request/show/720698
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=1
2019-08-06 20:43:46 +00:00
8 changed files with 82 additions and 26 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fde46bd698d008255deef5411c59b35c0e875295e835bf6079f7e2ab22f216eb
size 9452821

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f3e94b7f51e2f78287b7ffae82cd850b1007639148894538274fa50bd179886
size 9459867

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:29256f44a7fcfb8f235a3e9b3bae72b06ea2112e63bcc892267a8c01b7097f90
size 9506573

View File

@ -2,7 +2,6 @@
import os
import subprocess
import sys
def customize_build(EXTENSIONS, OPTIONS):
@ -19,6 +18,9 @@ def customize_build(EXTENSIONS, OPTIONS):
del EXTENSIONS['mozjpeg'] # Win32 only
del EXTENSIONS['pcodec'] # 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'] = [
'avif',
@ -38,3 +40,5 @@ def customize_build(EXTENSIONS, OPTIONS):
EXTENSIONS['rcomp']['include_dirs'].append(includedir + 'cfitsio')
EXTENSIONS['zopfli']['include_dirs'].append(includedir + 'zopfli')
EXTENSIONS['lzham']['libraries'] = ['lzhamdll']
# gh#gohlke/imagecodecs#111
EXTENSIONS['jpeg8']['sources'] = []

View 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

View File

@ -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>

View File

@ -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,16 +26,18 @@
%endif
%{?sle15_python_module_pythons}
Name: python-imagecodecs%{psuffix}
Version: 2024.6.1
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}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module Cython >= 3.0.11}
BuildRequires: %{python_module base >= 3.10}
BuildRequires: %{python_module numpy-devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
@ -68,7 +70,7 @@ BuildRequires: %{python_module numcodecs}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
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 zarr}
BuildRequires: %{python_module zstd}
@ -97,6 +99,7 @@ BuildRequires: snappy-devel
BuildRequires: sz2-devel
BuildRequires: xz-devel
BuildRequires: zfp-devel
BuildRequires: pkgconfig(SvtAv1Enc)
BuildRequires: pkgconfig(blosc)
BuildRequires: pkgconfig(blosc2) >= 2.7.1
BuildRequires: pkgconfig(bzip2)
@ -105,16 +108,14 @@ BuildRequires: pkgconfig(lcms2) >= 2.16
BuildRequires: pkgconfig(libavif) >= 1.0.0
BuildRequires: pkgconfig(libbrotlicommon)
BuildRequires: pkgconfig(libheif)
# Tests fail if enabled
# BuildRequires: pkgconfig(libturbojpeg)
BuildRequires: pkgconfig(libjxl) >= 0.9
BuildRequires: pkgconfig(SvtAv1Enc)
BuildRequires: pkgconfig(liblz4)
BuildRequires: pkgconfig(liblzma)
BuildRequires: pkgconfig(libopenjp2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libsharpyuv)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(libturbojpeg) >= 3
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(zlib)
@ -146,6 +147,9 @@ rm imagecodecs/licenses/LICENSE-lzokay
rm imagecodecs/licenses/LICENSE-mozjpeg
rm imagecodecs/licenses/LICENSE-pcodec
rm imagecodecs/licenses/LICENSE-sperr
rm imagecodecs/licenses/LICENSE-libjxs
rm imagecodecs/licenses/LICENSE-sz3
rm imagecodecs/licenses/LICENSE-libultrahdr
%build
%if !%{with test}

View File

@ -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