mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-02 05:38:12 +00:00
fix(devtools): refresh all published workspace packages on uv lock/sync
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user