Skip to content

Commit f8e166d

Browse files
authored
build(test-asyncpg): Migrate from pip to uv (#62)
Replace requirements.txt with pyproject.toml and update run.sh to use uv for dependency management and script execution. Refs PY-2431
1 parent 0190e84 commit f8e166d

3 files changed

Lines changed: 18 additions & 15 deletions

File tree

test-asyncpg/pyproject.toml

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

test-asyncpg/requirements.txt

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

test-asyncpg/run.sh

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +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-
python main.py
8+
uv run python main.py

0 commit comments

Comments
 (0)