Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c9eb98a

Browse files
authored
Merge pull request #2277 from takluyver/rever-3.9
Prepare to release 3.9
2 parents 49d7b8c + 01422a4 commit c9eb98a

11 files changed

+60
-181
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
# built documents.
6363
#
6464
# The full version, including alpha/beta/rc tags.
65-
release = '3.8.0'
65+
release = '3.9.0'
6666
# The short X.Y version.
6767
version = '.'.join(release.split('.')[:2])
6868

docs/whatsnew/3.9.rst

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
What's new in h5py 3.9
2+
======================
3+
4+
This version of h5py requires Python 3.8 or above.
5+
6+
New features
7+
------------
8+
9+
* New ``out`` argument to :meth:`~h5py.h5d.DatasetID.read_direct_chunk` to allow passing
10+
the output buffer (:pr:`2232`).
11+
* The objects from :meth:`.Dataset.asstr` and :meth:`.Dataset.astype` now
12+
implement the ``__array__()`` method (:pr:`2269`).
13+
This speeds up access for functions that support it, such as ``np.asarray()``.
14+
* Validate key types when creating groups and attributes, giving better error
15+
messages when invalid types are used (:pr:`2266`).
16+
17+
Deprecations & removals
18+
-----------------------
19+
20+
* Using :meth:`.Dataset.astype` as a context manager has been removed, after
21+
being deprecated in h5py 3.6. Read data by slicing the returned object instead:
22+
``dset.astype('f4')[:]``.
23+
24+
Exposing HDF5 functions
25+
-----------------------
26+
27+
* ``H5Pget_elink_acc_flags`` & ``H5Pset_elink_acc_flags`` as
28+
:meth:`h5py.h5p.PropLAID.get_elink_acc_flags` & :meth:`h5py.h5p.PropLAID.set_elink_acc_flags`:
29+
access the external link file access traversal flags in a link access property
30+
list (:pr:`2244`).
31+
* ``H5Zregister`` as :func:`h5py.h5z.register_filter`: register an HDF5 filter
32+
(:pr:`2229`).
33+
34+
Bug fixes
35+
---------
36+
37+
* ``Group.__contains__`` and ``Group.get`` now use the default link access
38+
property list systematically (:pr:`2244`).
39+
* Removed various calls to the deprecated ``numpy.product`` function (:pr:`2242`
40+
& :pr:`2273`).
41+
* Fix the IPython tab-completion integration in IPython 8.12 (:pr:2256`).
42+
* Replacing attributes with :meth:`.AttributeManager.create` now deletes the old
43+
attributes before creating the new one, rather than using a temporary name
44+
and renaming the new attribute (:pr:`2274`). This should avoid some confusing
45+
bugs affecting attributes. However, failures creating an attribute are less
46+
likely to leave an existing attribute of the same name in place. To change an
47+
attribute value without changing its shape or dtype, use
48+
:meth:`~.AttributeManager.modify` instead.
49+
50+
Building h5py
51+
-------------
52+
53+
* When building with :ref:`parallel` support, the version of mpi4py used on
54+
various Python versions is increased to 3.1.1, fixing building with a newer
55+
setuptools (:pr:`2225`).
56+
* Some fixes towards compatibility with the upcoming Cython 3 (:pr:`2247`).

docs/whatsnew/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ These document the changes between minor (or major) versions of h5py.
88

99
.. toctree::
1010

11+
3.9
1112
3.8
1213
3.7
1314
3.6

h5py/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
hdf5_built_version_tuple = _h5.HDF5_VERSION_COMPILED_AGAINST
2525

26-
version_tuple = _H5PY_VERSION_CLS(3, 8, 0, None, None, None)
26+
version_tuple = _H5PY_VERSION_CLS(3, 9, 0, None, None, None)
2727

2828
version = "{0.major:d}.{0.minor:d}.{0.bugfix:d}".format(version_tuple)
2929
if version_tuple.pre is not None:

news/datasetid_read_chunk_out_argument.rst

Lines changed: 0 additions & 29 deletions
This file was deleted.

news/dunder_array_to_wrappers.rst

Lines changed: 0 additions & 30 deletions
This file was deleted.

news/fix-2233.rst

Lines changed: 0 additions & 29 deletions
This file was deleted.

news/h5p_elink_acc_flags.rst

Lines changed: 0 additions & 30 deletions
This file was deleted.

news/h5z_register_filter.rst

Lines changed: 0 additions & 29 deletions
This file was deleted.

news/rm-astype-ctx.rst

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)