Skip to content

Commit

Permalink
cutting new version with no yaml parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomdmoura committed May 14, 2024
1 parent 977c611 commit 1a1f471
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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 <joao@crewai.com>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/templates/pyproject.toml
Expand Up @@ -6,7 +6,7 @@ authors = ["Your Name <you@example.com>"]

[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"
Expand Down
5 changes: 2 additions & 3 deletions src/crewai/project/crew_base.py
Expand Up @@ -5,7 +5,6 @@
import yaml
from dotenv import load_dotenv

from crewai.utilities.parser import YamlParser

load_dotenv()

Expand Down Expand Up @@ -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

0 comments on commit 1a1f471

Please sign in to comment.