#!/usr/bin/make -f PYTHON3S:=$(shell py3versions -vr) export PYBUILD_INSTALL_ARGS=--init-system=systemd,sysvinit_deb %: dh $@ --with python3 --buildsystem meson override_dh_auto_configure: dh_auto_configure -- -Dlibexecdir=lib -Ddisable_sshd_keygen=true override_dh_python3: dh_python3 -O--buildsystem=meson \ --depends=configobj \ --depends=jinja2 \ --depends=pyyaml \ --depends=oauthlib \ --depends=requests \ --depends=jsonpatch \ --depends=jsonschema override_dh_auto_test: set -e && set -x && for pyvers in $(PYTHON3S); do \ PYMAJOR=`echo $$pyvers | cut -d'.' -f1` ; \ echo "===> Testing with python$$pyvers (python$$PYMAJOR)" ; \ PYTHON=python$$pyvers PYTHONPATH=. python$$pyvers -m pytest -v tests/unittests --ignore-glob $(CURDIR)/tests/unittests/test_datasource/test_opennebula.py ; \ done execute_before_dh_auto_install: for f in sysvinit/debian/*; do \ echo $$(basename $$f); \ install "$$f" "debian/$$(basename $$f).init"; \ done override_dh_installinit: dh_installinit --no-start --no-stop-on-upgrade --name cloud-init-main dh_installinit --no-start --no-stop-on-upgrade --name cloud-init-local dh_installinit --no-start --no-stop-on-upgrade --name cloud-config dh_installinit --no-start --no-stop-on-upgrade --name cloud-final override_dh_installsystemd: dh_installsystemd --no-restart-on-upgrade --no-start override_dh_auto_clean: rm -rf .pybuild .pytest_cache build obj-* debian/*.init