Skip to content

Commit

Permalink
Merge pull request #23 from GaetanLepage/fix-set-ctag
Browse files Browse the repository at this point in the history
fix: adapt to ruamel.yaml new yaml_set_ctag API
  • Loading branch information
pplantinga authored Sep 21, 2023
2 parents 1855d61 + 95c6133 commit edc59b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion hyperpyyaml/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)

0 comments on commit edc59b0

Please sign in to comment.