aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLouis <louis@dnge.de>2026-11-06 16:50:12 +0100
committerLouis <louis@dnge.de>2026-11-06 16:50:12 +0100
commitc440e6388381eeb52e1427e179e5ebecf8958316 (patch)
tree29fc63b433ea0879c8c93f6c1dc1a548f9a988c7 /README.md
parent651afa5e560808f1bb87d292a584d2f097851db3 (diff)
downloaddeckungsanteil-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.md14
1 files changed, 8 insertions, 6 deletions
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