Skip to content

Commit b1aff78

Browse files
ericapisaniclaude
andcommitted
build(test-lambda-function): Migrate to uv and pyproject.toml
Replace pip/requirements.txt with uv/pyproject.toml for dependency management. Update build.sh to use uv pip install instead of pip. Refs PY-2460 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4344f7e commit b1aff78

3 files changed

Lines changed: 17 additions & 4 deletions

File tree

test-lambda-function/build.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
#!/usr/bin/env bash
2+
set -euo pipefail
23

3-
set -ex
4+
if ! command -v uv &> /dev/null; then
5+
curl -LsSf https://astral.sh/uv/install.sh | sh
6+
fi
47

58
rm -rf lambda_function_package.zip
69
rm -rf ./python_with_sentry/package/*
710

8-
pip install --target ./python_with_sentry/package -r requirements.txt
11+
uv pip install --target ./python_with_sentry/package -r pyproject.toml
912

1013
cd ./python_with_sentry/package && zip -x "**/__pycache__/*" -r ../../lambda_function_package.zip . && cd -
1114

12-
cd ./python_with_sentry && zip -g ../lambda_function_package.zip lambda_function.py && cd -
15+
cd ./python_with_sentry && zip -g ../lambda_function_package.zip lambda_function.py && cd -
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[project]
2+
name = "test-lambda-function"
3+
version = "0"
4+
requires-python = ">=3.12"
5+
6+
dependencies = [
7+
"sentry-sdk",
8+
]
9+
10+
[tool.uv.sources]
11+
sentry-sdk = { path = "../../sentry-python", editable = true }

test-lambda-function/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)