Skip to content

Commit c5d4814

Browse files
authored
build(test-potel-trace-propagation): Migrate backend from pip to uv (#59)
Replace backend/requirements.txt with backend/pyproject.toml and update backend/run.sh to use uv for dependency management and script execution. Fixes PY-2486
1 parent aa19b28 commit c5d4814

3 files changed

Lines changed: 22 additions & 26 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[project]
2+
name = "test-potel-trace-propagation-backend"
3+
version = "0"
4+
requires-python = ">=3.12"
5+
6+
dependencies = [
7+
"blinker>=1.9.0",
8+
"flask>=3.1.0",
9+
"gunicorn>=23.0.0",
10+
"ipdb>=0.13.13",
11+
"markupsafe>=3.0.2",
12+
"requests>=2.32.3",
13+
"sentry-sdk[flask,opentelemetry-experimental]",
14+
]
15+
16+
[tool.uv.sources]
17+
sentry-sdk = { path = "../../../sentry-python", editable = true }

test-potel-trace-propagation/backend/requirements.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
#!/usr/bin/env bash
2+
set -euo pipefail
23

3-
# exit on first error
4-
set -xe
4+
if ! command -v uv &> /dev/null; then
5+
curl -LsSf https://astral.sh/uv/install.sh | sh
6+
fi
57

6-
# create and activate virtual environment
7-
python -m venv .venv
8-
source .venv/bin/activate
9-
10-
# Install (or update) requirements
11-
python -m pip install -r requirements.txt
12-
13-
14-
# Run Flask application on localhost:5000
15-
flask --app main run
16-
17-
# Run Flask application with multithreading (port 8000)
18-
# gunicorn main:app -w 1 --threads 12
8+
uv run flask --app main run

0 commit comments

Comments
 (0)