From 95c6133686c42764770a77429eab55f6dfe5581c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 20 Sep 2023 13:06:27 +0200 Subject: [PATCH] fix: adapt to ruamel.yaml new yaml_set_ctag API --- hyperpyyaml/core.py | 4 +++- setup.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hyperpyyaml/core.py b/hyperpyyaml/core.py index 52d6443..3a809e9 100644 --- a/hyperpyyaml/core.py +++ b/hyperpyyaml/core.py @@ -608,7 +608,9 @@ def deref(ref, full_tree, copy_mode=False): if attr is not None: node = ruamel.yaml.comments.CommentedSeq() node += [branch, attr] - node.yaml_set_tag("!apply:getattr") + node.yaml_set_ctag( + ruamel.yaml.Tag(suffix="!apply:getattr") + ) return node return branch diff --git a/setup.py b/setup.py index 5561c65..7cc7f84 100644 --- a/setup.py +++ b/setup.py @@ -18,5 +18,5 @@ "License :: OSI Approved :: Apache Software License", ], packages=["hyperpyyaml"], - install_requires=["pyyaml>=5.1", "ruamel.yaml>=0.17.8, <=0.17.28"], + install_requires=["pyyaml>=5.1", "ruamel.yaml>=0.17.28"], )