Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions test-asyncpg/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[project]
name = "test-asyncpg"
version = "0"
requires-python = ">=3.12"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python version conflicts with pin

Medium Severity

requires-python = ">=3.12" conflicts with the existing test-asyncpg/.python-version pin of 3.10, so uv run can refuse the interpreter or fail resolution where the old pip workflow still worked on 3.10.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit fb6d66c. Configure here.


dependencies = [
"asyncpg>=0.30.0",
"ipdb>=0.13.13",
"sentry-sdk[asyncpg]",
]

[tool.uv.sources]
sentry-sdk = { path = "../../sentry-python", editable = true }
5 changes: 0 additions & 5 deletions test-asyncpg/requirements.txt

This file was deleted.

15 changes: 5 additions & 10 deletions test-asyncpg/run.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail

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

# create and activate virtual environment
python -m venv .venv
source .venv/bin/activate

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uv not on PATH after install

Medium Severity

The uv installer, when run via curl | sh, updates PATH only within its subshell. This prevents the main script from finding uv for uv run, causing "command not found" errors despite a successful installation.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit fb6d66c. Configure here.

# Install (or update) requirements
python -m pip install -r requirements.txt

python main.py
uv run python main.py
Loading