Skip to content

Commit d31f607

Browse files
authored
Merge pull request #1930 from codeflash-ai/cf-remove-uv-tool-install-refs
fix: replace remaining uv tool install refs with uv pip install
2 parents 14dafe0 + ec302cc commit d31f607

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

codeflash/cli_cmds/init_javascript.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,9 +700,9 @@ def get_js_codeflash_install_step(pkg_manager: JsPackageManager, *, is_dependenc
700700
# Codeflash will be installed with other dependencies
701701
return ""
702702

703-
# Install codeflash via uv (Python + uv are set up in the workflow)
703+
# Install codeflash via uv pip (Python + uv are set up in the workflow)
704704
return """- name: 📥 Install Codeflash
705-
run: uv tool install codeflash"""
705+
run: uv pip install codeflash"""
706706

707707

708708
def get_js_codeflash_run_command(pkg_manager: JsPackageManager, *, is_dependency: bool) -> str:

docs/getting-started/javascript-installation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ bun add --dev codeflash
7676
```bash
7777
pip install codeflash
7878
# or
79-
uv tool install codeflash
79+
uv pip install codeflash
8080
```
8181

8282
The Python CLI orchestrates the optimization pipeline, while the npm package provides the JavaScript runtime (test runners, serialization, reporters).

tests/code_utils/test_js_workflow_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ def test_returns_empty_when_is_dependency(self) -> None:
131131

132132
assert result == ""
133133

134-
def test_uv_tool_install_when_not_dependency(self) -> None:
135-
"""Should generate uv tool install when not a dependency, regardless of package manager."""
134+
def test_uv_pip_install_when_not_dependency(self) -> None:
135+
"""Should generate uv pip install when not a dependency, regardless of package manager."""
136136
for pkg_manager in (JsPackageManager.NPM, JsPackageManager.YARN, JsPackageManager.PNPM, JsPackageManager.BUN):
137137
result = get_js_codeflash_install_step(pkg_manager, is_dependency=False)
138138

139139
assert "Install Codeflash" in result
140-
assert "uv tool install codeflash" in result
140+
assert "uv pip install codeflash" in result
141141

142142

143143
class TestGetJsCodeflashRunCommand:

0 commit comments

Comments
 (0)