Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-nibabel for openSUSE:Factory
checked in at 2026-10-15 12:19:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nibabel (Old)
and /work/SRC/openSUSE:Factory/.python-nibabel.new.3698736 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nibabel"
Thu Oct 15 12:19:42 2026 rev:18 rq:1384869 version:5.4.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nibabel/python-nibabel.changes
2026-04-10 18:02:40.345766958 +0200
+++
/work/SRC/openSUSE:Factory/.python-nibabel.new.3698736/python-nibabel.changes
2026-10-15 12:20:35.336194842 +0200
@@ -1,0 +2,6 @@
+Thu Oct 15 00:51:40 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-python-315.patch:
+ * Support GzipFile compresslevel changes in 3.15.
+
+-------------------------------------------------------------------
New:
----
support-python-315.patch
----------(New B)----------
New:
- Add patch support-python-315.patch:
* Support GzipFile compresslevel changes in 3.15.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-nibabel.spec ++++++
--- /var/tmp/diff_new_pack.sFkZCu/_old 2026-10-15 12:20:36.067225418 +0200
+++ /var/tmp/diff_new_pack.sFkZCu/_new 2026-10-15 12:20:36.070225544 +0200
@@ -30,6 +30,8 @@
URL: https://nipy.org/nibabel
# SourceRepository: https://github.com/nipy/nibabel
Source:
https://files.pythonhosted.org/packages/source/n/nibabel/nibabel-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gh#nipy/nibabel#1569
+Patch0: support-python-315.patch
BuildRequires: %{python_module base >= 3.10}
BuildRequires: %{python_module hatch-vcs}
BuildRequires: %{python_module hatchling}
++++++ support-python-315.patch ++++++
>From 6909843f18b2fe887611dacaedecf5691b2a60db Mon Sep 17 00:00:00 2001
From: Steve Kowalik <[email protected]>
Date: Thu, 15 Oct 2026 11:41:26 +1100
Subject: [PATCH] Test: Specify compresslevel for GzipFile
Python 3.15 changed the default compresslevel for GzipFile from 9 to 6,
which breaks those two tests. Specify it since we rely on it being set
to 9.
---
nibabel/tests/test_openers.py | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/nibabel/tests/test_openers.py b/nibabel/tests/test_openers.py
index b0225d189..09e75bb3f 100644
--- a/nibabel/tests/test_openers.py
+++ b/nibabel/tests/test_openers.py
@@ -374,7 +374,7 @@ def test_DeterministicGzipFile():
# No filename, no mtime
with open('ref.gz', 'wb') as fobj:
- with GzipFile(filename='', mode='wb', fileobj=fobj, mtime=0) as
gzobj:
+ with GzipFile(filename='', mode='wb', compresslevel=9,
fileobj=fobj, mtime=0) as gzobj:
gzobj.write(msg)
anon_chksum = md5sum('ref.gz')
@@ -390,7 +390,9 @@ def test_DeterministicGzipFile():
# No filename, current mtime
now = time.time()
with open('ref.gz', 'wb') as fobj:
- with GzipFile(filename='', mode='wb', fileobj=fobj, mtime=now) as
gzobj:
+ with GzipFile(
+ filename='', mode='wb', compresslevel=9, fileobj=fobj,
mtime=now
+ ) as gzobj:
gzobj.write(msg)
now_chksum = md5sum('ref.gz')
@@ -405,7 +407,7 @@ def test_DeterministicGzipFile():
# GzipFile will use time.time()
with open('ref.gz', 'wb') as fobj:
- with GzipFile(filename='', mode='wb', fileobj=fobj) as gzobj:
+ with GzipFile(filename='', mode='wb', compresslevel=9,
fileobj=fobj) as gzobj:
gzobj.write(msg)
assert md5sum('ref.gz') == now_chksum
@@ -415,7 +417,7 @@ def test_DeterministicGzipFile():
assert md5sum('now.gz') == anon_chksum
# GzipFile is filename dependent, DeterministicGzipFile is independent
- with GzipFile('filenameA.gz', mode='wb', mtime=0) as gzobj:
+ with GzipFile('filenameA.gz', mode='wb', compresslevel=9, mtime=0) as
gzobj:
gzobj.write(msg)
fnameA_chksum = md5sum('filenameA.gz')
assert fnameA_chksum != anon_chksum
@@ -432,7 +434,7 @@ def test_DeterministicGzipFile_fileobj():
with InTemporaryDirectory():
msg = b"Hello, I'd like to have an argument."
with open('ref.gz', 'wb') as fobj:
- with GzipFile(filename='', mode='wb', fileobj=fobj, mtime=0) as
gzobj:
+ with GzipFile(filename='', mode='wb', compresslevel=9,
fileobj=fobj, mtime=0) as gzobj:
gzobj.write(msg)
ref_chksum = md5sum('ref.gz')