config file for build

This commit is contained in:
Xi Yan 2024-09-10 11:02:46 -07:00
parent 4f021de10f
commit 0981193d78
2 changed files with 94 additions and 25 deletions

View file

@ -188,3 +188,19 @@ Provider configurations for each of the APIs provided by this package. This incl
the dependencies of these providers as well.
""",
)
@json_schema_type
class BuildConfig(BaseModel):
name: str
distribution: str = Field(
default="local", description="Type of distribution to build (adhoc | {})"
)
api_providers: Optional[str] = Field(
default_factory=list,
description="List of API provider names to build",
)
package_type: str = Field(
default="conda_env",
description="Type of package to build (conda_env | container)",
)