mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 08:38:30 +00:00
Adapt tool build command to uv
This commit is contained in:
@@ -83,7 +83,7 @@ class ToolCommand(BaseCommand, PlusAPIMixin):
|
|||||||
|
|
||||||
with tempfile.TemporaryDirectory() as temp_build_dir:
|
with tempfile.TemporaryDirectory() as temp_build_dir:
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
["uv", "build", "-f", "sdist", "--output", temp_build_dir],
|
["uv", "build", "--sdist", "--out-dir", temp_build_dir],
|
||||||
check=True,
|
check=True,
|
||||||
capture_output=False,
|
capture_output=False,
|
||||||
)
|
)
|
||||||
@@ -93,7 +93,7 @@ class ToolCommand(BaseCommand, PlusAPIMixin):
|
|||||||
)
|
)
|
||||||
if not tarball_filename:
|
if not tarball_filename:
|
||||||
console.print(
|
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",
|
style="bold red",
|
||||||
)
|
)
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|||||||
@@ -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_version.assert_called_with(require=True)
|
||||||
mock_get_project_description.assert_called_with(require=False)
|
mock_get_project_description.assert_called_with(require=False)
|
||||||
mock_subprocess_run.assert_called_with(
|
mock_subprocess_run.assert_called_with(
|
||||||
["uv", "build", "-f", "sdist", "--output", unittest.mock.ANY],
|
["uv", "build", "--sdist", "--out-dir", unittest.mock.ANY],
|
||||||
check=True,
|
check=True,
|
||||||
capture_output=False,
|
capture_output=False,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user