Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
replacing use of deprecated ruamel.yaml.safe_load
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsihag committed Oct 27, 2023
1 parent 6aa7b7c commit 0acbd86
Showing 1 changed file with 3 additions and 2 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")
d = loader.load(fi)
o = Output(d, config)
return MetaData(os.path.dirname(yml), o)

Expand Down

0 comments on commit 0acbd86

Please sign in to comment.