1Metadata-Version: 2.1 2Name: ruamel.yaml 3Version: 0.16.12 4Summary: ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order 5Home-page: https://sourceforge.net/p/ruamel-yaml/code/ci/default/tree 6Author: Anthon van der Neut 7Author-email: a.van.der.neut@ruamel.eu 8License: MIT license 9Description: 10 ruamel.yaml 11 =========== 12 13 ``ruamel.yaml`` is a YAML 1.2 loader/dumper package for Python. 14 15 :version: 0.16.12 16 :updated: 2020-09-04 17 :documentation: http://yaml.readthedocs.io 18 :repository: https://sourceforge.net/projects/ruamel-yaml/ 19 :pypi: https://pypi.org/project/ruamel.yaml/ 20 21 22 Starting with version 0.15.0 the way YAML files are loaded and dumped 23 is changing. See the API doc for details. Currently existing 24 functionality will throw a warning before being changed/removed. 25 **For production systems you should pin the version being used with 26 ``ruamel.yaml<=0.15``**. There might be bug fixes in the 0.14 series, 27 but new functionality is likely only to be available via the new API. 28 29 If your package uses ``ruamel.yaml`` and is not listed on PyPI, drop 30 me an email, preferably with some information on how you use the 31 package (or a link to bitbucket/github) and I'll keep you informed 32 when the status of the API is stable enough to make the transition. 33 34 * `Overview <http://yaml.readthedocs.org/en/latest/overview.html>`_ 35 * `Installing <http://yaml.readthedocs.org/en/latest/install.html>`_ 36 * `Basic Usage <http://yaml.readthedocs.org/en/latest/basicuse.html>`_ 37 * `Details <http://yaml.readthedocs.org/en/latest/detail.html>`_ 38 * `Examples <http://yaml.readthedocs.org/en/latest/example.html>`_ 39 * `API <http://yaml.readthedocs.org/en/latest/api.html>`_ 40 * `Differences with PyYAML <http://yaml.readthedocs.org/en/latest/pyyaml.html>`_ 41 42 .. image:: https://readthedocs.org/projects/yaml/badge/?version=stable 43 :target: https://yaml.readthedocs.org/en/stable 44 45 .. image:: https://bestpractices.coreinfrastructure.org/projects/1128/badge 46 :target: https://bestpractices.coreinfrastructure.org/projects/1128 47 48 .. image:: https://sourceforge.net/p/ruamel-yaml/code/ci/default/tree/_doc/_static/license.svg?format=raw 49 :target: https://opensource.org/licenses/MIT 50 51 .. image:: https://sourceforge.net/p/ruamel-yaml/code/ci/default/tree/_doc/_static/pypi.svg?format=raw 52 :target: https://pypi.org/project/ruamel.yaml/ 53 54 .. image:: https://sourceforge.net/p/oitnb/code/ci/default/tree/_doc/_static/oitnb.svg?format=raw 55 :target: https://pypi.org/project/oitnb/ 56 57 .. image:: http://www.mypy-lang.org/static/mypy_badge.svg 58 :target: http://mypy-lang.org/ 59 60 ChangeLog 61 ========= 62 63 .. should insert NEXT: at the beginning of line for next key (with empty line) 64 65 0.16.12 (2020-09-04): 66 - update links in doc 67 68 0.16.11 (2020-09-03): 69 - workaround issue with setuptools 0.50 and importing pip ( fix by jaraco 70 https://github.com/pypa/setuptools/issues/2355#issuecomment-685159580 ) 71 72 0.16.10 (2020-02-12): 73 - (auto) updated image references in README to sourceforge 74 75 0.16.9 (2020-02-11): 76 - update CHANGES 77 78 0.16.8 (2020-02-11): 79 - update requirements so that ruamel.yaml.clib is installed for 3.8, 80 as it has become available (via manylinux builds) 81 82 0.16.7 (2020-01-30): 83 - fix typchecking issue on TaggedScalar (reported by Jens Nielsen) 84 - fix error in dumping literal scalar in sequence with comments before element 85 (reported by `EJ Etherington <https://sourceforge.net/u/ejether/>`__) 86 87 0.16.6 (2020-01-20): 88 - fix empty string mapping key roundtripping with preservation of quotes as `? ''` 89 (reported via email by Tomer Aharoni). 90 - fix incorrect state setting in class constructor (reported by `Douglas Raillard 91 <https://bitbucket.org/%7Bcf052d92-a278-4339-9aa8-de41923bb556%7D/>`__) 92 - adjust deprecation warning test for Hashable, as that no longer warns (reported 93 by `Jason Montleon <https://bitbucket.org/%7B8f377d12-8d5b-4069-a662-00a2674fee4e%7D/>`__) 94 95 0.16.5 (2019-08-18): 96 - allow for ``YAML(typ=['unsafe', 'pytypes'])`` 97 98 0.16.4 (2019-08-16): 99 - fix output of TAG directives with # (reported by `Thomas Smith 100 <https://bitbucket.org/%7Bd4c57a72-f041-4843-8217-b4d48b6ece2f%7D/>`__) 101 102 103 0.16.3 (2019-08-15): 104 - split construct_object 105 - change stuff back to keep mypy happy 106 - move setting of version based on YAML directive to scanner, allowing to 107 check for file version during TAG directive scanning 108 109 0.16.2 (2019-08-15): 110 - preserve YAML and TAG directives on roundtrip, correctly output # 111 in URL for YAML 1.2 (both reported by `Thomas Smith 112 <https://bitbucket.org/%7Bd4c57a72-f041-4843-8217-b4d48b6ece2f%7D/>`__) 113 114 0.16.1 (2019-08-08): 115 - Force the use of new version of ruamel.yaml.clib (reported by `Alex Joz 116 <https://bitbucket.org/%7B9af55900-2534-4212-976c-61339b6ffe14%7D/>`__) 117 - Allow '#' in tag URI as these are allowed in YAML 1.2 (reported by 118 `Thomas Smith 119 <https://bitbucket.org/%7Bd4c57a72-f041-4843-8217-b4d48b6ece2f%7D/>`__) 120 121 0.16.0 (2019-07-25): 122 - split of C source that generates .so file to ruamel.yaml.clib 123 - duplicate keys are now an error when working with the old API as well 124 125 0.15.100 (2019-07-17): 126 - fixing issue with dumping deep-copied data from commented YAML, by 127 providing both the memo parameter to __deepcopy__, and by allowing 128 startmarks to be compared on their content (reported by `Theofilos 129 Petsios 130 <https://bitbucket.org/%7Be550bc5d-403d-4fda-820b-bebbe71796d3%7D/>`__) 131 132 0.15.99 (2019-07-12): 133 - add `py.typed` to distribution, based on a PR submitted by 134 `Michael Crusoe 135 <https://bitbucket.org/%7Bc9fbde69-e746-48f5-900d-34992b7860c8%7D/>`__ 136 - merge PR 40 (also by Michael Crusoe) to more accurately specify 137 repository in the README (also reported in a misunderstood issue 138 some time ago) 139 140 0.15.98 (2019-07-09): 141 - regenerate ext/_ruamel_yaml.c with Cython version 0.29.12, needed 142 for Python 3.8.0b2 (reported by `John Vandenberg 143 <https://bitbucket.org/%7B6d4e8487-3c97-4dab-a060-088ec50c682c%7D/>`__) 144 145 0.15.97 (2019-06-06): 146 - regenerate ext/_ruamel_yaml.c with Cython version 0.29.10, needed for 147 Python 3.8.0b1 148 - regenerate ext/_ruamel_yaml.c with Cython version 0.29.9, needed for 149 Python 3.8.0a4 (reported by `Anthony Sottile 150 <https://bitbucket.org/%7B569cc8ea-0d9e-41cb-94a4-19ea517324df%7D/>`__) 151 152 0.15.96 (2019-05-16): 153 - fix failure to indent comments on round-trip anchored block style 154 scalars in block sequence (reported by `William Kimball 155 <https://bitbucket.org/%7Bba35ed20-4bb0-46f8-bb5d-c29871e86a22%7D/>`__) 156 157 0.15.95 (2019-05-16): 158 - fix failure to round-trip anchored scalars in block sequence 159 (reported by `William Kimball 160 <https://bitbucket.org/%7Bba35ed20-4bb0-46f8-bb5d-c29871e86a22%7D/>`__) 161 - wheel files for Python 3.4 no longer provided (`Python 3.4 EOL 2019-03-18 162 <https://www.python.org/dev/peps/pep-0429/>`__) 163 164 0.15.94 (2019-04-23): 165 - fix missing line-break after end-of-file comments not ending in 166 line-break (reported by `Philip Thompson 167 <https://bitbucket.org/%7Be42ba205-0876-4151-bcbe-ccaea5bd13ce%7D/>`__) 168 169 0.15.93 (2019-04-21): 170 - fix failure to parse empty implicit flow mapping key 171 - in YAML 1.1 plains scalars `y`, 'n', `Y`, and 'N' are now 172 correctly recognised as booleans and such strings dumped quoted 173 (reported by `Marcel Bollmann 174 <https://bitbucket.org/%7Bd8850921-9145-4ad0-ac30-64c3bd9b036d%7D/>`__) 175 176 0.15.92 (2019-04-16): 177 - fix failure to parse empty implicit block mapping key (reported by 178 `Nolan W <https://bitbucket.org/i2labs/>`__) 179 180 0.15.91 (2019-04-05): 181 - allowing duplicate keys would not work for merge keys (reported by mamacdon on 182 `StackOverflow <https://stackoverflow.com/questions/55540686/>`__ 183 184 0.15.90 (2019-04-04): 185 - fix issue with updating `CommentedMap` from list of tuples (reported by 186 `Peter Henry <https://bitbucket.org/mosbasik/>`__) 187 188 0.15.89 (2019-02-27): 189 - fix for items with flow-mapping in block sequence output on single line 190 (reported by `Zahari Dim <https://bitbucket.org/zahari_dim/>`__) 191 - fix for safe dumping erroring in creation of representereror when dumping namedtuple 192 (reported and solution by `Jaakko Kantojärvi <https://bitbucket.org/raphendyr/>`__) 193 194 0.15.88 (2019-02-12): 195 - fix inclusing of python code from the subpackage data (containing extra tests, 196 reported by `Florian Apolloner <https://bitbucket.org/apollo13/>`__) 197 198 0.15.87 (2019-01-22): 199 - fix problem with empty lists and the code to reinsert merge keys (reported via email 200 by Zaloo) 201 202 0.15.86 (2019-01-16): 203 - reinsert merge key in its old position (reported by grumbler on 204 `StackOverflow <https://stackoverflow.com/a/54206512/1307905>`__) 205 - fix for issue with non-ASCII anchor names (reported and fix 206 provided by Dandaleon Flux via email) 207 - fix for issue when parsing flow mapping value starting with colon (in pure Python only) 208 (reported by `FichteFoll <https://bitbucket.org/FichteFoll/>`__) 209 210 0.15.85 (2019-01-08): 211 - the types used by ``SafeConstructor`` for mappings and sequences can 212 now by set by assigning to ``XXXConstructor.yaml_base_dict_type`` 213 (and ``..._list_type``), preventing the need to copy two methods 214 with 50+ lines that had ``var = {}`` hardcoded. (Implemented to 215 help solve an feature request by `Anthony Sottile 216 <https://bitbucket.org/asottile/>`__ in an easier way) 217 218 0.15.84 (2019-01-07): 219 - fix for ``CommentedMap.copy()`` not returning ``CommentedMap``, let alone copying comments etc. 220 (reported by `Anthony Sottile <https://bitbucket.org/asottile/>`__) 221 222 0.15.83 (2019-01-02): 223 - fix for bug in roundtripping aliases used as key (reported via email by Zaloo) 224 225 0.15.82 (2018-12-28): 226 - anchors and aliases on scalar int, float, string and bool are now preserved. Anchors 227 do not need a referring alias for these (reported by 228 `Alex Harvey <https://bitbucket.org/alexharv074/>`__) 229 - anchors no longer lost on tagged objects when roundtripping (reported by `Zaloo 230 <https://bitbucket.org/zaloo/>`__) 231 232 0.15.81 (2018-12-06): 233 - fix issue dumping methods of metaclass derived classes (reported and fix provided 234 by `Douglas Raillard <https://bitbucket.org/DouglasRaillard/>`__) 235 236 0.15.80 (2018-11-26): 237 - fix issue emitting BEL character when round-tripping invalid folded input 238 (reported by Isaac on `StackOverflow <https://stackoverflow.com/a/53471217/1307905>`__) 239 240 0.15.79 (2018-11-21): 241 - fix issue with anchors nested deeper than alias (reported by gaFF on 242 `StackOverflow <https://stackoverflow.com/a/53397781/1307905>`__) 243 244 0.15.78 (2018-11-15): 245 - fix setup issue for 3.8 (reported by `Sidney Kuyateh 246 <https://bitbucket.org/autinerd/>`__) 247 248 0.15.77 (2018-11-09): 249 - setting `yaml.sort_base_mapping_type_on_output = False`, will prevent 250 explicit sorting by keys in the base representer of mappings. Roundtrip 251 already did not do this. Usage only makes real sense for Python 3.6+ 252 (feature request by `Sebastian Gerber <https://bitbucket.org/spacemanspiff2007/>`__). 253 - implement Python version check in YAML metadata in ``_test/test_z_data.py`` 254 255 0.15.76 (2018-11-01): 256 - fix issue with empty mapping and sequence loaded as flow-style 257 (mapping reported by `Min RK <https://bitbucket.org/minrk/>`__, sequence 258 by `Maged Ahmed <https://bitbucket.org/maged2/>`__) 259 260 0.15.75 (2018-10-27): 261 - fix issue with single '?' scalar (reported by `Terrance 262 <https://bitbucket.org/OllieTerrance/>`__) 263 - fix issue with duplicate merge keys (prompted by `answering 264 <https://stackoverflow.com/a/52852106/1307905>`__ a 265 `StackOverflow question <https://stackoverflow.com/q/52851168/1307905>`__ 266 by `math <https://stackoverflow.com/users/1355634/math>`__) 267 268 0.15.74 (2018-10-17): 269 - fix dropping of comment on rt before sequence item that is sequence item 270 (reported by `Thorsten Kampe <https://bitbucket.org/thorstenkampe/>`__) 271 272 0.15.73 (2018-10-16): 273 - fix irregular output on pre-comment in sequence within sequence (reported 274 by `Thorsten Kampe <https://bitbucket.org/thorstenkampe/>`__) 275 - allow non-compact (i.e. next line) dumping sequence/mapping within sequence. 276 277 0.15.72 (2018-10-06): 278 - fix regression on explicit 1.1 loading with the C based scanner/parser 279 (reported by `Tomas Vavra <https://bitbucket.org/xtomik/>`__) 280 281 0.15.71 (2018-09-26): 282 - some of the tests now live in YAML files in the 283 `yaml.data <https://bitbucket.org/ruamel/yaml.data>`__ repository. 284 ``_test/test_z_data.py`` processes these. 285 - fix regression where handcrafted CommentedMaps could not be initiated (reported by 286 `Dan Helfman <https://bitbucket.org/dhelfman/>`__) 287 - fix regression with non-root literal scalars that needed indent indicator 288 (reported by `Clark Breyman <https://bitbucket.org/clarkbreyman/>`__) 289 - tag:yaml.org,2002:python/object/apply now also uses __qualname__ on PY3 290 (reported by `Douglas RAILLARD <https://bitbucket.org/DouglasRaillard/>`__) 291 - issue with self-referring object creation 292 (reported and fix by `Douglas RAILLARD <https://bitbucket.org/DouglasRaillard/>`__) 293 294 0.15.70 (2018-09-21): 295 - reverted CommentedMap and CommentedSeq to subclass ordereddict resp. list, 296 reimplemented merge maps so that both ``dict(**commented_map_instance)`` and JSON 297 dumping works. This also allows checking with ``isinstance()`` on ``dict`` resp. ``list``. 298 (Proposed by `Stuart Berg <https://bitbucket.org/stuarteberg/>`__, with feedback 299 from `blhsing <https://stackoverflow.com/users/6890912/blhsing>`__ on 300 `StackOverflow <https://stackoverflow.com/q/52314186/1307905>`__) 301 302 0.15.69 (2018-09-20): 303 - fix issue with dump_all gobbling end-of-document comments on parsing 304 (reported by `Pierre B. <https://bitbucket.org/octplane/>`__) 305 306 0.15.68 (2018-09-20): 307 - fix issue with parsabel, but incorrect output with nested flow-style sequences 308 (reported by `Dougal Seeley <https://bitbucket.org/dseeley/>`__) 309 - fix issue with loading Python objects that have __setstate__ and recursion in parameters 310 (reported by `Douglas RAILLARD <https://bitbucket.org/DouglasRaillard/>`__) 311 312 0.15.67 (2018-09-19): 313 - fix issue with extra space inserted with non-root literal strings 314 (Issue reported and PR with fix provided by 315 `Naomi Seyfer <https://bitbucket.org/sixolet/>`__.) 316 317 0.15.66 (2018-09-07): 318 - fix issue with fold indicating characters inserted in safe_load-ed folded strings 319 (reported by `Maximilian Hils <https://bitbucket.org/mhils/>`__). 320 321 0.15.65 (2018-09-07): 322 - fix issue #232 revert to throw ParserError for unexcpected ``]`` 323 and ``}`` instead of IndexError. (Issue reported and PR with fix 324 provided by `Naomi Seyfer <https://bitbucket.org/sixolet/>`__.) 325 - added ``key`` and ``reverse`` parameter (suggested by Jannik Klemm via email) 326 - indent root level literal scalars that have directive or document end markers 327 at the beginning of a line 328 329 0.15.64 (2018-08-30): 330 - support round-trip of tagged sequences: ``!Arg [a, {b: 1}]`` 331 - single entry mappings in flow sequences now written by default without braces, 332 set ``yaml.brace_single_entry_mapping_in_flow_sequence=True`` to force 333 getting ``[a, {b: 1}, {c: {d: 2}}]`` instead of the default ``[a, b: 1, c: {d: 2}]`` 334 - fix issue when roundtripping floats starting with a dot such as ``.5`` 335 (reported by `Harrison Gregg <https://bitbucket.org/HarrisonGregg/>`__) 336 337 0.15.63 (2018-08-29): 338 - small fix only necessary for Windows users that don't use wheels. 339 340 0.15.62 (2018-08-29): 341 - C based reader/scanner & emitter now allow setting of 1.2 as YAML version. 342 ** The loading/dumping is still YAML 1.1 code**, so use the common subset of 343 YAML 1.2 and 1.1 (reported by `Ge Yang <https://bitbucket.org/yangge/>`__) 344 345 0.15.61 (2018-08-23): 346 - support for round-tripping folded style scalars (initially requested 347 by `Johnathan Viduchinsky <https://bitbucket.org/johnathanvidu/>`__) 348 - update of C code 349 - speed up of scanning (~30% depending on the input) 350 351 0.15.60 (2018-08-18): 352 - again allow single entry map in flow sequence context (reported by 353 `Lee Goolsbee <https://bitbucket.org/lgoolsbee/>`__) 354 - cleanup for mypy 355 - spurious print in library (reported by 356 `Lele Gaifax <https://bitbucket.org/lele/>`__), now automatically checked 357 358 0.15.59 (2018-08-17): 359 - issue with C based loader and leading zeros (reported by 360 `Tom Hamilton Stubber <https://bitbucket.org/TomHamiltonStubber/>`__) 361 362 0.15.58 (2018-08-17): 363 - simple mappings can now be used as keys when round-tripping:: 364 365 {a: 1, b: 2}: hello world 366 367 although using the obvious operations (del, popitem) on the key will 368 fail, you can mutilate it by going through its attributes. If you load the 369 above YAML in `d`, then changing the value is cumbersome: 370 371 d = {CommentedKeyMap([('a', 1), ('b', 2)]): "goodbye"} 372 373 and changing the key even more so: 374 375 d[CommentedKeyMap([('b', 1), ('a', 2)])] = d.pop( 376 CommentedKeyMap([('a', 1), ('b', 2)])) 377 378 (you can use a `dict` instead of a list of tuples (or ordereddict), but that might result 379 in a different order, of the keys of the key, in the output) 380 - check integers to dump with 1.2 patterns instead of 1.1 (reported by 381 `Lele Gaifax <https://bitbucket.org/lele/>`__) 382 383 384 0.15.57 (2018-08-15): 385 - Fix that CommentedSeq could no longer be used in adding or do a sort 386 (reported by `Christopher Wright <https://bitbucket.org/CJ-Wright4242/>`__) 387 388 0.15.56 (2018-08-15): 389 - fix issue with ``python -O`` optimizing away code (reported, and detailed cause 390 pinpointed, by `Alex Grönholm <https://bitbucket.org/agronholm/>`__) 391 392 0.15.55 (2018-08-14): 393 - unmade ``CommentedSeq`` a subclass of ``list``. It is now 394 indirectly a subclass of the standard 395 ``collections.abc.MutableSequence`` (without .abc if you are 396 still on Python2.7). If you do ``isinstance(yaml.load('[1, 2]'), 397 list)``) anywhere in your code replace ``list`` with 398 ``MutableSequence``. Directly, ``CommentedSeq`` is a subclass of 399 the abstract baseclass ``ruamel.yaml.compat.MutableScliceableSequence``, 400 with the result that *(extended) slicing is supported on 401 ``CommentedSeq``*. 402 (reported by `Stuart Berg <https://bitbucket.org/stuarteberg/>`__) 403 - duplicate keys (or their values) with non-ascii now correctly 404 report in Python2, instead of raising a Unicode error. 405 (Reported by `Jonathan Pyle <https://bitbucket.org/jonathan_pyle/>`__) 406 407 0.15.54 (2018-08-13): 408 - fix issue where a comment could pop-up twice in the output (reported by 409 `Mike Kazantsev <https://bitbucket.org/mk_fg/>`__ and by 410 `Nate Peterson <https://bitbucket.org/ndpete21/>`__) 411 - fix issue where JSON object (mapping) without spaces was not parsed 412 properly (reported by `Marc Schmidt <https://bitbucket.org/marcj/>`__) 413 - fix issue where comments after empty flow-style mappings were not emitted 414 (reported by `Qinfench Chen <https://bitbucket.org/flyin5ish/>`__) 415 416 0.15.53 (2018-08-12): 417 - fix issue with flow style mapping with comments gobbled newline (reported 418 by `Christopher Lambert <https://bitbucket.org/XN137/>`__) 419 - fix issue where single '+' under YAML 1.2 was interpreted as 420 integer, erroring out (reported by `Jethro Yu 421 <https://bitbucket.org/jcppkkk/>`__) 422 423 0.15.52 (2018-08-09): 424 - added `.copy()` mapping representation for round-tripping 425 (``CommentedMap``) to fix incomplete copies of merged mappings 426 (reported by `Will Richards 427 <https://bitbucket.org/will_richards/>`__) 428 - Also unmade that class a subclass of ordereddict to solve incorrect behaviour 429 for ``{**merged-mapping}`` and ``dict(**merged-mapping)`` (reported independently by 430 `Tim Olsson <https://bitbucket.org/tgolsson/>`__ and 431 `Filip Matzner <https://bitbucket.org/FloopCZ/>`__) 432 433 0.15.51 (2018-08-08): 434 - Fix method name dumps (were not dotted) and loads (reported by `Douglas Raillard 435 <https://bitbucket.org/DouglasRaillard/>`__) 436 - Fix spurious trailing white-space caused when the comment start 437 column was no longer reached and there was no actual EOL comment 438 (e.g. following empty line) and doing substitutions, or when 439 quotes around scalars got dropped. (reported by `Thomas Guillet 440 <https://bitbucket.org/guillett/>`__) 441 442 0.15.50 (2018-08-05): 443 - Allow ``YAML()`` as a context manager for output, thereby making it much easier 444 to generate multi-documents in a stream. 445 - Fix issue with incorrect type information for `load()` and `dump()` (reported 446 by `Jimbo Jim <https://bitbucket.org/jimbo1qaz/>`__) 447 448 0.15.49 (2018-08-05): 449 - fix preservation of leading newlines in root level literal style scalar, 450 and preserve comment after literal style indicator (``| # some comment``) 451 Both needed for round-tripping multi-doc streams in 452 `ryd <https://pypi.org/project/ryd/>`__. 453 454 0.15.48 (2018-08-03): 455 - housekeeping: ``oitnb`` for formatting, mypy 0.620 upgrade and conformity 456 457 0.15.47 (2018-07-31): 458 - fix broken 3.6 manylinux1, the result of an unclean ``build`` (reported by 459 `Roman Sichnyi <https://bitbucket.org/rsichnyi-gl/>`__) 460 461 462 0.15.46 (2018-07-29): 463 - fixed DeprecationWarning for importing from ``collections`` on 3.7 464 (issue 210, reported by `Reinoud Elhorst 465 <https://bitbucket.org/reinhrst/>`__). It was `difficult to find 466 why tox/pytest did not report 467 <https://stackoverflow.com/q/51573204/1307905>`__ and as time 468 consuming to actually `fix 469 <https://stackoverflow.com/a/51573205/1307905>`__ the tests. 470 471 0.15.45 (2018-07-26): 472 - After adding failing test for ``YAML.load_all(Path())``, remove StopIteration 473 (PR provided by `Zachary Buhman <https://bitbucket.org/buhman/>`__, 474 also reported by `Steven Hiscocks <https://bitbucket.org/sdhiscocks/>`__. 475 476 0.15.44 (2018-07-14): 477 - Correct loading plain scalars consisting of numerals only and 478 starting with `0`, when not explicitly specifying YAML version 479 1.1. This also fixes the issue about dumping string `'019'` as 480 plain scalars as reported by `Min RK 481 <https://bitbucket.org/minrk/>`__, that prompted this chance. 482 483 0.15.43 (2018-07-12): 484 - merge PR33: Python2.7 on Windows is narrow, but has no 485 ``sysconfig.get_config_var('Py_UNICODE_SIZE')``. (merge provided by 486 `Marcel Bargull <https://bitbucket.org/mbargull/>`__) 487 - ``register_class()`` now returns class (proposed by 488 `Mike Nerone <https://bitbucket.org/Manganeez/>`__} 489 490 0.15.42 (2018-07-01): 491 - fix regression showing only on narrow Python 2.7 (py27mu) builds 492 (with help from 493 `Marcel Bargull <https://bitbucket.org/mbargull/>`__ and 494 `Colm O'Connor <https://bitbucket.org/colmoconnorgithub/>`__). 495 - run pre-commit ``tox`` on Python 2.7 wide and narrow, as well as 496 3.4/3.5/3.6/3.7/pypy 497 498 0.15.41 (2018-06-27): 499 - add detection of C-compile failure (investigation prompted by 500 `StackOverlow <https://stackoverflow.com/a/51057399/1307905>`__ by 501 `Emmanuel Blot <https://stackoverflow.com/users/8233409/emmanuel-blot>`__), 502 which was removed while no longer dependent on ``libyaml``, C-extensions 503 compilation still needs a compiler though. 504 505 0.15.40 (2018-06-18): 506 - added links to landing places as suggested in issue 190 by 507 `KostisA <https://bitbucket.org/ankostis/>`__ 508 - fixes issue #201: decoding unicode escaped tags on Python2, reported 509 by `Dan Abolafia <https://bitbucket.org/danabo/>`__ 510 511 0.15.39 (2018-06-17): 512 - merge PR27 improving package startup time (and loading when regexp not 513 actually used), provided by 514 `Marcel Bargull <https://bitbucket.org/mbargull/>`__ 515 516 0.15.38 (2018-06-13): 517 - fix for losing precision when roundtripping floats by 518 `Rolf Wojtech <https://bitbucket.org/asomov/>`__ 519 - fix for hardcoded dir separator not working for Windows by 520 `Nuno André <https://bitbucket.org/nu_no/>`__ 521 - typo fix by `Andrey Somov <https://bitbucket.org/asomov/>`__ 522 523 0.15.37 (2018-03-21): 524 - again trying to create installable files for 187 525 526 0.15.36 (2018-02-07): 527 - fix issue 187, incompatibility of C extension with 3.7 (reported by 528 Daniel Blanchard) 529 530 0.15.35 (2017-12-03): 531 - allow ``None`` as stream when specifying ``transform`` parameters to 532 ``YAML.dump()``. 533 This is useful if the transforming function doesn't return a meaningful value 534 (inspired by `StackOverflow <https://stackoverflow.com/q/47614862/1307905>`__ by 535 `rsaw <https://stackoverflow.com/users/406281/rsaw>`__). 536 537 0.15.34 (2017-09-17): 538 - fix for issue 157: CDumper not dumping floats (reported by Jan Smitka) 539 540 0.15.33 (2017-08-31): 541 - support for "undefined" round-tripping tagged scalar objects (in addition to 542 tagged mapping object). Inspired by a use case presented by Matthew Patton 543 on `StackOverflow <https://stackoverflow.com/a/45967047/1307905>`__. 544 - fix issue 148: replace cryptic error message when using !!timestamp with an 545 incorrectly formatted or non- scalar. Reported by FichteFoll. 546 547 0.15.32 (2017-08-21): 548 - allow setting ``yaml.default_flow_style = None`` (default: ``False``) for 549 for ``typ='rt'``. 550 - fix for issue 149: multiplications on ``ScalarFloat`` now return ``float`` 551 (reported by jan.brezina@tul.cz) 552 553 0.15.31 (2017-08-15): 554 - fix Comment dumping 555 556 0.15.30 (2017-08-14): 557 - fix for issue with "compact JSON" not parsing: ``{"in":{},"out":{}}`` 558 (reported on `StackOverflow <https://stackoverflow.com/q/45681626/1307905>`__ by 559 `mjalkio <https://stackoverflow.com/users/5130525/mjalkio>`_ 560 561 0.15.29 (2017-08-14): 562 - fix issue #51: different indents for mappings and sequences (reported by 563 Alex Harvey) 564 - fix for flow sequence/mapping as element/value of block sequence with 565 sequence-indent minus dash-offset not equal two. 566 567 0.15.28 (2017-08-13): 568 - fix issue #61: merge of merge cannot be __repr__-ed (reported by Tal Liron) 569 570 0.15.27 (2017-08-13): 571 - fix issue 62, YAML 1.2 allows ``?`` and ``:`` in plain scalars if non-ambigious 572 (reported by nowox) 573 - fix lists within lists which would make comments disappear 574 575 0.15.26 (2017-08-10): 576 - fix for disappearing comment after empty flow sequence (reported by 577 oit-tzhimmash) 578 579 0.15.25 (2017-08-09): 580 - fix for problem with dumping (unloaded) floats (reported by eyenseo) 581 582 0.15.24 (2017-08-09): 583 - added ScalarFloat which supports roundtripping of 23.1, 23.100, 584 42.00E+56, 0.0, -0.0 etc. while keeping the format. Underscores in mantissas 585 are not preserved/supported (yet, is anybody using that?). 586 - (finally) fixed longstanding issue 23 (reported by `Antony Sottile 587 <https://bitbucket.org/asottile/>`__), now handling comment between block 588 mapping key and value correctly 589 - warn on YAML 1.1 float input that is incorrect (triggered by invalid YAML 590 provided by Cecil Curry) 591 - allow setting of boolean representation (`false`, `true`) by using: 592 ``yaml.boolean_representation = [u'False', u'True']`` 593 594 0.15.23 (2017-08-01): 595 - fix for round_tripping integers on 2.7.X > sys.maxint (reported by ccatterina) 596 597 0.15.22 (2017-07-28): 598 - fix for round_tripping singe excl. mark tags doubling (reported and fix by Jan Brezina) 599 600 0.15.21 (2017-07-25): 601 - fix for writing unicode in new API, (reported on 602 `StackOverflow <https://stackoverflow.com/a/45281922/1307905>`__ 603 604 0.15.20 (2017-07-23): 605 - wheels for windows including C extensions 606 607 0.15.19 (2017-07-13): 608 - added object constructor for rt, decorator ``yaml_object`` to replace YAMLObject. 609 - fix for problem using load_all with Path() instance 610 - fix for load_all in combination with zero indent block style literal 611 (``pure=True`` only!) 612 613 0.15.18 (2017-07-04): 614 - missing ``pure`` attribute on ``YAML`` useful for implementing `!include` tag 615 constructor for `including YAML files in a YAML file 616 <https://stackoverflow.com/a/44913652/1307905>`__ 617 - some documentation improvements 618 - trigger of doc build on new revision 619 620 0.15.17 (2017-07-03): 621 - support for Unicode supplementary Plane **output** 622 (input was already supported, triggered by 623 `this <https://stackoverflow.com/a/44875714/1307905>`__ Stack Overflow Q&A) 624 625 0.15.16 (2017-07-01): 626 - minor typing issues (reported and fix provided by 627 `Manvendra Singh <https://bitbucket.org/manu-chroma/>`__ 628 - small doc improvements 629 630 0.15.15 (2017-06-27): 631 - fix for issue 135, typ='safe' not dumping in Python 2.7 632 (reported by Andrzej Ostrowski <https://bitbucket.org/aostr123/>`__) 633 634 0.15.14 (2017-06-25): 635 - fix for issue 133, in setup.py: change ModuleNotFoundError to 636 ImportError (reported and fix by 637 `Asley Drake <https://github.com/aldraco>`__) 638 639 0.15.13 (2017-06-24): 640 - suppress duplicate key warning on mappings with merge keys (reported by 641 Cameron Sweeney) 642 643 0.15.12 (2017-06-24): 644 - remove fatal dependency of setup.py on wheel package (reported by 645 Cameron Sweeney) 646 647 0.15.11 (2017-06-24): 648 - fix for issue 130, regression in nested merge keys (reported by 649 `David Fee <https://bitbucket.org/dfee/>`__) 650 651 0.15.10 (2017-06-23): 652 - top level PreservedScalarString not indented if not explicitly asked to 653 - remove Makefile (not very useful anyway) 654 - some mypy additions 655 656 0.15.9 (2017-06-16): 657 - fix for issue 127: tagged scalars were always quoted and seperated 658 by a newline when in a block sequence (reported and largely fixed by 659 `Tommy Wang <https://bitbucket.org/twang817/>`__) 660 661 0.15.8 (2017-06-15): 662 - allow plug-in install via ``install ruamel.yaml[jinja2]`` 663 664 0.15.7 (2017-06-14): 665 - add plug-in mechanism for load/dump pre resp. post-processing 666 667 0.15.6 (2017-06-10): 668 - a set() with duplicate elements now throws error in rt loading 669 - support for toplevel column zero literal/folded scalar in explicit documents 670 671 0.15.5 (2017-06-08): 672 - repeat `load()` on a single `YAML()` instance would fail. 673 674 0.15.4 (2017-06-08): 675 - `transform` parameter on dump that expects a function taking a 676 string and returning a string. This allows transformation of the output 677 before it is written to stream. This forces creation of the complete output in memory! 678 - some updates to the docs 679 680 0.15.3 (2017-06-07): 681 - No longer try to compile C extensions on Windows. Compilation can be forced by setting 682 the environment variable `RUAMEL_FORCE_EXT_BUILD` to some value 683 before starting the `pip install`. 684 685 0.15.2 (2017-06-07): 686 - update to conform to mypy 0.511: mypy --strict 687 688 0.15.1 (2017-06-07): 689 - `duplicate keys <http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys>`__ 690 in mappings generate an error (in the old API this change generates a warning until 0.16) 691 - dependecy on ruamel.ordereddict for 2.7 now via extras_require 692 693 0.15.0 (2017-06-04): 694 - it is now allowed to pass in a ``pathlib.Path`` as "stream" parameter to all 695 load/dump functions 696 - passing in a non-supported object (e.g. a string) as "stream" will result in a 697 much more meaningful YAMLStreamError. 698 - assigning a normal string value to an existing CommentedMap key or CommentedSeq 699 element will result in a value cast to the previous value's type if possible. 700 - added ``YAML`` class for new API 701 702 0.14.12 (2017-05-14): 703 - fix for issue 119, deepcopy not returning subclasses (reported and PR by 704 Constantine Evans <cevans@evanslabs.org>) 705 706 0.14.11 (2017-05-01): 707 - fix for issue 103 allowing implicit documents after document end marker line (``...``) 708 in YAML 1.2 709 710 0.14.10 (2017-04-26): 711 - fix problem with emitting using cyaml 712 713 0.14.9 (2017-04-22): 714 - remove dependency on ``typing`` while still supporting ``mypy`` 715 (http://stackoverflow.com/a/43516781/1307905) 716 - fix unclarity in doc that stated 2.6 is supported (reported by feetdust) 717 718 0.14.8 (2017-04-19): 719 - fix Text not available on 3.5.0 and 3.5.1, now proactively setting version guards 720 on all files (reported by `João Paulo Magalhães <https://bitbucket.org/jpmag/>`__) 721 722 0.14.7 (2017-04-18): 723 - round trip of integers (decimal, octal, hex, binary) now preserve 724 leading zero(s) padding and underscores. Underscores are presumed 725 to be at regular distances (i.e. ``0o12_345_67`` dumps back as 726 ``0o1_23_45_67`` as the space from the last digit to the 727 underscore before that is the determining factor). 728 729 0.14.6 (2017-04-14): 730 - binary, octal and hex integers are now preserved by default. This 731 was a known deficiency. Working on this was prompted by the issue report (112) 732 from devnoname120, as well as the additional experience with `.replace()` 733 on `scalarstring` classes. 734 - fix issues 114: cannot install on Buildozer (reported by mixmastamyk). 735 Setting env. var ``RUAMEL_NO_PIP_INSTALL_CHECK`` will suppress ``pip``-check. 736 737 0.14.5 (2017-04-04): 738 - fix issue 109: None not dumping correctly at top level (reported by Andrea Censi) 739 - fix issue 110: .replace on Preserved/DoubleQuoted/SingleQuoted ScalarString 740 would give back "normal" string (reported by sandres23) 741 742 0.14.4 (2017-03-31): 743 - fix readme 744 745 0.14.3 (2017-03-31): 746 - fix for 0o52 not being a string in YAML 1.1 (reported on 747 `StackOverflow Q&A 43138503 <http://stackoverflow.com/a/43138503/1307905>`__ by 748 `Frank D <http://stackoverflow.com/users/7796630/frank-d>`__) 749 750 0.14.2 (2017-03-23): 751 - fix for old default pip on Ubuntu 14.04 (reported by Sébastien Maccagnoni-Munch) 752 753 0.14.1 (2017-03-22): 754 - fix Text not available on 3.5.0 and 3.5.1 (reported by Charles Bouchard-Légaré) 755 756 0.14.0 (2017-03-21): 757 - updates for mypy --strict 758 - preparation for moving away from inheritance in Loader and Dumper, calls from e.g. 759 the Representer to the Serializer.serialize() are now done via the attribute 760 .serializer.serialize(). Usage of .serialize() outside of Serializer will be 761 deprecated soon 762 - some extra tests on main.py functions 763 764 ---- 765 766 For older changes see the file 767 `CHANGES <https://bitbucket.org/ruamel/yaml/src/default/CHANGES>`_ 768 769Keywords: yaml 1.2 parser round-trip preserve quotes order config 770Platform: UNKNOWN 771Classifier: Development Status :: 4 - Beta 772Classifier: Intended Audience :: Developers 773Classifier: License :: OSI Approved :: MIT License 774Classifier: Operating System :: OS Independent 775Classifier: Programming Language :: Python 776Classifier: Programming Language :: Python :: 2.7 777Classifier: Programming Language :: Python :: 3.5 778Classifier: Programming Language :: Python :: 3.6 779Classifier: Programming Language :: Python :: 3.7 780Classifier: Programming Language :: Python :: 3.8 781Classifier: Programming Language :: Python :: Implementation :: CPython 782Classifier: Programming Language :: Python :: Implementation :: Jython 783Classifier: Programming Language :: Python :: Implementation :: PyPy 784Classifier: Topic :: Software Development :: Libraries :: Python Modules 785Classifier: Topic :: Text Processing :: Markup 786Classifier: Typing :: Typed 787Description-Content-Type: text/x-rst 788Provides-Extra: jinja2 789Provides-Extra: docs 790