Handle closed-time typos from SWP API and update local dev setup (#32)

* updated dependencies, fixed "geschlossen" parsing

* httpretty.core warning patch

---------

Co-authored-by: Hadrian Burkhardt <hadrian.burkhardt@gmx.de>
This commit is contained in:
2026-02-18 23:00:09 +01:00
committed by GitHub
parent a31cfd4f4e
commit 68e092b06e
14 changed files with 1178 additions and 1 deletions
+22
View File
@@ -11,6 +11,28 @@ Among others, OpenMensa powers the popular [Mensa Uni Potsdam][steppschuh] Andro
The current application is built with [Python][py], [PyOpenMensa][pom], and [Flask][flask]. Learn more about the technical details at [Read the Docs][rtd].
## Local development (modern)
Recommended: Python 3.12+.
**Option A (uv, recommended)** ::
$ uv venv
$ uv pip install -e ".[dev]"
$ uv run flask --app stw_potsdam.views run
**Option B (venv + pip)** ::
$ python -m venv .venv
$ . .venv/bin/activate
$ pip install -r requirements-dev.txt
$ FLASK_APP=stw_potsdam.views flask run
**Legacy (Pipenv)** ::
$ pipenv install --dev
$ make run
**Contributions** are always welcome, in particular if the response format of the canteens change. Feel free to file a PR with improvements.
**Deployment** If in need of a deployment, file a PR to this fork: [kaifabian/om-parser-potsdam-v2][kai]. Kai is currently in charge of running an instance of the parser and the registration on the OpenMensa platform.