From c4d2bf93d396752c8d815d0695c2910d1c45d0f1 Mon Sep 17 00:00:00 2001 From: Marcelo Duarte Trevisani Date: Wed, 21 Aug 2024 08:29:39 +0100 Subject: [PATCH] Move conda_recipe_manager to be optional dependency (#555) --- grayskull/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grayskull/utils.py b/grayskull/utils.py index 1eeb19b08..bf377fa34 100644 --- a/grayskull/utils.py +++ b/grayskull/utils.py @@ -11,7 +11,6 @@ from shutil import copyfile from typing import Final, List, Optional, Union -from conda_recipe_manager.parser.recipe_parser_convert import RecipeParserConvert from ruamel.yaml import YAML from ruamel.yaml.comments import CommentedMap from souschef.recipe import Recipe @@ -245,6 +244,8 @@ def upgrade_v0_recipe_to_v1(recipe_path: Path) -> None: JINJA plugin. :param recipe_path: Path to that contains the original recipe file to modify. """ + from conda_recipe_manager.parser.recipe_parser_convert import RecipeParserConvert + recipe_content: Final[str] = RecipeParserConvert.pre_process_recipe_text( recipe_path.read_text() )