4 Commits

Author SHA256 Message Date
7252dee697 Accepting request 1324294 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1324294
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-h5py?expand=0&rev=34
2025-12-24 12:16:14 +00:00
a27ed9e1fa - Update to 3.15.1
## New features
  * h5py.Dataset.iter_chunks() accepts slice objects with the None
    value for slice.start and slice.stop attributes, or integers
    (PR 2657). Example: dset.iter_chunks((slice(None, None), 4)).
    This is equivalent to dset[:,4].
  * A new track_times parameter when creating a group or a file to
    control whether creation, modification, change and access
    timestamps are stored for group objects (PR 2611). This is
    False by default.
  * Work to better support free-threaded mode in CPython (PR 2658,
    PR 2678). This is not substantially tested yet, but some of the
    most glaring issues have been resolved. See free-threading.
  ## Breaking Changes and Deprecations
  * Support for Python 3.9 was dropped. Python 3.10 or newer is now
    required to build or install h5py from this version on (PR
    2640).
  * The minimum supported version of HDF5 is now 1.10.7, and within
    the 1.12 series the minimum supported version is now 1.12.1 (PR
    2605).
  * Timestamps are no longer stored by default for groups
    (including the root group) if the track_order parameter is set
    (PR 2611). Previously, setting this parameter also caused
    timestamps to be stored in the file.
  ## Bug fixes
  * Fixed h5py.h5p.PropLAID.get_elink_prefix method (PR 2712).
  * Fixed a segfault reading unallocated variable length string
    data as NumPy variable length strings (PR 2630).
  * Fixed an error reading certain types of variable length data
    where an entry has 0 length (PR 2717).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-h5py?expand=0&rev=62
2025-12-23 15:08:24 +00:00
202ee848a6 Accepting request 1301158 from devel:languages:python:numeric
- Update to 3.14.0:
  * New Features
    + On NumPy 2.x, it is now possible to read and write native NumPy
      variable-width strings, a.k.a. StringDType() or dtype='T', which are
      more efficient than arrays of Python string objects.
    + New File.in_memory constructor to conveniently build an HDF5 file
      structure in memory
    + Dataset views returned by Dataset.astype, Dataset.asstr and
      Dataset.fields have gained the .dtype, .ndim, .shape, and .size
      attributes.
    + Opening an existing dataset in a file is faster since it now only loads
      the "dataset creation property list" when required.
  * Exposing HDF5 functions
    + h5py.h5d.DatasetID.write_direct_chunk now wraps H5Dwrite_chunk instead
      of H5DOwrite_chunk.
    + H5Sselect_shape_same exposed as h5py.h5s.SpaceID.select_shape_same.
  * Bug fixes
    + Fixed a problem with phil Lock handling in forked processes when h5py
      is also used from other threads.
    + Fixed an error using :meth:`.Dataset.read_direct` with a zero-size
      selection.
    + Fix various bugs when applying np.array or np.asarray to a Dataset view
      returned by Dataset.astype, Dataset.asstr, or Dataset.fields.
  * Building h5py
    + setuptools 77 or above is now required, due to changes in the license
      metadata in pyproject.toml.
    + Numpy variable-width string support does not alter the build process:
      you need NumPy 2.x to build.
    + Fixed building h5py with Numpy 2.3.

OBS-URL: https://build.opensuse.org/request/show/1301158
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-h5py?expand=0&rev=33
2025-08-25 18:38:27 +00:00
c58fd8ef65 - Update to 3.14.0:
* New Features
    + On NumPy 2.x, it is now possible to read and write native NumPy
      variable-width strings, a.k.a. StringDType() or dtype='T', which are
      more efficient than arrays of Python string objects.
    + New File.in_memory constructor to conveniently build an HDF5 file
      structure in memory
    + Dataset views returned by Dataset.astype, Dataset.asstr and
      Dataset.fields have gained the .dtype, .ndim, .shape, and .size
      attributes.
    + Opening an existing dataset in a file is faster since it now only loads
      the "dataset creation property list" when required.
  * Exposing HDF5 functions
    + h5py.h5d.DatasetID.write_direct_chunk now wraps H5Dwrite_chunk instead
      of H5DOwrite_chunk.
    + H5Sselect_shape_same exposed as h5py.h5s.SpaceID.select_shape_same.
  * Bug fixes
    + Fixed a problem with phil Lock handling in forked processes when h5py
      is also used from other threads.
    + Fixed an error using :meth:`.Dataset.read_direct` with a zero-size
      selection.
    + Fix various bugs when applying np.array or np.asarray to a Dataset view
      returned by Dataset.astype, Dataset.asstr, or Dataset.fields.
  * Building h5py
    + setuptools 77 or above is now required, due to changes in the license
      metadata in pyproject.toml.
    + Numpy variable-width string support does not alter the build process:
      you need NumPy 2.x to build.
    + Fixed building h5py with Numpy 2.3.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-h5py?expand=0&rev=60
2025-08-25 04:12:52 +00:00
4 changed files with 85 additions and 18 deletions

View File

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

3
h5py-3.15.1.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,72 @@
-------------------------------------------------------------------
Mon Dec 22 12:05:57 UTC 2025 - Ben Greiner <code@bnavigator.de>
- Update to 3.15.1
## New features
* h5py.Dataset.iter_chunks() accepts slice objects with the None
value for slice.start and slice.stop attributes, or integers
(PR 2657). Example: dset.iter_chunks((slice(None, None), 4)).
This is equivalent to dset[:,4].
* A new track_times parameter when creating a group or a file to
control whether creation, modification, change and access
timestamps are stored for group objects (PR 2611). This is
False by default.
* Work to better support free-threaded mode in CPython (PR 2658,
PR 2678). This is not substantially tested yet, but some of the
most glaring issues have been resolved. See free-threading.
## Breaking Changes and Deprecations
* Support for Python 3.9 was dropped. Python 3.10 or newer is now
required to build or install h5py from this version on (PR
2640).
* The minimum supported version of HDF5 is now 1.10.7, and within
the 1.12 series the minimum supported version is now 1.12.1 (PR
2605).
* Timestamps are no longer stored by default for groups
(including the root group) if the track_order parameter is set
(PR 2611). Previously, setting this parameter also caused
timestamps to be stored in the file.
## Bug fixes
* Fixed h5py.h5p.PropLAID.get_elink_prefix method (PR 2712).
* Fixed a segfault reading unallocated variable length string
data as NumPy variable length strings (PR 2630).
* Fixed an error reading certain types of variable length data
where an entry has 0 length (PR 2717).
* Fixed some SyntaxWarnings which might become errors in a future
Python version (PR 2597).
-------------------------------------------------------------------
Mon Aug 25 04:12:26 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 3.14.0:
* New Features
+ On NumPy 2.x, it is now possible to read and write native NumPy
variable-width strings, a.k.a. StringDType() or dtype='T', which are
more efficient than arrays of Python string objects.
+ New File.in_memory constructor to conveniently build an HDF5 file
structure in memory
+ Dataset views returned by Dataset.astype, Dataset.asstr and
Dataset.fields have gained the .dtype, .ndim, .shape, and .size
attributes.
+ Opening an existing dataset in a file is faster since it now only loads
the "dataset creation property list" when required.
* Exposing HDF5 functions
+ h5py.h5d.DatasetID.write_direct_chunk now wraps H5Dwrite_chunk instead
of H5DOwrite_chunk.
+ H5Sselect_shape_same exposed as h5py.h5s.SpaceID.select_shape_same.
* Bug fixes
+ Fixed a problem with phil Lock handling in forked processes when h5py
is also used from other threads.
+ Fixed an error using :meth:`.Dataset.read_direct` with a zero-size
selection.
+ Fix various bugs when applying np.array or np.asarray to a Dataset view
returned by Dataset.astype, Dataset.asstr, or Dataset.fields.
* Building h5py
+ setuptools 77 or above is now required, due to changes in the license
metadata in pyproject.toml.
+ Numpy variable-width string support does not alter the build process:
you need NumPy 2.x to build.
+ Fixed building h5py with Numpy 2.3.
-------------------------------------------------------------------
Fri Nov 15 19:11:37 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-h5py
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -48,34 +48,32 @@
%endif
# /SECTION MPI DEFINITIONS
Name: %{pname}%{?my_suffix}
Version: 3.12.1
Version: 3.15.1
Release: 0
Summary: Python interface to the Hierarchical Data Format library
License: BSD-3-Clause
Group: Development/Libraries/Python
URL: https://github.com/h5py/h5py
Source: https://files.pythonhosted.org/packages/source/h/h5py/h5py-%{version}.tar.gz
BuildRequires: %{python_module Cython >= 0.29 with %python-Cython < 4}
BuildRequires: %{python_module devel >= 3.9}
BuildRequires: %{python_module numpy-devel >= 1.19.3}
BuildRequires: %{python_module Cython >= 3 with %python-Cython < 4}
BuildRequires: %{python_module devel >= 3.10}
BuildRequires: %{python_module numpy-devel >= 2.0.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pkgconfig}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools >= 61}
BuildRequires: %{python_module pkgconfig >= 1.5.5}
BuildRequires: %{python_module pytest >= 8.2.2}
BuildRequires: %{python_module setuptools >= 77.0.1}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: hdf5%{?my_suffix}-devel >= 1.10.6
BuildRequires: hdf5%{?my_suffix}-devel >= 1.11.5
BuildRequires: python-rpm-macros
# Work around requires_eq not finding the capability libhdf5. Need the Requires before the macro for the python subpackage rewriter
Requires: %(rpm -q --requires hdf5%{?my_suffix}-devel | grep 'libhdf5.* = ' | head -n 1)
Requires: python-numpy >= 1.19.3
Requires: python-numpy >= 1.21.2
%if %{with mpi}
BuildRequires: %{mpi_flavor}%{mpi_vers}-devel
BuildRequires: %{python_module mpi4py >= 3.1.1 if %python-base < 3.11}
BuildRequires: %{python_module mpi4py >= 3.1.6 if %python-base >= 3.12}
BuildRequires: %{python_module pytest-mpi}
BuildRequires: %{python_module mpi4py >= 3.1.4 if (%python-base >= 3.11 and %python-base < 3.12)}
Requires: python-mpi4py >= 3.1.1
BuildRequires: %{python_module mpi4py >= 3.1.2}
BuildRequires: %{python_module pytest-mpi >= 0.6}
Requires: python-mpi4py >= 3.1.2
%endif
%python_subpackages