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.3.6
Date: Wed, 02 Dec 2026 03:44:07 GMT [thread overview]
Message-ID: <179618304753.1.4049367998965126586.rpms-python-imagecodecs-defc67454d06@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-imagecodecs
Branch : rawhide
Commit : defc67454d06a1be6bebb749b3431c8729cbf9a9
Author : Orion Poplawski <orion@nwra.com>
Date : 2026-12-01T20:43:58-07:00
Stats : +50/-2 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/python-imagecodecs/c/defc67454d06a1be6bebb749b3431c8729cbf9a9?branch=rawhide
Log:
Update to 2026.3.6
---
diff --git a/.gitignore b/.gitignore
index cbeb8a0..7b1e324 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/imagecodecs-2025.11.11.tar.gz
/imagecodecs-2026.1.1.tar.gz
/imagecodecs-2026.1.14.tar.gz
+/imagecodecs-2026.3.6.tar.gz
diff --git a/imagecodecs_distributor_setup.py b/imagecodecs_distributor_setup.py
index 8d7747f..d38ada5 100644
--- a/imagecodecs_distributor_setup.py
+++ b/imagecodecs_distributor_setup.py
@@ -6,6 +6,7 @@ def customize_build(EXTENSIONS, OPTIONS):
del EXTENSIONS['apng'] # apng patch not commonly available
del EXTENSIONS['bitshuffle'] # Uses 3rdparty source
del EXTENSIONS['brunsli'] # not available on Fedora
+ del EXTENSIONS['ccitt'] # Uses 3rdparty source
del EXTENSIONS['jetraw'] # commercial
del EXTENSIONS['jpegls'] # Fedora's charls is too old at the moment
del EXTENSIONS['jpegsof3'] # Uses 3rdparty source
@@ -16,6 +17,7 @@ def customize_build(EXTENSIONS, OPTIONS):
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['qoi'] # Uses 3rdparty source
del EXTENSIONS['rgbe'] # Uses 3rdparty source
diff --git a/python-imagecodecs-zarr2.patch b/python-imagecodecs-zarr2.patch
new file mode 100644
index 0000000..12a2ddd
--- /dev/null
+++ b/python-imagecodecs-zarr2.patch
@@ -0,0 +1,43 @@
+Subject: [PATCH] Handle padded dstsize when decoding Packints into preallocated out buffer
+
+When packints_encode pads the compressed stream to a byte/word boundary,
+packints_decode computes dstsize from the padded buffer length, which can
+exceed out.size by trailing padding elements and trigger ValueError in
+_imcd.pyx when zarr v2 passes a preallocated chunk buffer as out.
+
+Decode without out and copy up to out.size elements when out is provided.
+---
+ imagecodecs/numcodecs.py | 17 +++++++++++++++--
+ 1 file changed, 15 insertions(+), 2 deletions(-)
+
+diff -up imagecodecs-2026.3.6/imagecodecs/numcodecs.py.zarr2 imagecodecs-2026.3.6/imagecodecs/numcodecs.py
+--- imagecodecs-2026.3.6/imagecodecs/numcodecs.py.zarr2 2026-03-03 15:20:22.000000000 -0700
++++ imagecodecs-2026.3.6/imagecodecs/numcodecs.py 2026-12-01 20:40:59.009960223 -0700
+@@ -1898,13 +1898,26 @@ class Packints(Codec):
+ )
+
+ def decode(self, buf, out=None):
++ if out is not None:
++ decoded = imagecodecs.packints_decode(
++ buf,
++ self.dtype,
++ self.bitspersample,
++ bitorder=self.bitorder,
++ runlen=self.runlen,
++ )
++ out_arr = numpy.asarray(out)
++ if out_arr.dtype != decoded.dtype:
++ out_arr = out_arr.view(decoded.dtype)
++ n = min(out_arr.size, decoded.size)
++ out_arr.flat[:n] = decoded.flat[:n]
++ return out
+ return imagecodecs.packints_decode(
+ buf,
+ self.dtype,
+ self.bitspersample,
+ bitorder=self.bitorder,
+ runlen=self.runlen,
+- out=out,
+ )
+
+
diff --git a/python-imagecodecs.spec b/python-imagecodecs.spec
index 1e525d8..668db09 100644
--- a/python-imagecodecs.spec
+++ b/python-imagecodecs.spec
@@ -1,7 +1,7 @@
%global srcname imagecodecs
Name: python-imagecodecs
-Version: 2026.1.14
+Version: 2026.3.6
Release: %autorelease
Summary: Image transformation, compression, and decompression codecs
@@ -10,6 +10,8 @@ URL: https://pypi.org/project/imagecodecs/
Source: %{pypi_source}
# Build configuration
Source1: imagecodecs_distributor_setup.py
+# Patch to continue support for zarr 2.x
+Patch: python-imagecodecs-zarr2.patch
ExcludeArch: %{ix86}
diff --git a/sources b/sources
index 6589761..5640de5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (imagecodecs-2026.1.14.tar.gz) = 3b148c26ec90ec45004e96fdc24587586a2c49b19854604253fc609b0cc63ec4a1cd96852bc6ef806f6608555fbbc8d0e5ec1f56b101108f721b7464d778f2fe
+SHA512 (imagecodecs-2026.3.6.tar.gz) = d639381dab30833eaa2dc4a08e21a1197b8ca3f7bffea6bd785bd01246983fc64eb0aa29e8596db308a6d0fd4a9d08d824c74dde75a26d7291157603303f77e3
reply other threads:[~2026-12-02 3:44 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=179618304753.1.4049367998965126586.rpms-python-imagecodecs-defc67454d06@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