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}")