Skip to content

Commit ce6edab

Browse files
authored
build(test-tracing-twp-dsc): Migrate from pip to uv (#54)
Replace requirements.txt with pyproject.toml and update run.sh to use uv for dependency management and script execution. Fixes PY-2481
1 parent e21b464 commit ce6edab

3 files changed

Lines changed: 20 additions & 16 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[project]
2+
name = "test-tracing-twp-dsc"
3+
version = "0"
4+
requires-python = ">=3.12"
5+
6+
dependencies = [
7+
"aiohttp>=3.11.14",
8+
"fastapi>=0.115.11",
9+
"honcho>=2.0.0",
10+
"ipdb>=0.13.13",
11+
"uvicorn>=0.34.0",
12+
"sentry-sdk[fastapi]",
13+
]
14+
15+
[tool.uv.sources]
16+
sentry-sdk = { path = "../../sentry-python", editable = true }

test-tracing-twp-dsc/requirements.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

test-tracing-twp-dsc/run.sh

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

5-
python -m venv .venv
6-
source .venv/bin/activate
7-
8-
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
97

10-
# see Procfile for the commands that are run
11-
honcho start
8+
uv run honcho start

0 commit comments

Comments
 (0)