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 <noreply@anthropic.com>
This commit is contained in:
Edward Betts 2026-02-27 20:05:14 +00:00
parent c37b463c0e
commit 53aab8c4bc
3 changed files with 8 additions and 4 deletions

View file

@ -81,10 +81,10 @@ cd web
flask --app app.py run 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 ## Type checking

View file

@ -88,8 +88,8 @@ routes as GeoJSON.
#### Running the dev server #### Running the dev server
``` ```
cd web pip install -e ".[web]"
flask --app app.py run flask --app web/app.py run
``` ```
Open `http://127.0.0.1:5000`. Open `http://127.0.0.1:5000`.

View file

@ -15,11 +15,15 @@ dependencies = [
] ]
[project.optional-dependencies] [project.optional-dependencies]
web = [
"flask>=3.0",
]
dev = [ dev = [
"mypy", "mypy",
"pytest", "pytest",
"responses", "responses",
"types-requests", "types-requests",
"flask>=3.0",
] ]
[project.scripts] [project.scripts]