Skip to content

build(test-asyncpg): Migrate from pip to uv#62

Merged
ericapisani merged 1 commit into
mainfrom
PY-2431-test-asyncpg
May 22, 2026
Merged

build(test-asyncpg): Migrate from pip to uv#62
ericapisani merged 1 commit into
mainfrom
PY-2431-test-asyncpg

Conversation

@ericapisani

Copy link
Copy Markdown
Member

Summary

  • Replace requirements.txt with pyproject.toml for dependency management
  • Update run.sh to use uv run instead of manual venv/pip workflow
  • Part of PY-2428 migration effort

Test plan

  • Run ./run.sh and verify the app runs correctly

🤖 Generated with Claude Code

Replace requirements.txt with pyproject.toml and update run.sh to use
uv for dependency management and script execution.

Refs PY-2431
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linear-code

linear-code Bot commented May 22, 2026

Copy link
Copy Markdown

PY-2431

PY-2428

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit fb6d66c. Configure here.

Comment thread test-asyncpg/run.sh
# 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.

[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.

@ericapisani ericapisani merged commit f8e166d into main May 22, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant