Skip to content

Commit

Permalink
neCDF4 and cfunits dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhassell committed Apr 25, 2024
1 parent 772ffc9 commit 1900f03
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ version 3.16.2
* Fix bug whereby `Field.cyclic` is not updated after a
`Field.del_construct` operation
(https://github.com/NCAS-CMS/cf-python/issues/758)

* Changed dependency: ``cfunits>=3.3.7``
* Changed dependency: ``netCDF4>=1.6.5``

----

version 3.16.1
Expand Down
4 changes: 2 additions & 2 deletions cf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
)

# Check the version of netCDF4
_minimum_vn = "1.5.4"
_minimum_vn = "1.6.5"
if Version(netCDF4.__version__) < Version(_minimum_vn):
raise RuntimeError(
f"Bad netCDF4 version: cf requires netCDF4>={_minimum_vn}. "
Expand All @@ -191,7 +191,7 @@
)

# Check the version of cfunits
_minimum_vn = "3.3.6"
_minimum_vn = "3.3.7"
if Version(cfunits.__version__) < Version(_minimum_vn):
raise RuntimeError(
f"Bad cfunits version: cf requires cfunits>={_minimum_vn}. "
Expand Down
4 changes: 2 additions & 2 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ Required

* `dask <https://pypi.org/project/dask/>`_, 2022.12.1 or newer.

* `netCDF4 <https://pypi.org/project/netcdf4/>`_, 1.5.4 or newer.
* `netCDF4 <https://pypi.org/project/netcdf4/>`_, 1.6.5 or newer.

* `cftime <https://pypi.org/project/cftime/>`_, version 1.6.2 or newer
(note that this package may be installed with netCDF4).
Expand All @@ -206,7 +206,7 @@ Required
* `cfdm <https://pypi.org/project/cfdm/>`_, version 1.11.1.0 or up to,
but not including, 1.11.2.0.

* `cfunits <https://pypi.org/project/cfunits/>`_, version 3.3.6 or newer.
* `cfunits <https://pypi.org/project/cfunits/>`_, version 3.3.7 or newer.

* `psutil <https://pypi.org/project/psutil/>`_, version 0.6.0 or newer.

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
netCDF4>=1.5.4
netCDF4>=1.6.5
cftime>=1.6.2
numpy>=1.22
cfdm>=1.11.1.0, <1.11.2.0
psutil>=0.6.0
cfunits>=3.3.6
cfunits>=3.3.7
dask>=2022.12.1
packaging>=20.0
scipy>=1.10.0

0 comments on commit 1900f03

Please sign in to comment.