From 983fb752c135201b4739fb6025cba4c25f9dd893 Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Thu, 21 May 2026 16:31:07 -0400 Subject: [PATCH] build(test-multiprocessing): 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-2465 Co-Authored-By: Claude Opus 4.6 --- test-multiprocessing/pyproject.toml | 12 ++++++++++++ test-multiprocessing/requirements.txt | 5 ----- test-multiprocessing/run.sh | 11 ++++------- 3 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 test-multiprocessing/pyproject.toml delete mode 100644 test-multiprocessing/requirements.txt diff --git a/test-multiprocessing/pyproject.toml b/test-multiprocessing/pyproject.toml new file mode 100644 index 0000000..5064f8f --- /dev/null +++ b/test-multiprocessing/pyproject.toml @@ -0,0 +1,12 @@ +[project] +name = "test-multiprocessing" +version = "0" +requires-python = ">=3.12" + +dependencies = [ + "ipdb>=0.13.13", + "sentry-sdk", +] + +[tool.uv.sources] +sentry-sdk = { path = "../../sentry-python", editable = true } diff --git a/test-multiprocessing/requirements.txt b/test-multiprocessing/requirements.txt deleted file mode 100644 index e9d67b8..0000000 --- a/test-multiprocessing/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -ipdb - -# Sentry --e ../../../code/sentry-python/ # local dev version of sentry python sdk. -# sentry-sdk==1.11.0 # production version of sentry python sdk from PyPI. diff --git a/test-multiprocessing/run.sh b/test-multiprocessing/run.sh index 8a207ef..a08057d 100755 --- a/test-multiprocessing/run.sh +++ b/test-multiprocessing/run.sh @@ -1,12 +1,9 @@ #!/usr/bin/env bash - set -euo pipefail - reset -python -m venv .venv -source .venv/bin/activate - -pip install -r requirements.txt +if ! command -v uv &> /dev/null; then + curl -LsSf https://astral.sh/uv/install.sh | sh +fi -python main.py \ No newline at end of file +uv run python main.py