Skip to content

Commit b186bb3

Browse files
authored
build(test-long-running-transaction): Migrate to uv and pyproject.toml (#42)
Replace pip/requirements.txt with uv/pyproject.toml for dependency management. Update run.sh to use uv run. Fixes PY-2469
1 parent 6ce1d68 commit b186bb3

3 files changed

Lines changed: 17 additions & 13 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[project]
2+
name = "test-long-running-transaction"
3+
version = "0"
4+
requires-python = ">=3.12"
5+
6+
dependencies = [
7+
"ipdb>=0.13.13",
8+
"sentry-sdk",
9+
"Werkzeug<2.1.0",
10+
]
11+
12+
[tool.uv.sources]
13+
sentry-sdk = { path = "../../sentry-python", editable = true }

test-long-running-transaction/requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
#!/usr/bin/env bash
2-
32
set -euo pipefail
4-
53
reset
64

7-
python -m venv .venv
8-
source .venv/bin/activate
9-
10-
pip install -r requirements.txt
5+
if ! command -v uv &> /dev/null; then
6+
curl -LsSf https://astral.sh/uv/install.sh | sh
7+
fi
118

12-
python main.py
9+
uv run python main.py

0 commit comments

Comments
 (0)