From 95e3d6db7a761e54e0b93ff4ba9077eec450fee9 Mon Sep 17 00:00:00 2001 From: Heitor Carvalho Date: Tue, 19 Aug 2025 09:11:30 -0300 Subject: [PATCH] fix: add 'tool' section migration when running crewai update (#3341) --- src/crewai/cli/update_crew.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crewai/cli/update_crew.py b/src/crewai/cli/update_crew.py index e7ed69aa1..979fb950e 100644 --- a/src/crewai/cli/update_crew.py +++ b/src/crewai/cli/update_crew.py @@ -44,8 +44,9 @@ def migrate_pyproject(input_file, output_file): ] new_pyproject["project"]["requires-python"] = poetry_data.get("python") else: - # If it's already in the new format, just copy the project section + # If it's already in the new format, just copy the project and tool sections new_pyproject["project"] = pyproject_data.get("project", {}) + new_pyproject["tool"] = pyproject_data.get("tool", {}) # Migrate or copy dependencies if "dependencies" in new_pyproject["project"]: