python-k8sapp-nginx-ingress-controller: add new recipe

* python-k8sapp-nginx-ingress-controller is required by
  stx-nginx-ingress-controller-helm.

Story: 2008952
Task: 42576

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I5b5775fdd1762d37cc2a1e730e750dee412b47d0
This commit is contained in:
Jackie Huang 2021-06-16 15:06:05 +08:00
parent 3c54a9d624
commit 92720523da

View File

@ -0,0 +1,55 @@
SUMMARY = "StarlingX sysinv extensions: Nginx ingress controller"
DESCRIPTION = "StarlingX sysinv extensions: Nginx ingress controller"
SECTION = "devel/python"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=41687b590435621fc0676ac02c51154f"
PV = "1.0"
PR = "1"
PRAUTO = "tis"
DEPENDS += "\
${PYTHON_PN}-pbr-native \
${PYTHON_PN}-pip-native \
${PYTHON_PN}-wheel-native \
"
inherit setuptools
inherit stx-metadata
STX_REPO = "nginx-ingress-controller-armada-app"
STX_SUBPATH = "${BPN}/k8sapp_nginx_ingress_controller"
S = "${WORKDIR}/k8sapp_nginx_ingress_controller"
PACKAGES += "${PN}-wheels"
PROVIDES += "${PN}-wheels"
export PBR_VERSION = "${PV}"
export SKIP_PIP_INSTALL = "1"
do_unpack_append() {
bb.build.exec_func('do_restore_files', d)
}
do_restore_files() {
cp -rf ${STX_METADATA_PATH} ${WORKDIR}
}
do_configure_preppend() {
rm -rf k8sapp_nginx_ingress_controller.egg-info
}
do_compile_append() {
${PYTHON_PN} setup.py bdist_wheel
}
do_install_append() {
install -d ${D}/plugins
install -m 0644 ${S}/dist/*.whl ${D}/plugins
}
FILES_${PN}-wheels += "/plugins"
SYSROOT_DIRS += "/plugins"