Tracey Bogue ccdb17d296 Add Debian packaging for vault app
Create Debian packages for vault-helm, python-k8sapp-vault
and stx-vault-helm.

Signed-off-by: Tracey Bogue <tracey.bogue@windriver.com>
Change-Id: Ifb0c1de001e75e01e501c0078d85e562dc802d84
2021-12-03 09:12:06 -06:00

27 lines
593 B
Makefile
Executable File

#!/usr/bin/make -f
# export DH_VERBOSE = 1
export APP_NAME=vault
export PBR_VERSION=1.0.0
export PYBUILD_NAME=k8sapp-vault
export ROOT=debian/tmp
export SKIP_PIP_INSTALL=1
%:
dh $@ --with=python3 --buildsystem=pybuild
override_dh_auto_build:
python3 setup.py build
override_dh_auto_install:
python3 setup.py install --skip-build --install-layout=deb --root $(ROOT)
python3 setup.py bdist_wheel \
--universal \
-d $(ROOT)/plugins/$(APP_NAME)
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
# (tbogue) FIXME
PYTHONDIR=$(CURDIR) stestr run || true
endif