public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Orion Poplawski <orion@nwra.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-imagecodecs] rawhide: Update to 2026.5.10
Date: Wed, 02 Dec 2026 05:13:01 GMT [thread overview]
Message-ID: <179618838168.1.18345504728528786603.rpms-python-imagecodecs-fbd3dba522f0@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-imagecodecs
Branch : rawhide
Commit : fbd3dba522f0ce83a8cd3c8a39878e7b8218ab8a
Author : Orion Poplawski <orion@nwra.com>
Date : 2026-12-01T22:12:45-07:00
Stats : +140/-4 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/python-imagecodecs/c/fbd3dba522f0ce83a8cd3c8a39878e7b8218ab8a?branch=rawhide
Log:
Update to 2026.5.10
---
diff --git a/.gitignore b/.gitignore
index 7b1e324..2ef6836 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
/imagecodecs-2026.1.1.tar.gz
/imagecodecs-2026.1.14.tar.gz
/imagecodecs-2026.3.6.tar.gz
+/imagecodecs-2026.5.10.tar.gz
diff --git a/imagecodecs_distributor_setup.py b/imagecodecs_distributor_setup.py
index d38ada5..3d3826e 100644
--- a/imagecodecs_distributor_setup.py
+++ b/imagecodecs_distributor_setup.py
@@ -7,18 +7,26 @@ def customize_build(EXTENSIONS, OPTIONS):
del EXTENSIONS['bitshuffle'] # Uses 3rdparty source
del EXTENSIONS['brunsli'] # not available on Fedora
del EXTENSIONS['ccitt'] # Uses 3rdparty source
+ EXTENSIONS['exr']['include_dirs'].extend(
+ (
+ '/usr/include/Imath',
+ '/usr/include/OpenEXR',
+ )
+ )
+ del EXTENSIONS['hcomp'] # Uses modified 3rdparty cfitsio source
del EXTENSIONS['jetraw'] # commercial
del EXTENSIONS['jpegls'] # Fedora's charls is too old at the moment
del EXTENSIONS['jpegsof3'] # Uses 3rdparty source
- del EXTENSIONS['jpegxl'] # requires static linking?
+ EXTENSIONS['jpegxl']['libraries'] = ['jxl', 'jxl_threads']
del EXTENSIONS['ljpeg'] # Uses 3rdparty source
del EXTENSIONS['lz4f'] # requires static linking
del EXTENSIONS['lzf'] # Uses 3rdparty source
del EXTENSIONS['lzham'] # Uses 3rdparty source
del EXTENSIONS['meshopt'] # Needs meshoptimizer.h
del EXTENSIONS['mozjpeg'] # Win32 only
- del EXTENSIONS['pixarlog'] # Uses 3rdparty source
del EXTENSIONS['pglz'] # Uses 3rdparty source
+ del EXTENSIONS['pixarlog'] # Uses 3rdparty source
+ del EXTENSIONS['plio'] # Uses modified 3rdparty cfitsio source
del EXTENSIONS['qoi'] # Uses 3rdparty source
del EXTENSIONS['rgbe'] # Uses 3rdparty source
del EXTENSIONS['spng'] # Uses 3rdparty source
@@ -46,3 +54,4 @@ def customize_build(EXTENSIONS, OPTIONS):
del EXTENSIONS['sperr'] # Uses 3rdparty source
del EXTENSIONS['sz3'] # Uses 3rdparty source
del EXTENSIONS['ultrahdr'] # Uses 3rdparty source
+ del EXTENSIONS['wic'] # Uses 3rdparty source
diff --git a/python-imagecodecs-zarr2.patch b/python-imagecodecs-zarr2.patch
index 12a2ddd..eac594c 100644
--- a/python-imagecodecs-zarr2.patch
+++ b/python-imagecodecs-zarr2.patch
@@ -41,3 +41,121 @@ diff -up imagecodecs-2026.3.6/imagecodecs/numcodecs.py.zarr2 imagecodecs-2026.3.
)
+diff -up imagecodecs-2026.5.10/imagecodecs/numcodecs.py.zarr2 imagecodecs-2026.5.10/imagecodecs/numcodecs.py
+--- imagecodecs-2026.5.10/imagecodecs/numcodecs.py.zarr2 2026-12-01 21:28:44.587335885 -0700
++++ imagecodecs-2026.5.10/imagecodecs/numcodecs.py 2026-12-01 21:38:18.015385051 -0700
+@@ -2886,9 +2886,14 @@ class Wavpack(Codec):
+ )
+
+ def decode(self, buf, out=None):
+- return imagecodecs.wavpack_decode(
+- buf, numthreads=self.numthreads, out=out
+- )
++ if out is not None:
++ decoded = imagecodecs.wavpack_decode(buf)
++ out_arr = numpy.asarray(out)
++ if out_arr.dtype != decoded.dtype:
++ out_arr = out_arr.view(decoded.dtype)
++ out_arr.flat[: decoded.size] = decoded.flat[: out_arr.size]
++ return out
++ return imagecodecs.wavpack_decode(buf)
+
+
+ class Wic(Codec):
+diff -up imagecodecs-2026.5.10/imagecodecs/numcodecs.py.zarr2 imagecodecs-2026.5.10/imagecodecs/numcodecs.py
+--- imagecodecs-2026.5.10/imagecodecs/numcodecs.py.zarr2 2026-12-01 21:38:18.015385051 -0700
++++ imagecodecs-2026.5.10/imagecodecs/numcodecs.py 2026-12-01 21:48:07.638309094 -0700
+@@ -840,7 +840,10 @@ class Cms(Codec):
+
+ def _reshape(self, buf):
+ """Reshape flat buffer to chunk array if shape/dtype are set."""
+- buf = numpy.asarray(buf)
++ if isinstance(buf, (bytes, bytearray, memoryview)):
++ buf = numpy.frombuffer(buf, dtype=numpy.uint8)
++ else:
++ buf = numpy.asarray(buf)
+ if self.shape is not None and self.dtype is not None:
+ buf = buf.view(numpy.dtype(self.dtype)).reshape(self.shape)
+ return buf
+diff -up imagecodecs-2026.5.10/imagecodecs/numcodecs.py.zarr2 imagecodecs-2026.5.10/imagecodecs/numcodecs.py
+--- imagecodecs-2026.5.10/imagecodecs/numcodecs.py.zarr2 2026-12-01 21:48:38.717232838 -0700
++++ imagecodecs-2026.5.10/imagecodecs/numcodecs.py 2026-12-01 21:51:48.308039813 -0700
+@@ -866,19 +866,25 @@ class Cms(Codec):
+
+ def decode(self, buf, out=None):
+ buf = self._reshape(buf)
+- return numpy.ascontiguousarray(
+- imagecodecs.cms_transform(
+- buf,
+- self.outprofile,
+- self.profile,
+- colorspace=self.outcolorspace,
+- outcolorspace=self.colorspace,
+- planar=self.outplanar,
+- outplanar=self.planar,
+- intent=self.intent,
+- flags=self.flags,
+- )
++ result = imagecodecs.cms_transform(
++ buf,
++ profile=self.outprofile,
++ colorspace=self.outcolorspace,
++ outprofile=self.profile,
++ outcolorspace=self.colorspace,
++ intent=self.intent,
++ flags=self.flags,
++ outplanar=self.outplanar,
++ out=None,
+ )
++ if out is not None:
++ out_arr = numpy.asarray(out)
++ if out_arr.dtype != result.dtype:
++ out_arr = out_arr.view(result.dtype)
++ n = min(out_arr.size, result.size)
++ out_arr.flat[:n] = result.flat[:n]
++ return out
++ return result
+
+ def get_config(self):
+ """Return dictionary holding configuration parameters."""
+diff -up imagecodecs-2026.5.10/imagecodecs/numcodecs.py.zarr2 imagecodecs-2026.5.10/imagecodecs/numcodecs.py
+--- imagecodecs-2026.5.10/imagecodecs/numcodecs.py.zarr2 2026-12-01 22:02:29.903239238 -0700
++++ imagecodecs-2026.5.10/imagecodecs/numcodecs.py 2026-12-01 22:09:09.074415715 -0700
+@@ -779,24 +779,29 @@ class Checksum(Codec):
+ return out
+
+ def decode(self, buf, out=None):
+- out = memoryview(buf)
++ view = memoryview(buf)
+ if self.prepend:
+- expect = int.from_bytes(out[:4], self.byteorder)
+- out = out[4:]
++ expect = int.from_bytes(view[:4], self.byteorder)
++ view = view[4:]
+ else:
+- expect = int.from_bytes(out[-4:], self.byteorder)
+- out = out[:-4]
++ expect = int.from_bytes(view[-4:], self.byteorder)
++ view = view[:-4]
+ if self.prefix is None:
+- checksum = self._checksum(out, self.value)
++ checksum = self._checksum(view, self.value)
+ else:
+- checksum = self._checksum(self.prefix + out, self.value)
++ checksum = self._checksum(self.prefix + view, self.value)
+ if checksum != expect:
+ msg = (
+ f'{self._checksum.__name__} checksum mismatch '
+ f'{checksum} != {expect}'
+ )
+ raise RuntimeError(msg)
+- return out
++ if out is not None:
++ out_arr = numpy.asarray(out).view(numpy.uint8)
++ src_arr = numpy.frombuffer(view, dtype=numpy.uint8)
++ out_arr.flat[: src_arr.size] = src_arr
++ return out
++ return view
+
+
+ class Cms(Codec):
diff --git a/python-imagecodecs.spec b/python-imagecodecs.spec
index 668db09..c5f9893 100644
--- a/python-imagecodecs.spec
+++ b/python-imagecodecs.spec
@@ -1,7 +1,7 @@
%global srcname imagecodecs
Name: python-imagecodecs
-Version: 2026.3.6
+Version: 2026.5.10
Release: %autorelease
Summary: Image transformation, compression, and decompression codecs
@@ -32,6 +32,7 @@ BuildRequires: libavif-devel >= 1.3.0
BuildRequires: libdeflate-devel
BuildRequires: libheif-devel
BuildRequires: libjpeg-turbo-devel >= 3
+BuildRequires: libjxl-devel
BuildRequires: liblerc-devel
BuildRequires: libopenjph-devel
BuildRequires: libpng-devel
@@ -41,9 +42,11 @@ BuildRequires: lz4-devel
%ifnarch s390x
BuildRequires: lzfse-devel
%endif
+BuildRequires: openexr-devel
# Uses 3rdparty source to use private function - https://github.com/cgohlke/imagecodecs/issues/77
#BuildRequires: openjpeg2-devel
BuildRequires: snappy-devel
+BuildRequires: wavpack-devel
BuildRequires: xz-devel
BuildRequires: zfp-devel
BuildRequires: zlib-ng-devel
@@ -116,6 +119,7 @@ export PYTHONPATH=.
%check
TEST_OPTS=(
+ -k "not (test_sperr or sperr)"
# TODO - tests/test_imagecodecs.py::test_cms_identity_transforms segfaults (various cases)
--deselect "tests/test_imagecodecs.py::test_cms_identity_transforms"
# TODO AssertionError
@@ -377,6 +381,10 @@ TEST_OPTS=(
--deselect "tests/test_imagecodecs.py::test_tifffile[lzma-True-f2->]"
--deselect "tests/test_imagecodecs.py::test_tifffile[lzma-True-f4-<]"
--deselect "tests/test_imagecodecs.py::test_tifffile[lzma-True-f4->]"
+ # Due to only decoding heif support in Fedora
+ --deselect "tests/test_numcodecs.py::test_numcodecs[heif-gray]"
+ --deselect "tests/test_numcodecs.py::test_numcodecs[heif-rgb]"
+ --deselect "tests/test_numcodecs.py::test_numcodecs[heif-stack]"
)
# A number of tests fail on ppc64le and s390x, ignore that for now
diff --git a/sources b/sources
index 5640de5..e517f0b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (imagecodecs-2026.3.6.tar.gz) = d639381dab30833eaa2dc4a08e21a1197b8ca3f7bffea6bd785bd01246983fc64eb0aa29e8596db308a6d0fd4a9d08d824c74dde75a26d7291157603303f77e3
+SHA512 (imagecodecs-2026.5.10.tar.gz) = a68152e14d62cad42722de475c37c9c8a052a5bca1032818dd1ccd0fb8a4caef88423ace8834a1c5d9d714c702b4711dfc088067493957ec957352b79a53e487
reply other threads:[~2026-12-02 5:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179618838168.1.18345504728528786603.rpms-python-imagecodecs-fbd3dba522f0@fedoraproject.org \
--to=orion@nwra.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox