Skip to content

Commit

Permalink
fix: adapt to ruamel.yaml new yaml_set_ctag API
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Sep 20, 2023
1 parent 1855d61 commit 95c6133
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 95c6133

Please sign in to comment.