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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user