Headless rendering library using QGIS
-
Install dependecies:
QGIS>= 3.44libqgis-devqt5-image-formats-plugins(usually installed via dependencies)build-essentialcmake
-
Create virtualenv, activate it and install the package there:
$ python3 -m venv env $ source env/bin/activate $ pip install --editable ./[dev,tests] -
Run the tests:
$ python -m pytest qgis_headless/test/
Ubuntu Jammy (for example):
$ docker build -t qgis_headless:resolute -f Dockerfile.resolute .
$ docker run --rm qgis_headless:resolute ./pytest-runnerThis project uses pre-commit to enforce code quality standards.
First, make sure pre-commit is installed:
$ pip install pre-commitThen, enable it in the project by running:
$ pre-commit install