From 7d581417ee62540e57c67cc6f90f13fd32bf24e2 Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Thu, 21 May 2026 16:36:14 -0400 Subject: [PATCH 1/2] build(test-redis-asyncio): Migrate from pip to uv Replace requirements.txt with pyproject.toml and update run.sh to use uv for dependency management and script execution. Refs PY-2474 Co-Authored-By: Claude Opus 4.6 --- test-redis-asyncio/pyproject.toml | 13 +++++++++++++ test-redis-asyncio/requirements.txt | 6 ------ test-redis-asyncio/run.sh | 16 +++++----------- 3 files changed, 18 insertions(+), 17 deletions(-) create mode 100644 test-redis-asyncio/pyproject.toml delete mode 100644 test-redis-asyncio/requirements.txt diff --git a/test-redis-asyncio/pyproject.toml b/test-redis-asyncio/pyproject.toml new file mode 100644 index 0000000..40b8b3b --- /dev/null +++ b/test-redis-asyncio/pyproject.toml @@ -0,0 +1,13 @@ +[project] +name = "test-redis-asyncio" +version = "0" +requires-python = ">=3.12" + +dependencies = [ + "ipdb>=0.13.13", + "redis>=5.2.1", + "sentry-sdk", +] + +[tool.uv.sources] +sentry-sdk = { path = "../../sentry-python", editable = true } diff --git a/test-redis-asyncio/requirements.txt b/test-redis-asyncio/requirements.txt deleted file mode 100644 index 38e329e..0000000 --- a/test-redis-asyncio/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ - -redis # caching - -ipdb # debugging - --e ../../../code/sentry-python # sdk in a sibling folder to this projects folder diff --git a/test-redis-asyncio/run.sh b/test-redis-asyncio/run.sh index 7f9cc3c..2702ff8 100755 --- a/test-redis-asyncio/run.sh +++ b/test-redis-asyncio/run.sh @@ -1,19 +1,13 @@ #!/usr/bin/env bash +set -euo pipefail -# exit on first error -set -xe - -# create and activate virtual environment -python -m venv .venv -source .venv/bin/activate - -# Install (or update) requirements -python -m pip install -r requirements.txt +if ! command -v uv &> /dev/null; then + curl -LsSf https://astral.sh/uv/install.sh | sh +fi pkill redis-server || true sleep 1 rm -rf dump.rdb redis-server --daemonize yes -# Run program -python main.py \ No newline at end of file +uv run python main.py From 9c7cced8565cf37ba4a409f9cdeeb75386413c41 Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Thu, 21 May 2026 17:30:53 -0400 Subject: [PATCH 2/2] fix python version --- test-redis-asyncio/.python-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-redis-asyncio/.python-version b/test-redis-asyncio/.python-version index 2c07333..e4fba21 100644 --- a/test-redis-asyncio/.python-version +++ b/test-redis-asyncio/.python-version @@ -1 +1 @@ -3.11 +3.12