Skip to content

Allow later compatible versions of xarray and pandas#170

Open
peter-dudbridge wants to merge 7 commits intogoogle-research:mainfrom
juaAI:allow-later-versions-of-xarray
Open

Allow later compatible versions of xarray and pandas#170
peter-dudbridge wants to merge 7 commits intogoogle-research:mainfrom
juaAI:allow-later-versions-of-xarray

Conversation

@peter-dudbridge
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown
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