Skip to content

Commit

Permalink
Merge pull request #2405 from takluyver/rever-3.11
Browse files Browse the repository at this point in the history
Prepare to release 3.11.0
  • Loading branch information
takluyver committed Apr 10, 2024
2 parents 0090479 + 76afe10 commit 2c80981
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 47 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = '3.10.0'
release = '3.11.0'
# The short X.Y version.
version = '.'.join(release.split('.')[:2])

Expand Down
14 changes: 14 additions & 0 deletions docs/high/group.rst
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,19 @@ Reference
In this case `object` will be a :class:`Group` or :class:`Dataset`
instance.

.. method:: visit_links(callable)
visititems_links(callable)

These methods are like :meth:`visit` and :meth:`visititems`, but work on
the links in groups, rather than the objects those links point to. So if
you have two links pointing to the same object, these will 'see' both.
They also see soft & external links, which :meth:`visit` and
:meth:`visititems` ignore.

The second argument to the callback for ``visititems_links`` is an
instance of one of the :ref:`link classes <group_link_classes>`.

.. versionadded:: 3.11

.. method:: move(source, dest)

Expand Down Expand Up @@ -516,6 +529,7 @@ Reference

:class:`Group` instance containing this group.

.. _group_link_classes:

Link classes
------------
Expand Down
38 changes: 38 additions & 0 deletions docs/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
What's new in h5py 3.11
=======================

New features
------------

* h5py is now compatible with Numpy 2.0 (:pr:`2329`, :pr:`2401`).
* New methods :meth:`.Group.visit_links` and :meth:`.Group.visititems_links`
that include links when visiting groups (:pr:`2360`).

Exposing HDF5 functions
-----------------------

* Exposes remaining information from `H5O_info_t` struct such as access, modification, change, and
birth time (:pr:`2358`). Also exposes field providing number of attributes attached to an object. Expands object
header metadata struct `H5O_hdr_info_t`, `hdr` field of `H5O_info_t`, to provide number of chunks and
flags set for object header. Lastly, adds `meta_size` field from `H5O_info_t` struct that provides
two fields, `attr` which is the storage overhead of any attached attributes, and `obj` which is
storage overhead required for chunk storage. The last two fields added can be useful for determining
the storage overhead incurred from various data layout/chunked strategies, and for obtaining information
such as that provided by `h5stat`.

Bug fixes
---------

* h5py's tests pass with HDF5 1.14.4, which is due to be released shortly after
h5py 3.11 (:pr:`2406`).
* :meth:`~.Dataset.iter_chunks()` now behaves correctly with a selection
(:pr:`2381`).
* HDF5 allows external datasets (with the data stored in a separate file) to be
expandable along the first dimension. Such datasets can now be created
through h5py by passing a ``maxshape=`` parameter (:pr:`2398`).

Building h5py
-------------

* h5py can now be built with Cython 3.x (:pr:`2345`).
* Fixed some errors compiling with GCC 14 (:pr:`2380`, :pr:`2382`).
1 change: 1 addition & 0 deletions docs/whatsnew/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ These document the changes between minor (or major) versions of h5py.

.. toctree::

3.11
3.10
3.9
3.8
Expand Down
2 changes: 1 addition & 1 deletion h5py/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

hdf5_built_version_tuple = _h5.HDF5_VERSION_COMPILED_AGAINST

version_tuple = _H5PY_VERSION_CLS(3, 10, 0, None, None, None)
version_tuple = _H5PY_VERSION_CLS(3, 11, 0, None, None, None)

version = "{0.major:d}.{0.minor:d}.{0.bugfix:d}".format(version_tuple)
if version_tuple.pre is not None:
Expand Down
11 changes: 0 additions & 11 deletions news/metasize_info_struct.rst

This file was deleted.

29 changes: 0 additions & 29 deletions news/numpy-2.rst

This file was deleted.

4 changes: 0 additions & 4 deletions news/visit-links.rst

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import setup_build, setup_configure


VERSION = '3.10.0'
VERSION = '3.11.0'


# these are required to use h5py
Expand Down

0 comments on commit 2c80981

Please sign in to comment.