diff --git a/src/crewai/cli/tools/main.py b/src/crewai/cli/tools/main.py index f1176c035..9af33eece 100644 --- a/src/crewai/cli/tools/main.py +++ b/src/crewai/cli/tools/main.py @@ -83,7 +83,7 @@ class ToolCommand(BaseCommand, PlusAPIMixin): with tempfile.TemporaryDirectory() as temp_build_dir: subprocess.run( - ["uv", "build", "-f", "sdist", "--output", temp_build_dir], + ["uv", "build", "--sdist", "--out-dir", temp_build_dir], check=True, capture_output=False, ) @@ -93,7 +93,7 @@ class ToolCommand(BaseCommand, PlusAPIMixin): ) if not tarball_filename: console.print( - "Project build failed. Please ensure that the command `uv build -f sdist` completes successfully.", + "Project build failed. Please ensure that the command `uv build --sdist` completes successfully.", style="bold red", ) raise SystemExit diff --git a/tests/cli/tools/test_main.py b/tests/cli/tools/test_main.py index b4a99ea06..d44f74b99 100644 --- a/tests/cli/tools/test_main.py +++ b/tests/cli/tools/test_main.py @@ -161,7 +161,7 @@ def test_publish_when_not_in_sync_and_force( mock_get_project_version.assert_called_with(require=True) mock_get_project_description.assert_called_with(require=False) mock_subprocess_run.assert_called_with( - ["uv", "build", "-f", "sdist", "--output", unittest.mock.ANY], + ["uv", "build", "--sdist", "--out-dir", unittest.mock.ANY], check=True, capture_output=False, )