Skip to content

Conversation

@peter-dudbridge
Copy link

Both xarray and pandas currently have fixed versions in the setup.py which means it's fiddly to enable later versions of xarray if we're using weatherbench as a dep. In particular there's a number of improvements in xarray that are worth getting.
By changing the strict equals to the compatible release clause we can use newer versions whilst ensuring things don't break.

setup.py Outdated
'scipy',
'scikit-learn',
'xarray==2023.7.0',
'xarray~=2023.7.0',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is what we want. ~=2023.7.0 is equivalent to >=2023.7.0 ==2023.7.* which won't match any recent xarray versions (e.g. versions starting with 2024).

Are you sure you don't mean >=2023.7.0? The calendar versioning has the year as the major version, and no compatible version specifier (~=) allows a major version bump

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch thanks roan i didn't take note that xarray isn't using semvar. updated to use >=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants