Mayank Patel b718b0e230 App Node Interface Metrics Exporter:directory structure creation
This commit creates the directory structure of
app-node-interface-metrics-exporter repo.

Test Plan:
PASS:Build process with creation of debian package.
PASS:Extract the content of stx-node-interface-metrics-exporter-helm_
     1.0-1.stx.1_amd64.deb and check.

Story: 2010918
Task: 48792

Change-Id: I05411252457f91ceeaf3553c82f00ad0458c1fa1
Signed-off-by: Mayank Patel <mayank.patel@windriver.com>
2023-09-27 07:47:52 -04:00

27 lines
798 B
Makefile
Executable File

#!/usr/bin/make -f
# export DH_VERBOSE = 1
export APP_NAME = node-interface-metrics-exporter
export PYBUILD_NAME = k8sapp-node-interface-metrics-exporter
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:
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