Skip to content

Commit

Permalink
rm conda_built_tools Enum in place of Literal object
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusdc committed Oct 10, 2023
1 parent 8f66262 commit 970f945
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions conda_smithy/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,19 @@ def __call__(self) -> BaseModel:


#############################################
######## Choices (Enum) definitions #########
######## Choices (Enum/Literals) definitions #########
#############################################


class CondaBuildTools(str, Enum):
condaBuildTools = Literal(
# will run vanilla conda-build, with system configured / default solver
conda_build = "conda-build"
"conda-build",
# will run vanilla conda-build, with the classic solver
conda_build_classic = "conda-build+classic"
"conda-build+classic",
# will run vanilla conda-build, with libmamba solver
conda_build_libmamba = "conda-build+conda-libmamba-solver"
"conda-build+conda-libmamba-solver",
# will run 'conda mambabuild', as provided by boa
mambabuild = "mambabuild"
"mambabuild",
)


class CIservices(str, Enum):
Expand Down Expand Up @@ -484,7 +484,7 @@ class ConfigModel(BaseModel):
""",
)

conda_build_tool: Optional[CondaBuildTools] = Field(
conda_build_tool: Optional[condaBuildTools] = Field(
default="mambabuild",
description="""
Use this option to choose which tool is used to build your recipe.
Expand Down

0 comments on commit 970f945

Please sign in to comment.