Skip to content

Commit dbfe2dc

Browse files
ericapisaniclaude
andcommitted
build(test-checkin-in-trace-id): Migrate to uv and pyproject.toml
Replace pip/requirements.txt with uv/pyproject.toml for dependency management. Update run.sh and run-celery.sh to use uv instead of manual venv creation and pip install. Refs PY-2437 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4344f7e commit dbfe2dc

4 files changed

Lines changed: 26 additions & 18 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[project]
2+
name = "test-checkin-in-trace-id"
3+
version = "0"
4+
requires-python = ">=3.12"
5+
6+
dependencies = [
7+
"celery[redis]>=5.4.0",
8+
"ipdb>=0.13.13",
9+
"requests>=2.32.3",
10+
"sentry-sdk[celery]",
11+
]
12+
13+
[tool.uv.sources]
14+
sentry-sdk = { path = "../../sentry-python", editable = true }

test-checkin-in-trace-id/requirements.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
python -m venv .venv
1+
#!/usr/bin/env bash
2+
set -euo pipefail
23

3-
source .venv/bin/activate
4-
5-
pip install -r requirements.txt
4+
if ! command -v uv &> /dev/null; then
5+
curl -LsSf https://astral.sh/uv/install.sh | sh
6+
fi
67

78
redis-server &
89

9-
celery -A tasks worker --loglevel=DEBUG
10+
uv run celery -A tasks worker --loglevel=DEBUG

test-checkin-in-trace-id/run.sh

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

2-
python -m venv .venv
4+
if ! command -v uv &> /dev/null; then
5+
curl -LsSf https://astral.sh/uv/install.sh | sh
6+
fi
37

4-
source .venv/bin/activate
5-
6-
pip install -r requirements.txt
7-
8-
python main.py
8+
uv run python main.py

0 commit comments

Comments
 (0)