From 53aab8c4bcd3d05954726a9a09258e0cd38483ab Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 27 Feb 2026 20:05:14 +0000 Subject: [PATCH] Add web optional dependency and update docs Flask is now declared under [project.optional-dependencies] as the `web` extra, so `pip install osm-geojson[web]` installs both the CLI and Flask. The `dev` extra includes Flask too so the test/dev venv gets everything. Update README and AGENTS.md accordingly. Co-Authored-By: Claude Sonnet 4.6 --- AGENTS.md | 4 ++-- README.md | 4 ++-- pyproject.toml | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 950e309..56a43bc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -81,10 +81,10 @@ cd web flask --app app.py run ``` -The web dependencies (Flask) are not in `pyproject.toml`; install separately: +Install the package with the `web` extra to include Flask: ``` -pip install flask +pip install -e ".[web]" ``` ## Type checking diff --git a/README.md b/README.md index 9ee0234..c25e469 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,8 @@ routes as GeoJSON. #### Running the dev server ``` -cd web -flask --app app.py run +pip install -e ".[web]" +flask --app web/app.py run ``` Open `http://127.0.0.1:5000`. diff --git a/pyproject.toml b/pyproject.toml index 45ed064..cb66129 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,11 +15,15 @@ dependencies = [ ] [project.optional-dependencies] +web = [ + "flask>=3.0", +] dev = [ "mypy", "pytest", "responses", "types-requests", + "flask>=3.0", ] [project.scripts]