Create Debian packages for openstack-helm, openstack-helm-infra, python-k8sapp-openstack and stx-openstack-helm packages. Story: 2009101 Task: 43801 Signed-off-by: Tracey Bogue <tracey.bogue@windriver.com> Change-Id: I24dcedf8e9181ab38c27c2e117b1487f0feb614c
27 lines
607 B
Makefile
Executable File
27 lines
607 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
# export DH_VERBOSE = 1
|
|
|
|
export APP_NAME=k8sapp-openstack
|
|
export PBR_VERSION=1.0.0
|
|
export PYBUILD_NAME=k8sapp-openstack
|
|
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
|