-
Notifications
You must be signed in to change notification settings - Fork 1
build(test-potel-aws-lambda): Migrate from pip to uv #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,11 +53,12 @@ echo "Creating temporary directory: $TEMP_DIR" | |
| echo "Copying function code..." | ||
| cp -r lambda_function/* $TEMP_DIR/ | ||
|
|
||
| # Create virtual environment and install dependencies | ||
| # Install dependencies | ||
| echo "Setting up Python environment..." | ||
| python -m venv $TEMP_DIR/.venv | ||
| source $TEMP_DIR/.venv/bin/activate | ||
| pip install -r $TEMP_DIR/requirements.txt -t $TEMP_DIR/ | ||
| if ! command -v uv &> /dev/null; then | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| fi | ||
| uv pip install --system --no-cache -r $TEMP_DIR/pyproject.toml --target $TEMP_DIR/ | ||
|
Comment on lines
+58
to
+61
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. Bug: The script installs Suggested FixAfter the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
|
|
||
| # Create deployment package | ||
| echo "Creating deployment package..." | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| [project] | ||
| name = "test-potel-aws-lambda" | ||
| version = "0" | ||
| requires-python = ">=3.12" | ||
|
|
||
| dependencies = [ | ||
| "sentry-sdk>=3.0.0a1", | ||
| ] |
This file was deleted.
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.
uv missing from PATH after install
Medium Severity
When
uvis not already onPATH,deploy.shruns the Astral installer and immediately callsuv pip install. The installer putsuvunder~/.local/binand only updates future shells, so the same script can exit with “command not found” and never build the Lambda zip.Reviewed by Cursor Bugbot for commit 541594f. Configure here.