Skip to content

Commit da31427

Browse files
ericapisaniclaude
andcommitted
build(test-asyncio-taskgroup): Migrate from pip to uv
Replace requirements.txt with pyproject.toml and update run.sh to use uv for dependency management and script execution. Refs PY-2430 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4344f7e commit da31427

3 files changed

Lines changed: 22 additions & 16 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[project]
2+
name = "test-asyncio-taskgroup"
3+
version = "0"
4+
requires-python = ">=3.12"
5+
6+
dependencies = [
7+
"aiohttp>=3.11.14",
8+
"fastapi==0.110.0",
9+
"ipdb>=0.13.13",
10+
"opentelemetry-distro>=0.50b0",
11+
"opentelemetry-instrumentation-fastapi>=0.50b0",
12+
"starlette==0.36.3",
13+
"uvicorn>=0.34.0",
14+
"sentry-sdk[fastapi]",
15+
]
16+
17+
[tool.uv.sources]
18+
sentry-sdk = { path = "../../sentry-python", editable = true }

test-asyncio-taskgroup/requirements.txt

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

test-asyncio-taskgroup/run.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

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

7-
pip install -r requirements.txt
8-
9-
uvicorn main:app --port 5000 --reload
8+
uv run uvicorn main:app --port 5000 --reload

0 commit comments

Comments
 (0)