Ouranosinc / xscen

A climate change scenario-building analysis framework.
https://xscen.readthedocs.io/
Apache License 2.0
15 stars 2 forks source link

Add <= pin on xclim #399

Closed SarahG-579462 closed 3 months ago

SarahG-579462 commented 4 months ago

Addressing a Problem?

When xclim updates with breaking changes, this can sometimes break xscen (e.g. today, with xscen at 0.8.3 on conda-forge and xclim at 0.49.0). Since the packages are so tightly linked, it seems very likely that this will often occur.

Potential Solution

Add xclim <= test-version (and potentially xclim >= functioning version) pins in environment.yml

Additional context

Annoyingly my apps broke while this bug was occuring, but because the delay on this version release is around 3 hours, it's not worth fixing in my git repo.

Contribution

Zeitsperre commented 4 months ago

I would go one step further and try installing the lowest pinned versions of a library to determine what our actual range of supported versions is.

There's an ongoing discussion about adding this functionality into pip (https://github.com/pypa/pip/issues/8085), but apparently there's something in both uv and pdm that does exactly that.