I can confirm the regression happened with 0.18.7 as it broke a test we had on ansible-lint reformatter, exactly the one about 0 rountrip. Basically the failure looks like: - - 0 # Not an octal. See #2071 + - "00" # Not an octal. See #2071 - zero: 0 # Not an octal. See #2071 + zero: "00" # Not an octal. See #2071 For the moment we will update our dependencies to avoid those two broken versions. https://github.com/ansible/ansible-lint/pull/4462
I can confirm the regression happened with 0.18.7 as it broke a test we had on ansible-lint reformatter, exactly the one about 0 rountrip. Basically the failure looks like: - - 0 # Not an octal. See #2071 + - "00" # Not an octal. See #2071 - zero: 0 # Not an octal. See #2071 + zero: "00" # Not an octal. See #2071
Please see https://github.com/pypa/pip/issues/12884
py312 aarch on linux: pip check reports ruamel.yaml.clib 0.2.8 is not supported on this platform
I realised that this might have implications to another issue https://sourceforge.net/p/ruamel-yaml/tickets/460/ -- basically that makes me think that this can be achieved only if we would have something like load_document which would return a YamlDocument which has a property like data which is the effective data and that would be able to keep the other info that currently are not possible to keep, especially with "None" as being a valid return value for current loaders. Obviously that having two...
Add generic API for easy reformatting any YAML documents
pypi metadata is missing link to documentation
0.17.30 regression AttributeError: property 'tag' of 'ScalarEvent' object has no setter