- update to 0.17.35
* Python 3.12 also loads C version when using `typ='safe'`
* initial support for loading invoking `__post_init__` on dataclasses
that have that method after loading a registered dataclass
(`@yaml.register_class\n@dataclass\nclass ...`)
* fix issue with scanner getting stuck in infinite loop
* added `flow_seq_start`, `flow_seq_end`, `flow_seq_separator`,
`flow_map_start`, `flow_map_end`, `flow_map_separator` **class**
attributes to the `Emitter` class so flow style output
can more easily be influenced
OBS-URL: https://build.opensuse.org/request/show/1115569
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=73
- also handle issue 397 when comment is newline
- fix issue 397, insert comment before key when a comment between key and value exists
- fix issue 396, inserting key/val in merged-in dictionary
- minor fix in attr handling
- fix issue with anchor on registered class not preserved and those classes using package
attrs with `@attr.s()`
- fix error baseclass for ``DuplicateKeyErorr`` (reported by `Łukasz Rogalski
- fix typo in reader error message, causing `KeyError` during reader error
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=58
- fix issue 388, token with old comment structure != two elements
- fix issue with updating CommentedMap
- fix for issue 387 where templated anchors on tagged object did get set
resulting in potential id reuse.
- issue 385 also affected other deprecated loaders
- merged type annotations update
- deprecated round_trip_loader function not working
- wasted a few hours getting rid of mypy warnings/errors
- fix for issue 384 !!set with aliased entry resulting in broken YAML on rt
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=57
* allow for YAML(typ=['unsafe', 'pytypes'])
* fix output of TAG directives with #
* move setting of version based on YAML directive to scanner, allowing to
check for file version during TAG directive scanning
* preserve YAML and TAG directives on roundtrip, correctly output # in URL
for YAML 1.2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=42
- update to 0.15.87
* fix problem with empty lists and the code to reinsert merge keys
* reinsert merge key in its old position
* fix for issue with non-ASCII anchor names
* fix for issue when parsing flow mapping value starting with colon
* the types used by `SafeConstructor` for mappings and sequences can
now by set by assigning to `XXXConstructor.yaml_base_dict_type`
(and `..._list_type`), preventing the need to copy two methods
with 50+ lines that had `var = {}` hardcoded.
* fix for `CommentedMap.copy()` not returning `CommentedMap`
* fix for bug in roundtripping aliases used as key
* anchors and aliases on scalar int, float, string and bool are now preserved.
Anchors do not need a referring alias for these
* fix issue saving methods of metaclass derived classes
OBS-URL: https://build.opensuse.org/request/show/669501
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=23
- update to 0.15.78
* setup issue for 3.8 (reported by Sidney Kuyateh)
* setting yaml.sort_base_mapping_type_on_output = False, will prevent explicit sorting by keys in the base representer of mappings. Roundtrip already did not do this. Usage only makes real sense for Python 3.6+ (feature request by Sebastian Gerber).
* implement Python version check in YAML metadata in _test/test_z_data.py
* fix issue with empty mapping and sequence loaded as flow-style (mapping reported by Min RK, sequence by Maged Ahmed)
* fix issue with single '?' scalar (reported by Terrance)
* fix issue with duplicate merge keys (prompted by answering a StackOverflow question by math)
* fix dropping of comment on rt before sequence item that is sequence item (reported by Thorsten Kampe)
* fix irregular output on pre-comment in sequence within sequence (reported by Thorsten Kampe)
* allow non-compact (i.e. next line) dumping sequence/mapping within sequence.
* fix regression on explicit 1.1 loading with the C based scanner/parser (reported by Tomas Vavra)
OBS-URL: https://build.opensuse.org/request/show/652807
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=19
- update to 0.15.71
* added ``key`` and ``reverse`` parameter
* indent root level literal scalars that have directive or document end
markers at the beginning of a line
* fix issue #232 revert to throw ParserError for unexcpected ``]``
and ``}`` instead of IndexError.
* fix issue with dump_all gobbling end-of-document comments on parsing
* fix issue with parsabel, but incorrect output with nested flow-style sequences
* fix issue with loading Python objects that have __setstate__ and recursion in parameters
* reverted CommentedMap and CommentedSeq to subclass ordereddict resp. list,
reimplemented merge maps so that both ``dict(**commented_map_instance)`` and JSON
dumping works. This also allows checking with ``isinstance()`` on ``dict`` resp. ``list``.
* fix regression where handcrafted CommentedMaps could not be initiated
* fix regression with non-root literal scalars that needed indent indicator
* tag:yaml.org,2002:python/object/apply now also uses __qualname__ on PY3
OBS-URL: https://build.opensuse.org/request/show/639359
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=17
- update to 0.15.61
* support for round-tripping folded style scalars
* speed up of scanning (~30% depending on the input)
* cleanup for mypy
* issue with C based loader and leading zeros
* simple mappings can now be used as keys when round-tripping
* Fix that CommentedSeq could no longer be used in adding or do a sort
* fix issue with python -O optimizing away code
* unmade CommentedSeq a subclass of list.
* fix issue where a comment could pop-up twice in the output
* fix issue where JSON object (mapping) without spaces was not parsed properly
* ix issue where comments after empty flow-style mappings were not emitted
* fix issue with flow style mapping with comments gobbled newline
* fix issue where single ‘+’ under YAML 1.2 was interpreted as integer, erroring out
* added .copy() mapping representation for round-tripping
* Fix method name dumps (were not dotted) and loads
* Allow YAML() as a context manager for output
* Fix issue with incorrect type information for load() and dump()
* fixed DeprecationWarning for importing from collections on 3.7
* After adding failing test for YAML.load_all(Path()), remove StopIteration
OBS-URL: https://build.opensuse.org/request/show/631987
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=13
- update to 0.15.34
* fix for issue 157: CDumper not dumping floats
* support for “undefined” round-tripping tagged scalar objects
* fix issue 148: replace cryptic error message when using !!timestamp with
an incorrectly formatted or non- scalar.
* allow setting yaml.default_flow_style = None (default: False) for for typ='rt'.
* fix for issue 149: multiplications on ScalarFloat now return float
* fix Comment dumping
* fix for issue with “compact JSON” not parsing: {"in":{},"out":{}}
* fix issue #51: different indents for mappings and sequences
* fix for flow sequence/mapping as element/value of block sequence
with sequence-indent minus dash-offset not equal two.
* fix issue #61: merge of merge cannot be __repr__-ed
* fix issue 62, YAML 1.2 allows ? and : in plain scalars if non-ambigious
* fix lists within lists which would make comments disappear
* fix for disappearing comment after empty flow sequence
* fix for problem with dumping (unloaded) floats
* added ScalarFloat which supports roundtripping of 23.1, 23.100, 42.00E+56,
0.0, -0.0 etc. while keeping the format. Underscores in mantissas
are not preserved/supported
* (finally) fixed longstanding issue 23, now handling comment between block
mapping key and value correctly
* warn on YAML 1.1 float input that is incorrect
* allow setting of boolean representation (false, true)
by using: yaml.boolean_representation = [u'False', u'True']
* fix for round_tripping integers on 2.7.X > sys.maxint
* fix for round_tripping singe excl. mark tags doubling
* fix for writing unicode in new API,
* added object constructor for rt, decorator yaml_object to replace YAMLObject.
* fix for problem using load_all with Path() instance
OBS-URL: https://build.opensuse.org/request/show/533656
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=5