Skip to content

Commit

Permalink
Merge pull request h5py#2002 from takluyver/rever-3.6
Browse files Browse the repository at this point in the history
Prepare to release 3.6
  • Loading branch information
takluyver authored Nov 16, 2021
2 parents 9bbf39c + bea3fb4 commit 3a4b4ee
Show file tree
Hide file tree
Showing 9 changed files with 38 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.5.0'
release = '3.6.0'
# The short X.Y version.
version = '.'.join(release.split('.')[:2])

Expand Down
2 changes: 2 additions & 0 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ You can implement the feature as a number of small changes, or as one big
commit; there's no project policy. Double-check to make sure you've
included all your files; run ``git status`` and check the output.

.. _contrib-run-tests:

Run the tests
~~~~~~~~~~~~~

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

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

* Pre-built packages are now available for Python 3.10.

Deprecations
------------

* Using :meth:`.Dataset.astype` as a context manager (``with dset.astype(t):``)
is deprecated. Slice the object returned by astype instead
(``data = dset.astype(t)[:10]``). This works from h5py 3.0 onwards.
* Getting the value of ``h5py.get_config().default_file_mode`` now issues a
deprecation warning. This has been ``'r'`` by default from h5py 3.0, and
cannot be changed since 3.3.

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

* h5py now requires the ``oldest-supported-numpy`` package at build time,
instead of maintaining its own list of the oldest supported NumPy versions.
The effect should be similar, but hopefully more reliable.

Development
-----------

* The custom ``setup.py test`` has been removed.
`tox <https://tox.wiki/en/latest/>`_ should be used instead during
development (see :ref:`contrib-run-tests`), and ``pytest --pyargs h5py`` can
be used to test h5py after installation.
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.6
3.5
3.4
3.3
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, 5, 0, None, None, None)
version_tuple = _H5PY_VERSION_CLS(3, 6, 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/deprecate-with-astype.rst

This file was deleted.

31 changes: 0 additions & 31 deletions news/oldest-supported-numpy.rst

This file was deleted.

6 changes: 0 additions & 6 deletions news/remove_setup_test.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.5.0'
VERSION = '3.6.0'


# these are required to use h5py
Expand Down

0 comments on commit 3a4b4ee

Please sign in to comment.