
This is a re-submission of [1], which was reverted due to issues with centos builds. This change can merge now that centos is no longer supported. Fixed versioning and adjusted some build files to bring them as close to a standard as possible. - Remove centos files - Fix mismatch in plugin name, set to python3-k8sapp-APP - Standardize plugin debian files (rules, *.install) - plugin wheels saved to /plugin instead of /plugin/<app> Note: - Version tracking changes made in [1] were not added here as they are addressed in a different commit [1] https://review.opendev.org/c/starlingx/oidc-auth-armada-app/+/868293 Test Plan: PASS build-pkgs PASS wheel version updated PASS app tarball contains wheel file Story: 2010542 Task: 47516 Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com> Change-Id: I18b99c9e68270b5dd5607ddaffb229904ac61c65
34 lines
787 B
Makefile
Executable File
34 lines
787 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
# export DH_VERBOSE = 1
|
|
|
|
export APP_NAME = oidc-auth-apps
|
|
export PYBUILD_NAME = k8sapp_oidc
|
|
|
|
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 ROOT = $(CURDIR)/debian/tmp
|
|
export SKIP_PIP_INSTALL = 1
|
|
|
|
%:
|
|
dh $@ --with=python3 --buildsystem=pybuild
|
|
|
|
override_dh_auto_install:
|
|
env | sort
|
|
|
|
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
|
|
|
|
override_dh_auto_test:
|
|
PYTHONDIR=$(CURDIR) stestr run
|