h5netcdf 1.5.0__tar.gz → 1.6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of h5netcdf might be problematic. Click here for more details.

Files changed (33) hide show
  1. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/CHANGELOG.rst +7 -0
  2. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/PKG-INFO +1 -1
  3. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf/_version.py +9 -4
  4. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf/core.py +1 -1
  5. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf/tests/test_h5netcdf.py +14 -0
  6. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf.egg-info/PKG-INFO +1 -1
  7. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/.pre-commit-config.yaml +0 -0
  8. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/AUTHORS.txt +0 -0
  9. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/LICENSE +0 -0
  10. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/README.rst +0 -0
  11. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/doc/Makefile +0 -0
  12. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/doc/api.rst +0 -0
  13. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/doc/changelog.rst +0 -0
  14. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/doc/conf.py +0 -0
  15. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/doc/devguide.rst +0 -0
  16. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/doc/feature.rst +0 -0
  17. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/doc/index.rst +0 -0
  18. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/doc/legacyapi.rst +0 -0
  19. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf/__init__.py +0 -0
  20. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf/attrs.py +0 -0
  21. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf/dimensions.py +0 -0
  22. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf/legacyapi.py +0 -0
  23. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf/tests/conftest.py +0 -0
  24. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf/tests/pytest.ini +0 -0
  25. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf/utils.py +0 -0
  26. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf.egg-info/SOURCES.txt +0 -0
  27. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf.egg-info/dependency_links.txt +0 -0
  28. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf.egg-info/requires.txt +0 -0
  29. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/h5netcdf.egg-info/top_level.txt +0 -0
  30. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/licenses/H5PY_LICENSE.txt +0 -0
  31. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/licenses/PSF_LICENSE.txt +0 -0
  32. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/pyproject.toml +0 -0
  33. {h5netcdf-1.5.0 → h5netcdf-1.6.0}/setup.cfg +0 -0
@@ -1,6 +1,13 @@
1
1
  Change Log
2
2
  ----------
3
3
 
4
+ Version 1.6.0 (March 7th, 2025):
5
+
6
+ - Allow specifying `h5netcdf.File(driver="h5pyd")` to force the use of h5pyd ({issue}`255`, {pull}`256`).
7
+ By `Rickard Holmberg <https://github.com/rho-novatron>`_
8
+ - Add pytest-mypy-plugins for xarray nightly test ({pull}`257`).
9
+ By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_
10
+
4
11
  Version 1.5.0 (January 26th, 2025):
5
12
 
6
13
  - Update CI to new versions (Python 3.13, 3.14 alpha), remove numpy 1 from h5pyd runs ({pull}`250`).
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: h5netcdf
3
- Version: 1.5.0
3
+ Version: 1.6.0
4
4
  Summary: netCDF4 via h5py
5
5
  Author-email: Stephan Hoyer <shoyer@gmail.com>, Kai Mühlbauer <kmuehlbauer@wradlib.org>
6
6
  Maintainer-email: h5netcdf developers <devteam@h5netcdf.org>
@@ -1,8 +1,13 @@
1
- # file generated by setuptools_scm
1
+ # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
3
6
  TYPE_CHECKING = False
4
7
  if TYPE_CHECKING:
5
- from typing import Tuple, Union
8
+ from typing import Tuple
9
+ from typing import Union
10
+
6
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
7
12
  else:
8
13
  VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
12
17
  __version_tuple__: VERSION_TUPLE
13
18
  version_tuple: VERSION_TUPLE
14
19
 
15
- __version__ = version = '1.5.0'
16
- __version_tuple__ = version_tuple = (1, 5, 0)
20
+ __version__ = version = '1.6.0'
21
+ __version_tuple__ = version_tuple = (1, 6, 0)
@@ -1505,7 +1505,7 @@ class File(Group):
1505
1505
  self._close_h5file = True
1506
1506
  try:
1507
1507
  if isinstance(path, str):
1508
- if (
1508
+ if kwargs.get("driver") == "h5pyd" or (
1509
1509
  path.startswith(("http://", "https://", "hdf5://"))
1510
1510
  and "driver" not in kwargs
1511
1511
  ):
@@ -2743,3 +2743,17 @@ def test_hsds(hsds_up):
2743
2743
 
2744
2744
  with h5netcdf.File(fname, "r") as ds:
2745
2745
  print(ds["test"]["var1"])
2746
+
2747
+
2748
+ def test_h5pyd_driver(hsds_up):
2749
+ # test that specifying driver='h5pyd' forces use of h5pyd
2750
+ if without_h5pyd:
2751
+ pytest.skip("h5pyd package not available")
2752
+ elif not hsds_up:
2753
+ pytest.skip("HSDS service not running")
2754
+ rnd = "".join(random.choice(string.ascii_uppercase) for _ in range(5))
2755
+ for prefix in ("/", "hdf5://"):
2756
+ fname = f"{prefix}testfile{rnd}.nc"
2757
+ with h5netcdf.File(fname, "w", driver="h5pyd") as ds:
2758
+ assert ds._h5py == h5pyd
2759
+ assert isinstance(ds._h5file, h5pyd.File)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: h5netcdf
3
- Version: 1.5.0
3
+ Version: 1.6.0
4
4
  Summary: netCDF4 via h5py
5
5
  Author-email: Stephan Hoyer <shoyer@gmail.com>, Kai Mühlbauer <kmuehlbauer@wradlib.org>
6
6
  Maintainer-email: h5netcdf developers <devteam@h5netcdf.org>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes