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

address deprecation of ruamel.yaml functions #67

Merged
merged 4 commits into from
Dec 4, 2024
Merged

Conversation

RoyStegeman
Copy link
Member

@RoyStegeman RoyStegeman commented Nov 15, 2024

In 0.18.0 of ruamel.yaml, the old PyYAML functions have been removed. This PR updates to the new functionality that is there since version 0.15.0.

@RoyStegeman RoyStegeman requested a review from comane November 15, 2024 16:54
@scarlehoff
Copy link
Member

scarlehoff commented Nov 25, 2024

Is this compatible with nnpdf? Because we are using yaml from reportengine.

fwiw, I tried removing the pin here NNPDF/nnpdf#2225 and it failed, so there's at least one function for which it doesn't work

@scarlehoff scarlehoff linked an issue Nov 25, 2024 that may be closed by this pull request
@RoyStegeman
Copy link
Member Author

RoyStegeman commented Nov 25, 2024

Yes compat.py will be broken with this since the syntax for ruamel.yaml has changed so we'd have to pin the reportengine version while we do these same changes on the nnpdf side

To test I could do a branch to update ruamel.yaml in nnpdf that installs reportengine from this branch before we merge either one?

@scarlehoff
Copy link
Member

Yes please, and then we merge both branches at the same time.

This should be fine since we are getting reportengine from github anyway (and branches in all PRs will need to be rebased but I'm perfectly fine with that :) )

@RoyStegeman RoyStegeman merged commit 46d7dc1 into master Dec 4, 2024
1 check passed
@RoyStegeman RoyStegeman deleted the update_yaml branch December 4, 2024 14:36
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.

Incompatibility with ruamel >= 0.18
2 participants