Skip to content

Try using maintained ruamel.yaml #11014

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

Closed
wants to merge 1 commit into from
Closed

Conversation

yuvipanda
Copy link
Contributor

@yuvipanda yuvipanda commented Nov 1, 2021

The conda specific fork is maintained as a conda package only
in
https://github.com/conda-forge/ruamel_yaml-feedstock/tree/master/recipe.
My understanding of what's being patched there seems to indicate it's
just the __init__.py file. I'm hoping just a rename of the
import will be enough, or at least surface what real problems exist.

Ref #10691

The conda specific fork is maintained as a conda package only
in
https://github.com/conda-forge/ruamel_yaml-feedstock/tree/master/recipe.
My understanding of what's being patched there seems to indicate it's
just the __init__.py file. I'm hoping just a rename of the
import will be enough, or at least surface what real problems exist.

Ref conda#10691
@yuvipanda yuvipanda requested a review from a team as a code owner November 1, 2021 21:29
@anaconda-issue-bot anaconda-issue-bot added the cla-signed [bot] added once the contributor has signed the CLA label Nov 1, 2021
@yuvipanda
Copy link
Contributor Author

I couldn't get the tests to run locally on my machine yet, hopefully someone can approve this and it'll tell me what's failing!

from ruamel_yaml.scanner import ScannerError
from ruamel.yaml.comments import CommentedSeq, CommentedMap
from ruamel.yaml.reader import ReaderError
from ruamel.yaml.scanner import ScannerError
except ImportError: # pragma: no cover
from ruamel.yaml.comments import CommentedSeq, CommentedMap # pragma: no cover
from ruamel.yaml.reader import ReaderError
Copy link
Member

Choose a reason for hiding this comment

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

This try/except block can be simplified now that we're using ruamel.yaml here properly.

@jezdez jezdez closed this Nov 24, 2021
@jezdez jezdez reopened this Nov 24, 2021
@jezdez jezdez added pending::discussion contains some ongoing discussion that needs to be resolved prior to proceeding severity::2 critical; broken functionality with an unacceptably complex workaround source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type type::tech-debt identifies or resolves some technical debt ¡important! used to indicate particularly notable information labels Jan 31, 2022
@jezdez jezdez added this to the Release TBD milestone Jan 31, 2022
@jezdez
Copy link
Member

jezdez commented Jan 31, 2022

@yuvipanda Any chance you could rebase this?

@kenodegard kenodegard added the backlog issue has been triaged but has not been earmarked for any upcoming release label Mar 24, 2022
@jezdez
Copy link
Member

jezdez commented Sep 26, 2022

Fixed via #11837.

@jezdez jezdez closed this Sep 26, 2022
@yuvipanda
Copy link
Contributor Author

OMG THANK YOU @jezdez!!!!!!!!!!!!!

@kenodegard kenodegard removed this from the Release TBD milestone Jan 9, 2023
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Jan 9, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backlog issue has been triaged but has not been earmarked for any upcoming release cla-signed [bot] added once the contributor has signed the CLA ¡important! used to indicate particularly notable information locked [bot] locked due to inactivity pending::discussion contains some ongoing discussion that needs to be resolved prior to proceeding severity::2 critical; broken functionality with an unacceptably complex workaround source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type type::tech-debt identifies or resolves some technical debt
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants