#!/usr/bin/make -f # export DH_VERBOSE = 1 export APP_NAME=platform-integ-apps export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') export MAJOR = $(shell echo $(DEB_VERSION) | cut -f 1 -d '-') export MINOR_PATCH = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.') export PBR_VERSION=$(MAJOR).$(MINOR_PATCH) export PYBUILD_NAME=k8sapp-platform export SKIP_PIP_INSTALL=1 export ROOT=debian/tmp %: dh $@ --with=python3 --buildsystem=pybuild override_dh_auto_install: python3 setup.py install --install-layout=deb --root $(ROOT) python3 setup.py bdist_wheel \ --universal \ -d $(ROOT)/plugins/$(APP_NAME) override_dh_python3: dh_python3 --shebang=/usr/bin/python3 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) override_dh_auto_test: # (tbogue) FIXME PYTHONDIR=$(CURDIR) stestr run || true endif