Skip to content

Commit

Permalink
replacing use of deprecated ruamel.yaml.safe_load (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsihag committed Nov 14, 2023
1 parent 6aa7b7c commit 2d5d030
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions boa/core/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import subprocess
import sys
from conda.core.package_cache_data import PackageCacheData
import ruamel
from ruamel.yaml import YAML
import tempfile
from pathlib import Path
from os.path import isdir, join
Expand Down Expand Up @@ -64,7 +64,8 @@ def get_metadata(yml, config, is_pyproject_recipe=False):

d = toml.load(fi)["tool"]["boa"]
else:
d = ruamel.yaml.safe_load(fi)
loader = YAML(typ="safe", pure=True)
d = loader.load(fi)
o = Output(d, config)
return MetaData(os.path.dirname(yml), o)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"jinja2",
"setuptools",
"rich",
"ruamel.yaml",
"ruamel.yaml >=0.18.0",
"json5",
"watchgod",
"prompt-toolkit",
Expand Down

0 comments on commit 2d5d030

Please sign in to comment.