When testing the tarball build (build-helm-charts.sh script) it was found that the dependency list was not correct and therefore the generated app was missing python plugins and osh/osh-i charts. This changes fixes the deb packages dependency lists for both stx-openstack helm armada and fluxcd. Also, during the tarball tests it was noticed that the python plugins package on Debian was wrongly placing the built wheels in a sub-directory with the app name. That directory is not needed and can break the correct plugin loading, so it was removed. TEST PLAN: PASS - Build stx-openstack-helm on Debian PASS - Build stx-openstack-helm-fluxcd on Debian PASS - Build stx-openstack app tarball (armada) PASS - Upload armada app PASS - Apply armada app PASS - Build stx-openstack app tarball (fluxcd) PASS - Upload fluxcd app PASS - Apply fluxcd app Story: 2010317 Task: 46610 Signed-off-by: Thales Elero Cervi <thaleselero.cervi@windriver.com> Change-Id: Ibbb231ce4bfe9956bc564002cd8b330c92f9d6c0
27 lines
595 B
Makefile
Executable File
27 lines
595 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
|
|
|
|
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
|