1
0

39 Commits

Author SHA256 Message Date
414734d30b Accepting request 1158536 from home:ojkastl_buildservice:Branch_devel_languages_python
update to 0.18.6

OBS-URL: https://build.opensuse.org/request/show/1158536
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=75
2024-03-18 15:51:50 +00:00
007d58b6f2 Accepting request 1115569 from home:mimi_vx:branches:devel:languages:python
- 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
2023-10-04 14:10:18 +00:00
885b610607 Accepting request 1090138 from home:ojkastl_buildservice:Branch_devel_languages_python
OBS-URL: https://build.opensuse.org/request/show/1090138
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=71
2023-06-01 11:13:11 +00:00
a298abc0b4 Accepting request 1087670 from home:ojkastl_buildservice:Branch_devel_languages_python
- adapt patch 0000-fix-big-endian-issues.patch
- update to 0.17.26

OBS-URL: https://build.opensuse.org/request/show/1087670
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=67
2023-05-18 09:33:57 +00:00
e01b219c77 Accepting request 1081609 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081609
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=65
2023-04-21 13:36:43 +00:00
9a9231bc7b - update to 0.17.21:
* fix bug in calling `.compose()` method with `pathlib.Path` instance.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=63
2022-07-19 12:00:14 +00:00
3f9a35e7d4 Accepting request 973746 from home:jbaier_cz:branches:devel:languages:python
add 0000-fix-big-endian-issues.patch to workaround issue 360 on big endian systems

OBS-URL: https://build.opensuse.org/request/show/973746
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=61
2022-04-29 09:49:58 +00:00
a0f71a02e3 - update to 0.17.20:
- fix error in microseconds while rounding datetime fractions >= 9999995
  - fix mypy problems
  - copy-paste error in folded scalar comment attachment
  - fix 411, indent error comment between key empty seq value

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=60
2022-01-10 22:48:43 +00:00
1a8d18f05f - update to 0.17.17:
* extract timestamp matching/creation to util

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=59
2021-11-29 11:01:16 +00:00
7c2b663a27 - update to 0.17.16:
- 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
2021-10-16 22:33:52 +00:00
24a75e3d1a - update to 0.17.10:
- 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
2021-07-17 13:54:50 +00:00
c4106fc0af Accepting request 889834 from home:buschmann23:branches:devel:languages:python
- update to 0.17.4
  * prevent (empty) comments from throwing assertion error comments
    (or empty line) will be dropped
- update to 0.17.3
  * fix for issue 382 caused by an error in a format string
  * allow expansion of aliases by setting
    yaml.composer.return_alias = lambda s: copy.deepcopy(s)

OBS-URL: https://build.opensuse.org/request/show/889834
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=54
2021-05-02 21:10:45 +00:00
adcc4deeaf - update to 0.17.2
* fix upstream packaging problems

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=52
2021-03-30 09:29:48 +00:00
822a66cb8e - update to 0.17.0
* drop python2 support
 * preparation for f-strings

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=51
2021-03-26 15:33:21 +00:00
c120fbc609 Accepting request 842062 from home:buschmann23:branches:M17N
update to version 0.16.12

OBS-URL: https://build.opensuse.org/request/show/842062
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=49
2020-10-16 11:33:54 +00:00
3a8048352a - update to 0.16.10 (bsc#1164458, CVE-2019-20478)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=47
2020-02-21 23:18:17 +00:00
677bd88895 - update to 0.16.10
* fix typchecking issue on TaggedScalar
 * fix error in dumping literal scalar in sequence with comments before element
 * fix empty string mapping key roundtripping with preservation of quotes as ? ‘
 * fix incorrect state setting in class constructor

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=46
2020-02-21 10:03:55 +00:00
Tomáš Chvátal
0b93a68d7f Accepting request 731320 from home:jayvdb:branches:devel:languages:python
Use recommended syntax in .spec

OBS-URL: https://build.opensuse.org/request/show/731320
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=44
2019-09-17 08:39:01 +00:00
999f00903b - update to 0.16.5
* 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
2019-09-06 06:56:01 +00:00
f553874562 - ruamel.yaml.clib is now harddep
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=39
2019-08-12 12:38:07 +00:00
f6214db518 - update to 0.16.1
* Allow '#' in tag URI as these are allowed in YAML 1.2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=37
2019-08-08 13:28:48 +00:00
53f453f00d - update to 0.16.0
* split c-library to separeate package (python-ruamel.yaml.clib)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=36
2019-08-07 13:50:59 +00:00
Tomáš Chvátal
57302ecd42 Accepting request 715403 from home:jayvdb:moban
minor change
note new rpm warning re zero length py.typed is ok, same as upstream
25737c624a (chg-py.typed)
the file will likely be expanded in coming releases, so the warning should go away soon enough

OBS-URL: https://build.opensuse.org/request/show/715403
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=33
2019-07-15 08:55:41 +00:00
655b957ea9 - update to 0.15.96
* fix failure to round-trip anchored scalars in block sequence
 * fix failure to indent comments on round-trip anchored block style
    scalars in block sequence

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=31
2019-05-21 11:21:43 +00:00
9b71306e3c - update to 0.15.94
* fix missing line-break after end-of-file comments not ending in
    line-break
 * 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=29
2019-05-14 07:25:01 +00:00
c29703af3f - update to 0.15.92
* 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=27
2019-04-18 13:23:33 +00:00
5a4bbc9ccd - update to 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
 * fix inclusing of python code from the subpackage data

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=25
2019-03-01 14:18:23 +00:00
Tomáš Chvátal
a340ce1ae1 Accepting request 669501 from home:mimi_vx:branches:devel:languages:python
- 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
2019-01-29 11:13:45 +00:00
Tomáš Chvátal
6797ee15cf Accepting request 653802 from home:mimi_vx:branches:devel:languages:python
- update to 0.15.80
 * fix issue emitting BEL character when round-tripping invalid folded input
 * fix issue with anchors nested deeper than alias

OBS-URL: https://build.opensuse.org/request/show/653802
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=21
2018-12-06 08:34:12 +00:00
0bebd411ae Accepting request 652807 from home:adrianSuSE:home-assistant
- 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
2018-11-30 14:22:53 +00:00
Petr Cervinka
b778fe59c4 Accepting request 639359 from home:mimi_vx:branches:devel:languages:python
- 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
2018-10-01 12:05:41 +00:00
c5a778ee91 Accepting request 632476 from home:mimi_vx:branches:devel:languages:python
- update to 0.15.64
 * support round-trip of tagged sequences: !Arg [a, {b: 1}]
 * fix issue when roundtripping floats starting with a dot such as .5 
 * C based reader/scanner & emitter now allow setting of 1.2 as YAML version

OBS-URL: https://build.opensuse.org/request/show/632476
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=15
2018-08-31 10:55:20 +00:00
bec2b18a1d Accepting request 631987 from home:mimi_vx:branches:devel:languages:python
- 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
2018-08-28 13:28:18 +00:00
6093c15165 Accepting request 622949 from home:mimi_vx:branches:devel:languages:python
- update to 0.15.44
 * fix for losing precision when roundtripping floats by
 * decoding unicode escaped tags on Python2
 * add detection of C-compile failure
 * fix regression showing only on narrow Python 2.7
 * ``register_class()`` now returns class

OBS-URL: https://build.opensuse.org/request/show/622949
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=11
2018-07-15 22:09:26 +00:00
b7b76e0241 Accepting request 593617 from home:mimi_vx:branches:devel:languages:python
- update to 0.15.37
 * fix incompatibility of C extension with 3.7

OBS-URL: https://build.opensuse.org/request/show/593617
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=9
2018-04-04 19:11:24 +00:00
608855f707 Accepting request 562788 from home:mimi_vx:branches:devel:languages:python
- update to 0.15.35
 * allow None as stream when specifying transform parameters to YAML.dump()

OBS-URL: https://build.opensuse.org/request/show/562788
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=7
2018-01-09 09:00:05 +00:00
Jan Matejek
5c9edb3719 Accepting request 533656 from home:mimi_vx:branches:devel:languages:python
- 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
2017-10-12 13:31:32 +00:00
24f9809fb5 Accepting request 490856 from home:alois:branches:devel:languages:python
- Update to 0.14.9 (see included CHANGES file)
- Converted to single-spec
- LICENSE file is now provided internally, so dropped Source1
- Dropped python-ruamel.ordereddict as build requirement

OBS-URL: https://build.opensuse.org/request/show/490856
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=3
2017-04-25 03:45:11 +00:00
e9dbd6f48f Accepting request 453530 from Cloud:Tools
- Needed by google-cloud-sdk, generally useful

OBS-URL: https://build.opensuse.org/request/show/453530
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=1
2017-01-31 08:44:13 +00:00