This repository was archived by the owner on Apr 23, 2025. It is now read-only.
forked from raizamartin/gemini-code
-
Notifications
You must be signed in to change notification settings - Fork 0
M3: Update CI to use uv for dependency management #31
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -36,14 +36,21 @@ For detailed installation instructions, please see the [Installation Guide](docs | |||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| **Recommended (PyPI):** | ||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||
| pip install cli-code-agent | ||||||||||||||||||||||||||||||||
| uv pip install cli-code-agent | ||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| **From Source:** | ||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||
| git clone https://github.com/BlueCentre/cli-code.git | ||||||||||||||||||||||||||||||||
| cd cli-code | ||||||||||||||||||||||||||||||||
| pip install -e . | ||||||||||||||||||||||||||||||||
| # Create a virtual environment (optional but recommended) | ||||||||||||||||||||||||||||||||
| # uv venv | ||||||||||||||||||||||||||||||||
| # source .venv/bin/activate | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| # Install in editable mode | ||||||||||||||||||||||||||||||||
| uv pip install -e . | ||||||||||||||||||||||||||||||||
| # For development including test dependencies, use: | ||||||||||||||||||||||||||||||||
| # uv pip install -e '.[dev]' | ||||||||||||||||||||||||||||||||
|
Comment on lines
+46
to
+53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The README instructs users to create a virtual environment but omits the activation step. Adding this would improve clarity. Also, the commented-out lines should be removed for better readability.
Suggested change
|
||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| ## Setup | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,15 +7,22 @@ This guide explains how to install, configure, and use CLI-Code. | |||||||||||||||||||||||||
| ### Option 1: Install from PyPI (Recommended) | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||
| pip install cli-code-agent | ||||||||||||||||||||||||||
| uv pip install cli-code-agent | ||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ### Option 2: Install from Source | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||
| git clone https://github.com/BlueCentre/cli-code.git | ||||||||||||||||||||||||||
| cd cli-code | ||||||||||||||||||||||||||
| pip install -e . | ||||||||||||||||||||||||||
| # Create a virtual environment (optional but recommended) | ||||||||||||||||||||||||||
| # uv venv | ||||||||||||||||||||||||||
| # source .venv/bin/activate | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| # Install in editable mode | ||||||||||||||||||||||||||
| uv pip install -e . | ||||||||||||||||||||||||||
| # For development including test dependencies, use: | ||||||||||||||||||||||||||
| # uv pip install -e '.[dev]' | ||||||||||||||||||||||||||
|
Comment on lines
+18
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The commented-out lines should be removed for better readability.
Suggested change
|
||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ## Setting Up Provider Credentials | ||||||||||||||||||||||||||
|
|
@@ -92,7 +99,7 @@ During an interactive session, you can use these commands: | |||||||||||||||||||||||||
| Configuration is stored in `~/.config/cli-code/config.yaml` with this structure: | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ```yaml | ||||||||||||||||||||||||||
| google_api_key: YOUR_GEMINI_API_KEY_HERE | ||||||||||||||||||||||||||
| google_api_key: YOUR_GEMINI_API_KEY | ||||||||||||||||||||||||||
| ollama_api_url: http://localhost:11434/v1 | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| default_provider: gemini | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
uvprefix is used here, but not consistently throughout the README anddocs/install.mdfiles. Should allpipcommands use theuvprefix, or should it be removed entirely?