-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Conversation
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
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 |
There was a problem hiding this comment.
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.
@yuvipanda Any chance you could rebase this? |
Fixed via #11837. |
OMG THANK YOU @jezdez!!!!!!!!!!!!! |
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 theimport will be enough, or at least surface what real problems exist.
Ref #10691