Skip to content

Commit

Permalink
Merge pull request #2277 from takluyver/rever-3.9
Browse files Browse the repository at this point in the history
Prepare to release 3.9
  • Loading branch information
tacaswell committed Jun 19, 2023
2 parents 49d7b8c + 01422a4 commit c9eb98a
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 181 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -62,7 +62,7 @@
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = '3.8.0'
release = '3.9.0'
# The short X.Y version.
version = '.'.join(release.split('.')[:2])

Expand Down
56 changes: 56 additions & 0 deletions docs/whatsnew/3.9.rst
@@ -0,0 +1,56 @@
What's new in h5py 3.9
======================

This version of h5py requires Python 3.8 or above.

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

* New ``out`` argument to :meth:`~h5py.h5d.DatasetID.read_direct_chunk` to allow passing
the output buffer (:pr:`2232`).
* The objects from :meth:`.Dataset.asstr` and :meth:`.Dataset.astype` now
implement the ``__array__()`` method (:pr:`2269`).
This speeds up access for functions that support it, such as ``np.asarray()``.
* Validate key types when creating groups and attributes, giving better error
messages when invalid types are used (:pr:`2266`).

Deprecations & removals
-----------------------

* Using :meth:`.Dataset.astype` as a context manager has been removed, after
being deprecated in h5py 3.6. Read data by slicing the returned object instead:
``dset.astype('f4')[:]``.

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

* ``H5Pget_elink_acc_flags`` & ``H5Pset_elink_acc_flags`` as
:meth:`h5py.h5p.PropLAID.get_elink_acc_flags` & :meth:`h5py.h5p.PropLAID.set_elink_acc_flags`:
access the external link file access traversal flags in a link access property
list (:pr:`2244`).
* ``H5Zregister`` as :func:`h5py.h5z.register_filter`: register an HDF5 filter
(:pr:`2229`).

Bug fixes
---------

* ``Group.__contains__`` and ``Group.get`` now use the default link access
property list systematically (:pr:`2244`).
* Removed various calls to the deprecated ``numpy.product`` function (:pr:`2242`
& :pr:`2273`).
* Fix the IPython tab-completion integration in IPython 8.12 (:pr:2256`).
* Replacing attributes with :meth:`.AttributeManager.create` now deletes the old
attributes before creating the new one, rather than using a temporary name
and renaming the new attribute (:pr:`2274`). This should avoid some confusing
bugs affecting attributes. However, failures creating an attribute are less
likely to leave an existing attribute of the same name in place. To change an
attribute value without changing its shape or dtype, use
:meth:`~.AttributeManager.modify` instead.

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

* When building with :ref:`parallel` support, the version of mpi4py used on
various Python versions is increased to 3.1.1, fixing building with a newer
setuptools (:pr:`2225`).
* Some fixes towards compatibility with the upcoming Cython 3 (:pr:`2247`).
1 change: 1 addition & 0 deletions docs/whatsnew/index.rst
Expand Up @@ -8,6 +8,7 @@ These document the changes between minor (or major) versions of h5py.

.. toctree::

3.9
3.8
3.7
3.6
Expand Down
2 changes: 1 addition & 1 deletion h5py/version.py
Expand Up @@ -23,7 +23,7 @@

hdf5_built_version_tuple = _h5.HDF5_VERSION_COMPILED_AGAINST

version_tuple = _H5PY_VERSION_CLS(3, 8, 0, None, None, None)
version_tuple = _H5PY_VERSION_CLS(3, 9, 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
29 changes: 0 additions & 29 deletions news/datasetid_read_chunk_out_argument.rst

This file was deleted.

30 changes: 0 additions & 30 deletions news/dunder_array_to_wrappers.rst

This file was deleted.

29 changes: 0 additions & 29 deletions news/fix-2233.rst

This file was deleted.

30 changes: 0 additions & 30 deletions news/h5p_elink_acc_flags.rst

This file was deleted.

29 changes: 0 additions & 29 deletions news/h5z_register_filter.rst

This file was deleted.

31 changes: 0 additions & 31 deletions news/rm-astype-ctx.rst

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -20,7 +20,7 @@
import setup_build, setup_configure


VERSION = '3.8.0'
VERSION = '3.9.0'


# these are required to use h5py
Expand Down

0 comments on commit c9eb98a

Please sign in to comment.