From 0acbd86f7f2e2eed3e7f297cd7a3133f967fa1ad Mon Sep 17 00:00:00 2001 From: Deepak Sihag Date: Fri, 27 Oct 2023 12:23:39 -0700 Subject: [PATCH 1/2] replacing use of deprecated ruamel.yaml.safe_load --- boa/core/test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/boa/core/test.py b/boa/core/test.py index 9cdebfe6..a63e83bc 100644 --- a/boa/core/test.py +++ b/boa/core/test.py @@ -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 @@ -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) From c6b7bb2557b6123fd3154334d188017c56c7e155 Mon Sep 17 00:00:00 2001 From: Deepak Sihag Date: Mon, 30 Oct 2023 12:49:26 -0700 Subject: [PATCH 2/2] feedback --- boa/core/test.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boa/core/test.py b/boa/core/test.py index a63e83bc..afd391cd 100644 --- a/boa/core/test.py +++ b/boa/core/test.py @@ -64,7 +64,7 @@ def get_metadata(yml, config, is_pyproject_recipe=False): d = toml.load(fi)["tool"]["boa"] else: - loader = YAML(typ="safe") + loader = YAML(typ="safe", pure=True) d = loader.load(fi) o = Output(d, config) return MetaData(os.path.dirname(yml), o) diff --git a/setup.py b/setup.py index d3d741e6..28c6dd47 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ "jinja2", "setuptools", "rich", - "ruamel.yaml", + "ruamel.yaml >=0.18.0", "json5", "watchgod", "prompt-toolkit",