From d963a0f08506c083b3ca61b66ff5213918d99bd7 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 12 Jun 2024 14:19:10 -0400 Subject: [PATCH] Improve local testing docs for packse (#4279) --- scripts/scenarios/generate.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/scenarios/generate.py b/scripts/scenarios/generate.py index 8bd2b9aac..173eaa288 100755 --- a/scripts/scenarios/generate.py +++ b/scripts/scenarios/generate.py @@ -27,12 +27,10 @@ Usage: Override the uv package index and update the tests - $ UV_INDEX_URL="http://localhost:3141" ./scripts/scenarios/generate.py + $ UV_TEST_INDEX_URL="http://localhost:3141/simple/" ./scripts/scenarios/generate.py If an editable version of packse is installed, this script will use its bundled scenarios by default. - Use - """ import argparse @@ -194,7 +192,10 @@ def main(scenarios: list[Path], snapshot_update: bool = True): f"https://raw.githubusercontent.com/astral-sh/packse/{ref}/vendor/links.html" ) - data["index_url"] = f"https://astral-sh.github.io/packse/{ref}/simple-html/" + data["index_url"] = os.environ.get( + "UV_TEST_INDEX_URL", + f"https://astral-sh.github.io/packse/{ref}/simple-html/", + ) # Render the template logging.info(f"Rendering template {template.name}")