Skip to content

Commit

Permalink
Move conda_recipe_manager to be optional dependency (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotrevisani authored Aug 21, 2024
1 parent 6d797ca commit c4d2bf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grayskull/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
)
Expand Down

0 comments on commit c4d2bf9

Please sign in to comment.