From 1a1f4717aaad410b83f924abcfc8f697c9f6dd70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Mon, 13 May 2024 23:09:29 -0300 Subject: [PATCH] cutting new version with no yaml parsing --- pyproject.toml | 2 +- src/crewai/cli/templates/pyproject.toml | 2 +- src/crewai/project/crew_base.py | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7055999d7d..420d7f1372 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "crewai" -version = "0.30.7" +version = "0.30.8" description = "Cutting-edge framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks." authors = ["Joao Moura "] readme = "README.md" diff --git a/src/crewai/cli/templates/pyproject.toml b/src/crewai/cli/templates/pyproject.toml index e507e7305a..c81390b44b 100644 --- a/src/crewai/cli/templates/pyproject.toml +++ b/src/crewai/cli/templates/pyproject.toml @@ -6,7 +6,7 @@ authors = ["Your Name "] [tool.poetry.dependencies] python = ">=3.10,<=3.13" -crewai = {extras = ["tools"], version = "^0.30.7"} +crewai = {extras = ["tools"], version = "^0.30.8"} [tool.poetry.scripts] {{folder_name}} = "{{folder_name}}.main:run" diff --git a/src/crewai/project/crew_base.py b/src/crewai/project/crew_base.py index 7fa5f12f43..f726c5c587 100644 --- a/src/crewai/project/crew_base.py +++ b/src/crewai/project/crew_base.py @@ -5,7 +5,6 @@ import yaml from dotenv import load_dotenv -from crewai.utilities.parser import YamlParser load_dotenv() @@ -46,7 +45,7 @@ def __init__(self, *args, **kwargs): @staticmethod def load_yaml(config_path: str): with open(config_path, "r") as file: - parsedContent = YamlParser.parse(file) # type: ignore # Argument 1 to "parse" has incompatible type "TextIOWrapper"; expected "YamlParser" - return yaml.safe_load(parsedContent) + # parsedContent = YamlParser.parse(file) # type: ignore # Argument 1 to "parse" has incompatible type "TextIOWrapper"; expected "YamlParser" + return yaml.safe_load(file) return WrappedClass