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

deprecate the cdms2 conversion methods #7876

Merged
merged 10 commits into from
May 29, 2023
Merged

deprecate the cdms2 conversion methods #7876

merged 10 commits into from
May 29, 2023

Conversation

keewis
Copy link
Collaborator

@keewis keewis commented May 28, 2023

As the cdms2 library has been deprecated and will be retired at the end of this year, maintaining conversion functions does not make sense anymore. Additionally, one of the tests is currently failing on the upstream-dev CI (cdms2 is incompatible with a recent change to numpy), and it seems unlikely this will ever be fixed (and there's no python=3.11 release, blocking us from merging the py311 environment with the default one).

cc @tomvothecoder for visibility

@keewis keewis added the run-upstream Run upstream CI label May 28, 2023
@keewis keewis merged commit d4edd70 into pydata:main May 29, 2023
@keewis keewis deleted the cdms2 branch May 29, 2023 19:01
@tomvothecoder
Copy link
Contributor

tomvothecoder commented May 30, 2023

Thanks you @keewis and @Illviljan! I made comment to deprecate cdms2 in xarray in another issue/PR last year and didn't get around to it. I linked this PR in an xCDAT discussion post here.

@keewis
Copy link
Collaborator Author

keewis commented May 30, 2023

great, thanks for the confirmation!

dstansby pushed a commit to dstansby/xarray that referenced this pull request Jun 28, 2023
* emit deprecation warnings for the cdms2 conversion methods

* add the deprecation notice to the docstring

* check that the deprecation warnings are properly raised

* actually check that the deprecation message mentions cdms2

* skip cdms2 checks for new numpy / python versions

* whats-new entry

* make the deprecation message consistent

* functions → methods

* adjust the skip condition

* maintenance mode → deprecated
@keewis keewis mentioned this pull request Nov 10, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-upstream Run upstream CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

⚠️ Nightly upstream-dev CI failed ⚠️
3 participants