diff options
| author | Louis <louis@dnge.de> | 2026-11-06 16:50:12 +0100 |
|---|---|---|
| committer | Louis <louis@dnge.de> | 2026-11-06 16:50:12 +0100 |
| commit | c440e6388381eeb52e1427e179e5ebecf8958316 (patch) | |
| tree | 29fc63b433ea0879c8c93f6c1dc1a548f9a988c7 /README.md | |
| parent | 651afa5e560808f1bb87d292a584d2f097851db3 (diff) | |
| download | deckungsanteil-c440e6388381eeb52e1427e179e5ebecf8958316.tar.gz | |
Use uv in the docs and declare script dependencies inline
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 |
