This consists of 3 parts:
-
logger Log knx messages to a database
-
projects Extract information from knx projects (ETS, GPA)
-
x1_Nodes Custom made nodes for the gira X1
-
Install python3 and poetry
-
Clone this repository
$ git clone git://github.com/fgoettel/knx/
-
Install the virtual environment (individual for each subfolder)
$ poetry install
TODO: document setup
We're using two tools to administer the python projects:
A few hints to restart. Main point for definitions is pyproject.toml
.
- Update dependencies:
poetry update
. Do not forget to update the used versions in the github actions. - Enter poetry shell:
poetry shell
Run tests with various python versions. As defined in noxfile.py
.
- Enter nox either inside a poetry shell (
nox
) or viapython -m nox
- List all sessions:
nox -l
- Run single session (here: isort):
nox -s isort
- Reuse existing venv:
nox -r
(Don't do this after apoetry update
)
- reuse code
- ...