ESMValGroup / ESMValTool

ESMValTool: A community diagnostic and performance metrics tool for routine evaluation of Earth system models in CMIP
https://www.esmvaltool.org
Apache License 2.0
217 stars 127 forks source link

Pin importlib_metadata <8 #3699

Closed ehogan closed 3 months ago

ehogan commented 3 months ago

When creating a new environment for testing ESMValCore v2.11.0rc2, the issue I reported at https://github.com/ESMValGroup/ESMValTool/issues/3208#issuecomment-2192164814 was present. @valeriupredoi identified that importlib_metadata was the culprit:

(rc1-env) % conda list importlib_metadata
# packages in environment at /miniforge3/envs/rc1-env:
#
# Name                    Version                   Build  Channel
importlib_metadata        7.1.0                hd8ed1ab_0    conda-forge
(rc2-env) % conda list importlib_metadata
# packages in environment at /miniforge3/envs/rc2-env:
#
# Name                    Version                   Build  Channel
importlib_metadata        8.0.0                hd8ed1ab_0    conda-forge

The solution is to add the importlib_metadata dependency to ESMValTool and pin the version to <8.

Note that importlib_metadata will be removed in https://github.com/ESMValGroup/ESMValCore/pull/2447; the removal should also be added to #3683 after the release / before the release branch is merged into main 👍