From 221bb0186a53225357f88ff08cad91b00d22b16a Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Tue, 16 Nov 2021 09:09:55 +0000 Subject: [PATCH 1/4] bumped version to 3.6.0 --- docs/conf.py | 2 +- h5py/version.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 7f1a52b2c..c8e58fce2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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]) diff --git a/h5py/version.py b/h5py/version.py index 1099d7559..8f47341ee 100644 --- a/h5py/version.py +++ b/h5py/version.py @@ -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: diff --git a/setup.py b/setup.py index 4f8d55015..7e74bf210 100755 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ import setup_build, setup_configure -VERSION = '3.5.0' +VERSION = '3.6.0' # these are required to use h5py From e3596744a9d149d533e79414785ace610656a5fa Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Tue, 16 Nov 2021 09:10:20 +0000 Subject: [PATCH 2/4] Updated CHANGELOG for 3.6.0 --- docs/whatsnew/3.6.0.rst | 21 +++++++++++++++++++++ news/deprecate-with-astype.rst | 31 ------------------------------- news/oldest-supported-numpy.rst | 31 ------------------------------- news/remove_setup_test.rst | 6 ------ 4 files changed, 21 insertions(+), 68 deletions(-) create mode 100644 docs/whatsnew/3.6.0.rst delete mode 100644 news/deprecate-with-astype.rst delete mode 100644 news/oldest-supported-numpy.rst delete mode 100644 news/remove_setup_test.rst diff --git a/docs/whatsnew/3.6.0.rst b/docs/whatsnew/3.6.0.rst new file mode 100644 index 000000000..d9f4a1625 --- /dev/null +++ b/docs/whatsnew/3.6.0.rst @@ -0,0 +1,21 @@ +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. + +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 `_ should be used instead during + development, and `pytest --pyargs h5py` can be used for installed h5py. + diff --git a/news/deprecate-with-astype.rst b/news/deprecate-with-astype.rst deleted file mode 100644 index 4af2f336b..000000000 --- a/news/deprecate-with-astype.rst +++ /dev/null @@ -1,31 +0,0 @@ -New features ------------- - -* - -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. - -Exposing HDF5 functions ------------------------ - -* - -Bug fixes ---------- - -* - -Building h5py -------------- - -* - -Development ------------ - -* diff --git a/news/oldest-supported-numpy.rst b/news/oldest-supported-numpy.rst deleted file mode 100644 index 516157ed8..000000000 --- a/news/oldest-supported-numpy.rst +++ /dev/null @@ -1,31 +0,0 @@ -New features ------------- - -* - -Deprecations ------------- - -* - -Exposing HDF5 functions ------------------------ - -* - -Bug fixes ---------- - -* - -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 ------------ - -* diff --git a/news/remove_setup_test.rst b/news/remove_setup_test.rst deleted file mode 100644 index 8768b6437..000000000 --- a/news/remove_setup_test.rst +++ /dev/null @@ -1,6 +0,0 @@ -Development ------------ - -* The custom ``setup.py test`` has been removed. - `tox `_ should be used instead during - development, and `pytest --pyargs h5py` can be used for installed h5py. From 4fd1f6d895e144492cd42c51de15f12fd61a167a Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Tue, 16 Nov 2021 09:28:27 +0000 Subject: [PATCH 3/4] Manually clean up release notes --- docs/contributing.rst | 2 ++ docs/whatsnew/{3.6.0.rst => 3.6.rst} | 14 +++++++++++++- docs/whatsnew/index.rst | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) rename docs/whatsnew/{3.6.0.rst => 3.6.rst} (59%) diff --git a/docs/contributing.rst b/docs/contributing.rst index a4197091a..31abdf4bd 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -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 ~~~~~~~~~~~~~ diff --git a/docs/whatsnew/3.6.0.rst b/docs/whatsnew/3.6.rst similarity index 59% rename from docs/whatsnew/3.6.0.rst rename to docs/whatsnew/3.6.rst index d9f4a1625..285840dd1 100644 --- a/docs/whatsnew/3.6.0.rst +++ b/docs/whatsnew/3.6.rst @@ -1,9 +1,20 @@ +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 ------------- @@ -17,5 +28,6 @@ Development * The custom ``setup.py test`` has been removed. `tox `_ should be used instead during - development, and `pytest --pyargs h5py` can be used for installed h5py. + development (see :ref:`contrib-run-tests`), and ``pytest --pyargs h5py`` can + be used to test h5py after installation. diff --git a/docs/whatsnew/index.rst b/docs/whatsnew/index.rst index 52c7458e7..cc4d3d64a 100644 --- a/docs/whatsnew/index.rst +++ b/docs/whatsnew/index.rst @@ -8,6 +8,7 @@ These document the changes between minor (or major) versions of h5py. .. toctree:: + 3.6 3.5 3.4 3.3 From bea3fb47722fe47ddc2bf0d5ad074a07d36fe5d8 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Tue, 16 Nov 2021 09:29:11 +0000 Subject: [PATCH 4/4] Clean up extra whitespace --- docs/whatsnew/3.6.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/whatsnew/3.6.rst b/docs/whatsnew/3.6.rst index 285840dd1..9127f7c64 100644 --- a/docs/whatsnew/3.6.rst +++ b/docs/whatsnew/3.6.rst @@ -30,4 +30,3 @@ Development `tox `_ should be used instead during development (see :ref:`contrib-run-tests`), and ``pytest --pyargs h5py`` can be used to test h5py after installation. -