mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 08:38:30 +00:00
feat: update logic to let only projects with crew to be deployed
This commit is contained in:
@@ -95,9 +95,9 @@ def _get_project_attribute(
|
|||||||
pyproject_content = parse_toml(f.read())
|
pyproject_content = parse_toml(f.read())
|
||||||
|
|
||||||
dependencies = (
|
dependencies = (
|
||||||
_get_nested_value(pyproject_content, ["project", "dependencies"]) or {}
|
_get_nested_value(pyproject_content, ["project", "dependencies"]) or []
|
||||||
)
|
)
|
||||||
if "crewai" not in dependencies:
|
if not any(True for dep in dependencies if "crewai" in dep):
|
||||||
raise Exception("crewai is not in the dependencies.")
|
raise Exception("crewai is not in the dependencies.")
|
||||||
|
|
||||||
attribute = _get_nested_value(pyproject_content, keys)
|
attribute = _get_nested_value(pyproject_content, keys)
|
||||||
|
|||||||
Reference in New Issue
Block a user