Skip to content

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

fix(devtools): refresh all published workspace packages on uv lock/sync

Greyson LaLondef495bda01613
diff --git a/lib/devtools/src/crewai_devtools/cli.py b/lib/devtools/src/crewai_devtools/cli.py
index d89b08ee8..5227501cf 100644
--- a/lib/devtools/src/crewai_devtools/cli.py
+++ b/lib/devtools/src/crewai_devtools/cli.py
@@ -1351,6 +1351,14 @@ def _repin_crewai_install(run_value: str, version: str) -> str:
_DEPLOYMENT_TEST_REPO: Final[str] = "crewAIInc/crew_deployment_test"
+_PUBLISHED_WORKSPACE_PACKAGES: Final[tuple[str, ...]] = (
+ "crewai",
+ "crewai-cli",
+ "crewai-core",
+ "crewai-files",
+ "crewai-tools",
+)
+
_PYPI_POLL_INTERVAL: Final[int] = 15
_PYPI_POLL_TIMEOUT: Final[int] = 600
@@ -1403,14 +1411,9 @@ def _update_deployment_test_repo(version: str, is_prerelease: bool) -> None:
]
if pyproject_changed:
- lock_cmd = [
- "uv",
- "lock",
- "--refresh-package",
- "crewai",
- "--refresh-package",
- "crewai-tools",
- ]
+ lock_cmd = ["uv", "lock"]
+ for pkg in _PUBLISHED_WORKSPACE_PACKAGES:
+ lock_cmd.extend(["--refresh-package", pkg])
if is_prerelease:
lock_cmd.append("--prerelease=allow")
@@ -1615,16 +1618,9 @@ def _release_enterprise(version: str, is_prerelease: bool, dry_run: bool) -> Non
_wait_for_pypi("crewai", version)
console.print("\nSyncing workspace...")
- sync_cmd = [
- "uv",
- "sync",
- "--refresh-package",
- "crewai",
- "--refresh-package",
- "crewai-tools",
- "--refresh-package",
- "crewai-files",
- ]
+ sync_cmd = ["uv", "sync"]
+ for pkg in _PUBLISHED_WORKSPACE_PACKAGES:
+ sync_cmd.extend(["--refresh-package", pkg])
if is_prerelease:
sync_cmd.append("--prerelease=allow")