Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow later compatible versions of xarray and pandas #170

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

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.

2 participants