Skip to content

Commit a011c9c

Browse files
authored
Merge pull request #28 from faucetsdn/ruamel.yaml-0.18.16
Import ruamel.yaml 0.18.16 source
2 parents 16e2604 + c2359e3 commit a011c9c

15 files changed

Lines changed: 109 additions & 71 deletions

.hgignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ _doc/*.pdf
1515
_doc/*.html
1616
_doc/*.rst
1717
_doc/*.md
18+
_doc/spec
19+
_doc/.zine*
1820
*.py_alt
1921

2022
ziglib

.hgtags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,3 +241,4 @@ eb3ecf31085135283908fc8449befebbc1fff4b3 0.18.5
241241
d815398d9f0fc4034dc709e36775cfff5f7a2a6b 0.18.12
242242
375c4db4c7c5fad61e149fc0690e50229df23ab3 0.18.13
243243
8912dd84f448cbe00b38495f01386fc966d7e9f3 0.18.14
244+
d3d281cdfa9d128f98abf7750220cd5bf1526c76 0.18.15

CHANGES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
[0.18.16, 2025-10-22]:
2+
- root level block style scalars that started with a directives-end marker or a
3+
document-end marker, are now indented 2 spaces.
4+
- merged fix for accessing end_marks on Tokens provided by
5+
[Toknak](https://sourceforge.net/u/taknok/)
6+
17
[0.18.15, 2025-08-19]:
28
- duplicate merge keys are never allowed (not even with .allow_duplicate_keys =
39
True

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
| | |
66
| - | - |
7-
| version |0.18.14 |
8-
| updated |2025-06-09 |
7+
| version |0.18.16 |
8+
| updated |2025-10-22 |
99
| documentation |https://yaml.dev/doc/ruamel.yaml |
1010
| repository |https://sourceforge.net/projects/ruamel-yaml |
1111
| pypi |https://pypi.org/project/ruamel.yaml |
@@ -81,7 +81,7 @@ email, preferably with some information on how you use the package (or a
8181
link to the repository) and I'll keep you informed when the status of
8282
the API is stable enough to make the transition.
8383

84-
For packaging purposes you can use a download of the [tar balls oof tagged source](https://yaml.dev/ruamel-dl-tagged-releases)
84+
For packaging purposes you can use a download of the [tar balls of tagged source](https://yaml.dev/ruamel-dl-tagged-releases)
8585

8686

8787
<a href="https://bestpractices.coreinfrastructure.org/projects/1128"><img src="https://bestpractices.coreinfrastructure.org/projects/1128/badge"></a>
@@ -90,7 +90,14 @@ For packaging purposes you can use a download of the [tar balls oof tagged sourc
9090
<a href="https://pypi.org/project/oitnb/"><img src="https://sourceforge.net/p/oitnb/code/ci/default/tree/_doc/_static/oitnb.svg?format=raw"></a>
9191
<a href="http://mypy-lang.org/"><img src="http://www.mypy-lang.org/static/mypy_badge.svg"></a>
9292
<a href="https://www.pepy.tech/projects/ruamel.yaml"><img src="https://img.shields.io/pepy/dt/ruamel.yaml.svg"></a>
93-
NEXT:<br>
93+
94+
0.18.16 (2025-10-22):
95+
96+
- root level block style scalars that started with a directives-end marker or a document-end marker, are now indented 2 spaces.
97+
- merged fix for accessing end_marks on Tokens provided by [Toknak](https://sourceforge.net/u/taknok/)
98+
99+
0.18.15 (2025-08-19):
100+
94101
- duplicate merge keys are never allowed (not even with .allow_duplicate_keys = True
95102
- merge keys now keep there position if a key before the merge key gets deleted (previously a key after the merge key would move before it)
96103

__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
_package_data = dict(
88
full_package_name='ruamel.yaml',
9-
version_info=(0, 18, 15),
10-
__version__='0.18.15',
11-
version_timestamp='2025-08-19 12:01:38',
9+
version_info=(0, 18, 16),
10+
__version__='0.18.16',
11+
version_timestamp='2025-10-22 19:50:12',
1212
author='Anthon van der Neut',
1313
author_email='a.van.der.neut@ruamel.eu',
1414
description='ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order', # NOQA

_doc/README.ryd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ email, preferably with some information on how you use the package (or a
130130
link to the repository) and I'll keep you informed when the status of
131131
the API is stable enough to make the transition.
132132

133-
For packaging purposes you can use a download of the [tar balls oof tagged source](https://yaml.dev/ruamel-dl-tagged-releases)
133+
For packaging purposes you can use a download of the [tar balls of tagged source](https://yaml.dev/ruamel-dl-tagged-releases)
134134

135135
--- !comment |
136136
# # ToDo 2024-12

_doc/_static/pypi.svg

Lines changed: 1 addition & 1 deletion
Loading

_test/test_literal.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,20 @@ def test_rt_root_literal_scalar_no_indent_no_eol(self) -> None:
323323
d = yaml.load(ys)
324324
yaml.dump(d, compare=ys)
325325

326+
def test_rt_root_literal_scalar_directive_end_at_start(self) -> None:
327+
yaml = YAML()
328+
yaml.explicit_start = True
329+
s = 'abc'
330+
ys = """
331+
--- |
332+
---
333+
{}
334+
"""
335+
ys = ys.format(s)
336+
d = yaml.load(ys)
337+
assert str(d) == '---\n{}\n'.format(s)
338+
yaml.dump(d, compare=ys)
339+
326340
def test_rt_non_root_literal_scalar(self) -> None:
327341
yaml = YAML()
328342
s = 'testing123'

_test/test_z_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def pytest_generate_tests(metafunc: Any) -> None:
102102
for path in paths:
103103
# while developing tests put them in data/debug and run:
104104
# auto -c "pytest _test/test_z_data.py" data/debug/*.yaml *.py _test/*.py
105-
if os.environ.get('RUAMELAUTOTEST') == '1':
105+
if os.environ.get('RUAMEL_AUTOTEST') == '1':
106106
if path.parent.stem != 'debug':
107107
continue
108108
elif path.parent.stem == 'debug':

compat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def with_metaclass(meta: Any, *bases: Any) -> Any:
7070

7171

7272
_debug: Optional[int] = None
73-
if 'RUAMELDEBUG' in os.environ:
74-
_debugx = os.environ.get('RUAMELDEBUG')
73+
if 'RUAMEL_DEBUG' in os.environ:
74+
_debugx = os.environ.get('RUAMEL_DEBUG')
7575
if _debugx is None:
7676
_debug = 0
7777
else:

0 commit comments

Comments
 (0)