From c440e6388381eeb52e1427e179e5ebecf8958316 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 6 Nov 2026 16:50:12 +0100 Subject: Use uv in the docs and declare script dependencies inline Co-Authored-By: Claude Opus 5.5 --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index c942e7f..275e3a2 100644 --- a/README.md +++ b/README.md @@ -16,19 +16,21 @@ The app is static HTML/JS; all calculations run in the browser. ## Quick start -The weather data is not part of this repository. Build it once from the original sources -(needs Python ≥ 3.10 and numpy; downloads about 700 MB into `.cache/`, writes about -150 MB to `web/data/`, takes a few minutes): +Requires [uv](https://docs.astral.sh/uv/). The weather data is not part of this +repository. Build it once from the original sources (downloads about 700 MB into +`.cache/`, writes about 150 MB to `web/data/`, takes a few minutes): ```sh -python3 -m venv .venv && .venv/bin/pip install numpy -.venv/bin/python scripts/prep.py +uv run scripts/prep.py ``` +uv picks a suitable Python and installs the script's dependencies (numpy) from the +metadata at the top of `scripts/prep.py`. + Then serve the `web/` directory and open http://127.0.0.1:8765: ```sh -python3 -m http.server 8765 -d web +uv run python -m http.server 8765 -d web ``` Re-running `scripts/prep.py` reuses the downloads in `.cache/`; delete that directory to -- cgit v1.3