File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,11 +53,12 @@ echo "Creating temporary directory: $TEMP_DIR"
5353echo " Copying function code..."
5454cp -r lambda_function/* $TEMP_DIR /
5555
56- # Create virtual environment and install dependencies
56+ # Install dependencies
5757echo " Setting up Python environment..."
58- python -m venv $TEMP_DIR /.venv
59- source $TEMP_DIR /.venv/bin/activate
60- pip install -r $TEMP_DIR /requirements.txt -t $TEMP_DIR /
58+ if ! command -v uv & > /dev/null; then
59+ curl -LsSf https://astral.sh/uv/install.sh | sh
60+ fi
61+ uv pip install --system --no-cache -r $TEMP_DIR /pyproject.toml --target $TEMP_DIR /
6162
6263# Create deployment package
6364echo " Creating deployment package..."
Original file line number Diff line number Diff line change 1+ [project ]
2+ name = " test-potel-aws-lambda"
3+ version = " 0"
4+ requires-python = " >=3.12"
5+
6+ dependencies = [
7+ " sentry-sdk>=3.0.0a1" ,
8+ ]
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments