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

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


Branch: CURRENT, Version: 0.16.5, Package name: py37-ruamel-yaml-0.16.5, 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]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 93615f8c97dff5ada5c4ac9ad7cf7e6b9a64bca3
RMD160: 28c0519878000774927377ba531bd53223b6e0f6
Filesize: 142.463 KB

Version history: (Expand)


CVS history: (Expand)


   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

Changes:
[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
    <https://bitbucket.org/%7Bd4c57a72-f041-4843-8217-b4d48b6ece2f%7D/>`__)

[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
    <https://bitbucket.org/%7Bd4c57a72-f041-4843-8217-b4d48b6ece2f%7D/>`__)

[0, 16, 1]: 2019-08-08
  - Force the use of new version of ruamel.yaml.clib (reported by `Alex Joz
    <https://bitbucket.org/%7B9af55900-2534-4212-976c-61339b6ffe14%7D/>`__)
  - Allow '#' in tag URI as these are allowed in YAML 1.2 (reported by
    `Thomas Smith
    <https://bitbucket.org/%7Bd4c57a72-f041-4843-8217-b4d48b6ece2f%7D/>`__)

[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
    Petsios
    <https://bitbucket.org/%7Be550bc5d-403d-4fda-820b-bebbe71796d3%7D/>`__)

[0, 15, 99]: 2019-07-12
  - add `py.typed` to distribution, based on a PR submitted by
    `Michael Crusoe
    <https://bitbucket.org/%7Bc9fbde69-e746-48f5-900d-34992b7860c8%7D/>`__
  - 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
    <https://bitbucket.org/%7B6d4e8487-3c97-4dab-a060-088ec50c682c%7D/>`__)

[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
    <https://bitbucket.org/%7B569cc8ea-0d9e-41cb-94a4-19ea517324df%7D/>`__)

[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
    <https://bitbucket.org/%7Bba35ed20-4bb0-46f8-bb5d-c29871e86a22%7D/>`__)

[0, 15, 95]: 2019-05-16
  - fix failure to round-trip anchored scalars in block sequence
    (reported by `William Kimball
    <https://bitbucket.org/%7Bba35ed20-4bb0-46f8-bb5d-c29871e86a22%7D/>`__)
  - wheel files for Python 3.4 no longer provided (`Python 3.4 EOL 2019-03-18
    <https://www.python.org/dev/peps/pep-0429/>`__)
   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

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

0.15.93:
- 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

0.15.92:
- fix failure to parse empty implicit block mapping key

0.15.91:
- allowing duplicate keys would not work for merge keys

0.15.90:
- fix issue with updating CommentedMap from list of tuples

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

0.15.88:
- fix inclusing of python code from the subpackage data

0.15.87:
- fix problem with empty lists and the code to reinsert merge keys

0.15.86:
- 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)

0.15.85:
- 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.

0.15.84:
- fix for CommentedMap.copy() not returning CommentedMap, let alone copying \ 
comments etc.

0.15.83:
- fix for bug in roundtripping aliases used as key

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

0.15.81:
 - fix issue saving methods of metaclass derived classes

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

0.15.79:
- fix issue with anchors nested deeper than alias

0.15.78:
- fix setup issue for 3.8

0.15.77:
- 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

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

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

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

0.15.73:
- 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

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

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

0.15.71:
- 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

0.15.70:
- 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.

0.15.69:
- fix issue with dump_all gobbling end-of-document comments on parsing

0.15.68:
- 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

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

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

0.15.65:
- 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

0.15.64:
- 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

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

0.15.62:
- 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

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

0.15.60:
- cleanup for mypy
- spurious print in library

0.15.59:
- issue with C based loader and leading zeros

0.15.59:
- issue with C based loader and leading zeros

0.15.58:
- 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

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

0.15.56:
- fix issue with python -O optimizing away code

0.15.55:
- 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
  CommentedSeq*.
- duplicate keys (or their values) with non-ascii now correctly
  report in Python2, instead of raising a Unicode error.
   2018-08-14 16:54:26 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-ruamel-yaml: updated to 0.15.54

[0, 15, 54]:
  - fix issue where a comment could pop-up twice in the output
  - fix issue where JSON object (mapping) without spaces was not parsed
    properly
  - fix issue where comments after empty flow-style mappings were not emitted

[0, 15, 53]:
  - fix issue with flow style mapping with comments gobbled newline
  - fix issue where single '+' under YAML 1.2 was interpreted as
    integer, erroring out

[0, 15, 52]:
  - added .copy() mapping representation for round-tripping
    (CommentedMap) to fix incomplete copies of merged mappings
  - Also unmade that class a subclass of ordereddict to solve incorrect behaviour
    for {**merged-mapping} and dict(**merged-mapping)

[0, 15, 51]:
  - Fix method name dumps (were not dotted) and loads (reported by Douglas Raillard
  - Fix spurious trailing white-space caused when the comment start
    column was no longer reached and there was no actual EOL comment
    (e.g. following empty line) and doing substitutions, or when
    quotes around scalars got dropped.

[0, 15, 50]:
  - Allow YAML() as a context manager for output, thereby making it much easier
    to generate multi-documents in a stream.
  - Fix issue with incorrect type information for load() and dump()