Develop on Ubuntu¶
Tested on:
Ubuntu 20.04
Ubuntu 22.04
Install Python and Git¶
Install system requirements:
sudo apt install git python3-pip python3-virtualenv python3-venv virtualenv
Clone the repository where you want:
git clone https://github.com/Guts/qgis-deployment-cli.git
# or using ssh
git clone git@github.com:Guts/qgis-deployment-cli.git
Create and enter virtual environment (change the path at your convenience):
python3 -m venv .venv
source .venv/bin/activate
Install project requirements¶
python -m pip install -U pip setuptools wheel
python -m pip install -U -r requirements/development.txt
Install git hooks¶
pre-commit install
Install project¶
python -m pip install -e .
Try it with:
qgis-deployment-toolbelt --help
Happy coding!