./devel/py-ruamel-yaml, YAML parser/emitter

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 0.16.10, Package name: py37-ruamel-yaml-0.16.10, Maintainer: pkgsrc-users

ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation
of comments, seq/map flow style, and map key order

Required to run:
[devel/py-setuptools] [lang/python37] [devel/py-ruamel-yaml-clib]

Required to build:

Master sites:

SHA1: 1aff3775a008c3bb13c6013c347a272300838c07
RMD160: b2a00deb09765db0874697b065cb899a748e86f6
Filesize: 143.587 KB

Version history: (Expand)

CVS history: (Expand)

   2020-02-19 10:41:50 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-ruamel-yaml: updated to 0.16.10

[0, 16, 10]:
- (auto) updated image references in README to sourceforge

[0, 16, 9]:
- update CHANGES

[0, 16, 8]:
- update requirements so that ruamel.yaml.clib is installed for 3.8,
  as it has become available (via manylinux builds)

[0, 16, 7]:
- fix typchecking issue on TaggedScalar
- fix error in dumping literal scalar in sequence with comments before element

[0, 16, 6]:
- fix empty string mapping key roundtripping with preservation of quotes as `? ''`
- fix incorrect state setting in class constructor
- adjust deprecation warning test for Hashable, as that no longer warns
   2019-12-17 11:11:28 by Leonardo Taccari | Files touched by this commit (3) | Package updated
Log message:
py-ruamel-yaml: Update to 0.16.5

pkgsrc changes:
 - Remove dependency to py-typing, no longer needed since version 0.14.9
 - Reset USE_LANGUAGES, C parts were splitted in py-ruamel-yaml-clib and a C
   compiler is no longer needed

[0, 16, 5]: 2019-08-18
  - allow for ``YAML(typ=['unsafe', 'pytypes'])``

[0, 16, 4]: 2019-08-16
  - fix output of TAG directives with # (reported by `Thomas Smith

[0, 16, 3]: 2019-08-15
  - move setting of version based on YAML directive to scanner, allowing to
    check for file version during TAG directive scanning

[0, 16, 2]: 2019-08-15
  - preserve YAML and TAG directives on roundtrip, correctly output #
    in URL for YAML 1.2 (both reported by `Thomas Smith

[0, 16, 1]: 2019-08-08
  - Force the use of new version of ruamel.yaml.clib (reported by `Alex Joz
  - Allow '#' in tag URI as these are allowed in YAML 1.2 (reported by
    `Thomas Smith

[0, 16, 0]: 2019-07-25
  - split of C source that generates .so file to ruamel.yaml.clib
  - duplicate keys are now an error when working with the old API as well
   2019-08-23 14:39:24 by Greg Troxel | Files touched by this commit (1)
Log message:
devel/py-ruamel-yaml: Reset MAINTAINER

(Email to $MAINTAINER did not succeed.)
   2019-08-14 15:49:47 by Greg Troxel | Files touched by this commit (1)
Log message:
devel/py-ruamel-yaml: Sort with plist-sort
   2019-08-14 00:50:51 by Greg Troxel | Files touched by this commit (3) | Package updated
Log message:
devel/py-ruamel-yaml: Update to 0.15.100

(While 0.16.1 is current, that update perhaps is more complicated, so
I'm updating to the last release of 0.15 as an intermediate step.)

[0, 15, 100]: 2019-07-17
  - fixing issue with dumping deep-copied data from commented YAML, by
    providing both the memo parameter to __deepcopy__, and by allowing
    startmarks to be compared on their content (reported by `Theofilos

[0, 15, 99]: 2019-07-12
  - add `py.typed` to distribution, based on a PR submitted by
    `Michael Crusoe
  - merge PR 40 (also by Michael Crusoe) to more accurately specify
    repository in the README (also reported in a misunderstood issue
    some time ago)

[0, 15, 98]: 2019-07-09
  - regenerate ext/_ruamel_yaml.c with Cython version 0.29.12, needed
    for Python 3.8.0b2 (reported by `John Vandenberg

[0, 15, 97]: 2019-06-06
  - regenerate ext/_ruamel_yaml.c with Cython version 0.29.10, needed for
    Python 3.8.0b1
  - regenerate ext/_ruamel_yaml.c with Cython version 0.29.9, needed for
    Python 3.8.0a4 (reported by `Anthony Sottile

[0, 15, 96]: 2019-05-16
  - fix failure to indent comments on round-trip anchored block style
    scalars in block sequence (reported by `William Kimball

[0, 15, 95]: 2019-05-16
  - fix failure to round-trip anchored scalars in block sequence
    (reported by `William Kimball
  - wheel files for Python 3.4 no longer provided (`Python 3.4 EOL 2019-03-18
   2019-08-14 00:45:59 by Greg Troxel | Files touched by this commit (1) | Package updated
Log message:
devel/py-ruamel-yaml: Sort PLIST

No functional change; PLIST was not sorted per print-PLIST, making
updates difficult.
   2019-05-07 11:29:38 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-ruamel.yaml: updated to 0.15.94

- fix missing line-break after end-of-file comments not ending in

- fix failure to parse empty implicit flow mapping key
- in YAML 1.1 plains scalars y, 'n', Y, and 'N' are now
  correctly recognised as booleans and such strings dumped quoted

- fix failure to parse empty implicit block mapping key

- allowing duplicate keys would not work for merge keys

- fix issue with updating CommentedMap from list of tuples

- fix for items with flow-mapping in block sequence output on single line
- fix for safe dumping erroring in creation of representereror when dumping \ 

- fix inclusing of python code from the subpackage data

- 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 (in pure \ 
Python only)

- 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, let alone copying \ 
comments etc.

- fix for bug in roundtripping aliases used as key

- anchors and aliases on scalar int, float, string and bool are now preserved. \ 
  do not need a referring alias for these
- anchors no longer lost on tagged objects when roundtripping

 - fix issue saving methods of metaclass derived classes

 - fix issue emitting BEL character when round-tripping invalid folded input

- fix issue with anchors nested deeper than alias

- fix setup issue for 3.8

- 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+
- implement Python version check in YAML metadata in _test/test_z_data.py

- fix issue with empty mapping and sequence loaded as flow-style

- fix issue with single '?' scalar
- fix issue with duplicate merge keys

- fix dropping of comment on rt before sequence item that is sequence item

- fix irregular output on pre-comment in sequence within sequence
- allow non-compact (i.e. next line) dumping sequence/mapping within sequence.
   2018-10-14 18:26:51 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-ruamel-yaml: updated to 0.15.72

- fix regression on explicit 1.1 loading with the C based scanner/parser

- fix regression on explicit 1.1 loading with the C based scanner/parser

- 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

- 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 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 \ 

- fix issue with extra space inserted with non-root literal strings

- fix issue with fold indicating characters inserted in safe_load-ed folded strings

- fix issue 232 revert to throw ParserError for unexcpected ]
  and } instead of IndexError.
- added key and reverse parameter (suggested by Jannik Klemm via email)
- indent root level literal scalars that have directive or document end markers
  at the beginning of a line

- support round-trip of tagged sequences: !Arg [a, {b: 1}]
- single entry mappings in flow sequences now written by default without quotes
  set yaml.brace_single_entry_mapping_in_flow_sequence=True to force
  getting [a, {b: 1}, {c: {d: 2}}] instead of the default [a, b: 1, c: {d: 2}]
- fix issue when roundtripping floats starting with a dot such as .5

- small fix only necessary for Windows users that don't use wheels.

- C based reader/scanner & emitter now allow setting of 1.2 as YAML version.
  ** The loading/dumping is still YAML 1.1 code**, so use the common subset of
  YAML 1.2 and 1.1

- support for round-tripping folded style scalars
- update of C code
- speed up of scanning (~30% depending on the input)

- cleanup for mypy
- spurious print in library

- issue with C based loader and leading zeros

- issue with C based loader and leading zeros

- simple mappings can now be used as keys when round-tripping::

    {a: 1, b: 2}: hello world

  although using the obvious operations (del, popitem) on the key will
  fail, you can mutilate it by going through its attributes. If you load the
  above YAML in d, then changing the value is cumbersome:

      d = {CommentedKeyMap([('a', 1), ('b', 2)]): "goodbye"}

  and changing the key even more so:

      d[CommentedKeyMap([('b', 1), ('a', 2)])] = d.pop(
                   CommentedKeyMap([('a', 1), ('b', 2)]))

  (you can use a dict instead of a list of tuples (or ordereddict), but that \ 
might result
  in a different order, of the keys of the key, in the output)
- check integers to dump with 1.2 patterns instead of 1.1

- Fix that CommentedSeq could no longer be used in adding or do a copy

- fix issue with python -O optimizing away code

- unmade CommentedSeq a subclass of list. It is now
  indirectly a subclass of the standard
  collections.abc.MutableSequence (without .abc if you are
  still on Python2.7). If you do isinstance(yaml.load('[1, 2]'),
  list)) anywhere in your code replace list with
  MutableSequence.  Directly, CommentedSeq is a subclass of
  the abstract baseclass ruamel.yaml.compat.MutableScliceableSequence,
  with the result that *(extended) slicing is supported on
- duplicate keys (or their values) with non-ascii now correctly
  report in Python2, instead of raising a Unicode error.