mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Improve local testing docs for packse (#4279)
This commit is contained in:
parent
3910b7a90c
commit
d963a0f085
1 changed files with 5 additions and 4 deletions
|
@ -27,12 +27,10 @@ Usage:
|
||||||
|
|
||||||
Override the uv package index and update the tests
|
Override the uv package index and update the tests
|
||||||
|
|
||||||
$ UV_INDEX_URL="http://localhost:3141" ./scripts/scenarios/generate.py <path to scenarios>
|
$ UV_TEST_INDEX_URL="http://localhost:3141/simple/" ./scripts/scenarios/generate.py <path to scenarios>
|
||||||
|
|
||||||
If an editable version of packse is installed, this script will use its bundled scenarios by default.
|
If an editable version of packse is installed, this script will use its bundled scenarios by default.
|
||||||
|
|
||||||
Use
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
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"
|
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
|
# Render the template
|
||||||
logging.info(f"Rendering template {template.name}")
|
logging.info(f"Rendering template {template.name}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue