-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
Description
#902 got rid of dependency version checking in init.py (apart from for cfdm)
However, it could still be done cheaply with the importlib.metadata module (as pointed by @sadielbartholomew: NCAS-CMS/cfdm#362 (comment)):
>>> from importlib import metadata
>>> metadata.version("cftime")
'1.6.4'
>>> metadata.version("netCDF4")
'1.7.2'
>>> metadata.version("dask")
'2025.7.0'So, do we want to do this?
Related, is making sure that our libraries return nice things in this manner.
This issue should have the same solution as NCAS-CMS/cfdm#364
sadielbartholomew