From f70f2c995c82f448a183244fb618f7615100881f Mon Sep 17 00:00:00 2001 From: Hugo Brito Date: Thu, 10 Nov 2022 19:54:30 -0300 Subject: [PATCH] debian: Add cgcs-patch wheel to the build This wheel is required by stx-keystone-api-proxy Test Plan: PASS: Build cgts-patch package. Verify that the wheel is generated, and it's included in the wheels tarball. PASS: Build stx-keystone-api-proxy image that requires cgts-patch wheel. Verify that the image is created and the container is working as expected. Story: 2009831 Task: 46787 Signed-off-by: Hugo Brito Change-Id: I5d097ae68a943895844cd667b9523c832dc002b3 --- debian_stable_wheels.inc | 1 + sw-patch/debian/deb_folder/control | 12 +++++++++++- sw-patch/debian/deb_folder/rules | 3 +++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 debian_stable_wheels.inc diff --git a/debian_stable_wheels.inc b/debian_stable_wheels.inc new file mode 100644 index 00000000..36e6f927 --- /dev/null +++ b/debian_stable_wheels.inc @@ -0,0 +1 @@ +cgcs-patch-wheel diff --git a/sw-patch/debian/deb_folder/control b/sw-patch/debian/deb_folder/control index 71adfdc8..4f99576a 100644 --- a/sw-patch/debian/deb_folder/control +++ b/sw-patch/debian/deb_folder/control @@ -5,7 +5,8 @@ Maintainer: StarlingX Developers Build-Depends: debhelper-compat (= 13), dh-python, python3-all, - python3-setuptools + python3-setuptools, + python3-wheel Build-Depends-Indep: python3-keystonemiddleware, python3-lxml, @@ -57,3 +58,12 @@ Depends: tsconfig Description: StarlingX platfom patching (python3) StarlingX platform patching system python libraries + +Package: cgcs-patch-wheel +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Description: StarlingX - platform patching wheel + Starlingx Config Info + . + This is the support package for the PEP 427 wheel version of the package, + required for using pip inside a virtual environment. \ No newline at end of file diff --git a/sw-patch/debian/deb_folder/rules b/sw-patch/debian/deb_folder/rules index f1b5eb8a..0ff7bd1b 100755 --- a/sw-patch/debian/deb_folder/rules +++ b/sw-patch/debian/deb_folder/rules @@ -19,6 +19,9 @@ override_dh_auto_clean: override_dh_install: python3 setup.py install -f --install-layout=deb --root=${DEBIAN_DESTDIR} + python3 setup.py bdist_wheel \ + --universal \ + -d $(CURDIR)/debian/cgcs-patch-wheel/usr/share/python-wheels install -m 755 -d ${DEBIAN_DESTDIR}/usr/sbin install -m 755 -d ${DEBIAN_DESTDIR}/usr/share/bash-completion/completions