SHA256
1
0
forked from pool/python-h5py

8 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
ed36e1e0c6 Accepting request 1224515 from devel:languages:python:numeric
- Update to 3.12.1
  ## Breaking changes
  * Support for Python 3.8 was dropped (PR 2471). Python 3.9 or
    newer is required to build or install h5py 3.12.
  * The minimum supported version of HDF5 was increased to 1.10.6
    (PR 2486). If you need h5py on HDF5 1.10.4 or .5, please use
    h5py 3.11.
  * The fill time for chunked storage was previously set to
    h5d.FILL_TIME_ALLOC. Now this the default comes from HDF5,
    which uses h5d.FILL_TIME_IFSET (equivalent to
    fill_time='ifset') (PR 2463). Please use fill_time='alloc' if
    the change is a problem for you.
  ## Exposing HDF5 functions
  * Expose fill time option in dataset creation property list via
    the fill_time parameter in create_dataset() (PR 2463).
  ## Bug fixes
  * Fix an error where native float16 support is not available (PR
    2422).
  * Fixed values of H5F_close_degree_t enum (PR 2433).
  * External links are now accessed with libhdf5’s default access
    properties (PR 2433).
  * Fix the iteration order for the root group in a file with
    creation order tracked (PR 2410).
  * Fixed some deprecation warnings from NumPy (PR 2416).
 ## Building h5py
  * Require a newer version of mpi4py for Python 3.12 (PR 2418).
  * The test suite is now configured to fail on unexpected warnings
    (PR 2428).
  * The generated Cython wrapper code (defs.* & _hdf5.pxd) is now
    specific to the version of HDF5 it’s building for. If the

OBS-URL: https://build.opensuse.org/request/show/1224515
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-h5py?expand=0&rev=32
2024-11-17 15:41:34 +00:00
abf09de176 Fix workaround: python-rpm-macros needs to see it
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-h5py?expand=0&rev=58
2024-11-15 20:17:41 +00:00
e9e9fe2453 - Don't %requires_eq libhdf5{%my_suffix}: not a package but a
capability of e.g. libhdf5-200 -- boo#1196682

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-h5py?expand=0&rev=57
2024-11-15 19:46:46 +00:00
eff4e5743f - Update to 3.12.1
## Breaking changes
  * Support for Python 3.8 was dropped (PR 2471). Python 3.9 or
    newer is required to build or install h5py 3.12.
  * The minimum supported version of HDF5 was increased to 1.10.6
    (PR 2486). If you need h5py on HDF5 1.10.4 or .5, please use
    h5py 3.11.
  * The fill time for chunked storage was previously set to
    h5d.FILL_TIME_ALLOC. Now this the default comes from HDF5,
    which uses h5d.FILL_TIME_IFSET (equivalent to
    fill_time='ifset') (PR 2463). Please use fill_time='alloc' if
    the change is a problem for you.
  ## Exposing HDF5 functions
  * Expose fill time option in dataset creation property list via
    the fill_time parameter in create_dataset() (PR 2463).
  ## Bug fixes
  * Fix an error where native float16 support is not available (PR
    2422).
  * Fixed values of H5F_close_degree_t enum (PR 2433).
  * External links are now accessed with libhdf5’s default access
    properties (PR 2433).
  * Fix the iteration order for the root group in a file with
    creation order tracked (PR 2410).
  * Fixed some deprecation warnings from NumPy (PR 2416).
 ## Building h5py
  * Require a newer version of mpi4py for Python 3.12 (PR 2418).
  * The test suite is now configured to fail on unexpected warnings
    (PR 2428).
  * The generated Cython wrapper code (defs.* & _hdf5.pxd) is now
    specific to the version of HDF5 it’s building for. If the

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-h5py?expand=0&rev=56
2024-11-15 19:21:12 +00:00
4 changed files with 127 additions and 19 deletions

Binary file not shown.

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,112 @@
-------------------------------------------------------------------
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>
- Update to 3.12.1
## Breaking changes
* Support for Python 3.8 was dropped (PR 2471). Python 3.9 or
newer is required to build or install h5py 3.12.
* The minimum supported version of HDF5 was increased to 1.10.6
(PR 2486). If you need h5py on HDF5 1.10.4 or .5, please use
h5py 3.11.
* The fill time for chunked storage was previously set to
h5d.FILL_TIME_ALLOC. Now this the default comes from HDF5,
which uses h5d.FILL_TIME_IFSET (equivalent to
fill_time='ifset') (PR 2463). Please use fill_time='alloc' if
the change is a problem for you.
## Exposing HDF5 functions
* Expose fill time option in dataset creation property list via
the fill_time parameter in create_dataset() (PR 2463).
## Bug fixes
* Fix an error where native float16 support is not available (PR
2422).
* Fixed values of H5F_close_degree_t enum (PR 2433).
* External links are now accessed with libhdf5s default access
properties (PR 2433).
* Fix the iteration order for the root group in a file with
creation order tracked (PR 2410).
* Fixed some deprecation warnings from NumPy (PR 2416).
## Building h5py
* Require a newer version of mpi4py for Python 3.12 (PR 2418).
* The test suite is now configured to fail on unexpected warnings
(PR 2428).
* The generated Cython wrapper code (defs.* & _hdf5.pxd) is now
specific to the version of HDF5 its building for. If the
version of HDF5 has changed, api_gen.py should be run
automatically to recreate this (PR 2479, PR 2480).
* Various PRs modernising & cleaning up old Cython code, see the
3.12 milestone on Github for details.
- Don't %requires_eq libhdf5{%?my_suffix}: not a package but a
capability of e.g. libhdf5-200 -- boo#1196682
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 8 06:51:52 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com> Mon Jul 8 06:51:52 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

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