public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pynwb] rawhide: Update to 4.2.0
@ 2026-10-05 20:35 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-05 20:35 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pynwb
Branch : rawhide
Commit : b31b5132ac9743a669dddfc5bf3b76290f1a9873
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-10-01T12:08:28+01:00
Stats : +26/-56 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/python-pynwb/c/b31b5132ac9743a669dddfc5bf3b76290f1a9873?branch=rawhide
Log:
Update to 4.2.0
---
diff --git a/.gitignore b/.gitignore
index d3fd9c5..225c20a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,4 @@
/pynwb-2.7.0.tar.gz
/pynwb-2.8.3.tar.gz
/pynwb-3.1.3.tar.gz
+/pynwb-4.2.0.tar.gz
diff --git a/2207.patch b/2207.patch
deleted file mode 100644
index 5243047..0000000
--- a/2207.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 329c6cc2869751b932ca0fba201034e0cba913bf Mon Sep 17 00:00:00 2001
-From: "Benjamin A. Beasley" <code@musicinmybrain.net>
-Date: Thu, 25 Jun 2026 11:23:41 +0100
-Subject: [PATCH] =?UTF-8?q?In=20test=5Fimport=5Fstructure,=20don=E2=80=99t?=
- =?UTF-8?q?=20check=20dunder=20names?=
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Don’t check for names of the form `__foo__` in the module, except for
-`__version__` since it’s explicitly assigned. These are generally
-subject to change across Python interpreter versions. In particular,
-`__cached__` is no longer present in Python 3.15; see
-https://docs.python.org/3.14/reference/datamodel.html#module.__cached__.
----
- tests/back_compat/test_import_structure.py | 9 ---------
- 1 file changed, 9 deletions(-)
-
-diff --git a/tests/back_compat/test_import_structure.py b/tests/back_compat/test_import_structure.py
-index 86eabac72..709c5af83 100644
---- a/tests/back_compat/test_import_structure.py
-+++ b/tests/back_compat/test_import_structure.py
-@@ -30,15 +30,6 @@ def test_outer_import_structure(self):
- "TimeSeries",
- "TypeMap",
- "_HDF5IO",
-- "__builtins__",
-- "__cached__",
-- "__doc__",
-- "__file__",
-- "__loader__",
-- "__name__",
-- "__package__",
-- "__path__",
-- "__spec__",
- "__version__",
- "_due",
- "_version",
diff --git a/python-pynwb.spec b/python-pynwb.spec
index 39c5bde..a6fc284 100644
--- a/python-pynwb.spec
+++ b/python-pynwb.spec
@@ -1,3 +1,17 @@
+# Not yet packaged:
+# https://pypi.org/project/linkml-runtime/
+# https://pypi.org/project/schemasheets/
+# https://pypi.org/project/oaklib/
+%bcond termset 0
+# [Feature]: Support zarr-python v3
+# https://github.com/hdmf-dev/hdmf-zarr/issues/202
+# Incompatible with Zarr 3
+# https://bugzilla.redhat.com/show_bug.cgi?id=2338926
+#
+# Also, since 4.1.1, this would require https://pypi.org/project/hdmf-zarr/ to
+# be packaged as python-hdmf-zarr.
+%bcond zarr 0
+
# Run test suites upstream runs by default. Tests disabled here are
# optional and not run when running `test.py` without any arguments.
# Tests are listed in the order they appear in `test.py`.
@@ -23,7 +37,7 @@
%bcond test_validation_module 0
Name: python-pynwb
-Version: 3.1.3
+Version: 4.2.0
Release: %autorelease
Summary: Package for working with Neurodata stored in the NWB format
@@ -40,16 +54,6 @@ Source0: %{pypi_source pynwb}
# Man page hand-written for Fedora in groff_man(7) format from --help output
Source1: pynwb-validate.1
-# In test_import_structure, don’t check dunder names
-# https://github.com/NeurodataWithoutBorders/pynwb/pull/2207
-#
-# Fixes:
-#
-# python-pynwb fails to build with Python 3.15: test_outer_import_structure:
-# AssertionError: '__cached__' not found in ...
-# https://bugzilla.redhat.com/show_bug.cgi?id=2453852
-Patch: %{url}/pull/2207.patch
-
BuildArch: noarch
%global desc %{expand:
@@ -62,13 +66,19 @@ https://pynwb.readthedocs.io/en/latest/}
%package -n python3-pynwb
Summary: %{summary}
-BuildRequires: python3-devel
BuildRequires: python3-pytest
-# Required for tests, not listed in requirements*.txt
+# Required for tests, only listed as a doc dependency
BuildRequires: python3-matplotlib
%description -n python3-pynwb %{desc}
+%if %{with zarr}
+%pyproject_extras_subpkg -n python3-pynwb zarr
+%endif
+%if %{with termset}
+%pyproject_extras_subpkg -n python3-pynwb termset
+%endif
+
%prep
%autosetup -n pynwb-%{version} -p1
@@ -79,9 +89,6 @@ find src -type f -name .codespellrc -print -delete
sed -r -i 's@"coverage", "run", "-p"@"%{python3}"@' \
tests/validation/test_validate.py
-sed -r -i 's/==.*//' requirements.txt | tee requirements-unpinned.txt
-#sed -i -e "s/h5py>.*'/h5py'/" -e "s/numpy>.*'/numpy'/" -e "s/pandas>.*'/pandas'/" setup.py
-
# TODO: Why does this happen? It seems like it is an issue with our test
# environment rather than a real bug.
#
@@ -106,7 +113,7 @@ do
done
%generate_buildrequires
-%pyproject_buildrequires requirements-unpinned.txt
+%pyproject_buildrequires %{?with_zarr:-x zarr} %{?with_termset:-x termset}
%build
%pyproject_wheel
diff --git a/sources b/sources
index 82ea8fb..0fd7495 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pynwb-3.1.3.tar.gz) = 7c36321673b29a468ff7582da506a253bf381a8de169051e72e8401962143652e75558df3f39f7d4e0618c8f881903b26cdd6c6f9aa02b2db26fa7ed9c3d5ed6
+SHA512 (pynwb-4.2.0.tar.gz) = 98944ef7baf9f228ae6e286958ff3d16cddce04a4f72c9be94183150ff47a4cb892bdd86bf56e90dfa7399296e74fd94857c1b8666d232fb431e3ae8351033f6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-05 20:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-05 20:35 [rpms/python-pynwb] rawhide: Update to 4.2.0 Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox