Skip to content

Commit

Permalink
Merge pull request #1978 from takluyver/rever-3.5
Browse files Browse the repository at this point in the history
Prepare to release 3.5
  • Loading branch information
tacaswell committed Oct 20, 2021
2 parents 78d0856 + b153691 commit fb9989a
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 71 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = '3.4.0'
release = '3.5.0'
# The short X.Y version.
version = '.'.join(release.split('.')[:2])

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

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

* Datasets are now created without timestamps by default, making it easier to
create more consistent files. Pass ``track_times=True`` to
:meth:`.Group.create_dataset` to add timestamps again.
* Added ``locking`` :class:`.File` argument to select HDF5 file locking behavior.
* Enable setting file space page size when creating new HDF5 files. A new named
argument ``fs_page_size`` is added to the :class:`.File` class.
* Enable HDF5 page buffering, a low-level caching feature that may improve
overall I/O performance in some cases. Three new named arguments are added to
the :class:`.File` class: ``page_buf_size``, ``min_meta_keep``, and ``min_raw_keep``.
* Get and reset HDF5 page buffering statistics. Available as the low-level API
of the :class:`.FileID` class.
* The built-in ``reversed()`` function now works with various dictionary-like
interfaces: :class:`.Group`, :class:`.GroupID`, :meth:`.Group.keys`,
:meth:`.Group.values` and :meth:`.Group.items`.

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

* ``H5Pset_file_locking`` and ``H5Pget_file_locking`` (for HDF5 >= 1.12.1 or 1.10.x >= 1.10.7)
* ``H5Freset_page_buffering_stats``
* ``H5Fget_page_buffering_stats``
* ``H5Pset_file_space_page_size``
* ``H5Pget_file_space_page_size``
* ``H5Pset_page_buffer_size``
* ``H5Pget_page_buffer_size``

Breaking changes & deprecations
-------------------------------

* Dataset timestamps are no longer written by default for new datasets. Pass
``track_times=True`` to :meth:`.Group.create_dataset` if you need them.
* The IPython completer code no longer tries to work with very old versions of
IPython (before 1.0).

Bug fixes
---------

* Fix a memory leak when reading data. This particularly affected code making
many small reads.
* ``dataset == array`` now behaves the same way as ``array == dataset``: the
HDF5 dataset is read and NumPy makes a boolean array.
* The IPython completer code no longer imports the ``readline`` module.
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.5
3.4
3.3
3.2
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, 4, 0, None, None, None)
version_tuple = _H5PY_VERSION_CLS(3, 5, 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
31 changes: 0 additions & 31 deletions news/default-no-timestamps.rst

This file was deleted.

4 changes: 0 additions & 4 deletions news/file-locking.rst

This file was deleted.

4 changes: 0 additions & 4 deletions news/hl-file-locking.rst

This file was deleted.

4 changes: 0 additions & 4 deletions news/numpy_operators_communitive.rst

This file was deleted.

16 changes: 0 additions & 16 deletions news/page-buffer.rst

This file was deleted.

9 changes: 0 additions & 9 deletions news/reversed.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 @@ -22,7 +22,7 @@
import setup_build, setup_configure


VERSION = '3.4.0'
VERSION = '3.5.0'

# Minimum supported versions of Numpy & Cython depend on the Python version
NUMPY_MIN_VERSIONS = [
Expand Down

0 comments on commit fb9989a

Please sign in to comment.