Skip to content

Commit 75ac776

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

3 files changed

Lines changed: 20 additions & 20 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-gunicorn-gevent-otel"
3+
version = "0"
4+
requires-python = ">=3.12"
5+
6+
dependencies = [
7+
"gevent>=24.11.1",
8+
"gunicorn>=23.0.0",
9+
"ipdb>=0.13.13",
10+
"opentelemetry-distro>=0.52b0",
11+
"opentelemetry-exporter-otlp-proto-http>=1.31.0",
12+
"sentry-sdk",
13+
]
14+
15+
[tool.uv.sources]
16+
sentry-sdk = { path = "../../sentry-python", editable = true }

test-gunicorn-gevent-otel/requirements.txt

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

test-gunicorn-gevent-otel/run.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +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
11-
5+
if ! command -v uv &> /dev/null; then
6+
curl -LsSf https://astral.sh/uv/install.sh | sh
7+
fi
128

13-
gunicorn -c gunicorn.conf.py
9+
uv run gunicorn -c gunicorn.conf.py

0 commit comments

Comments
 (0)