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 <hugo.brito@windriver.com>
Change-Id: I5d097ae68a943895844cd667b9523c832dc002b3
This commit is contained in:
Hugo Brito 2022-11-10 19:54:30 -03:00
parent 8374ed3fcd
commit f70f2c995c
3 changed files with 15 additions and 1 deletions

1
debian_stable_wheels.inc Normal file
View File

@ -0,0 +1 @@
cgcs-patch-wheel

View File

@ -5,7 +5,8 @@ Maintainer: StarlingX Developers <StarlingX-discuss@lists.StarlingX.io>
Build-Depends: debhelper-compat (= 13), Build-Depends: debhelper-compat (= 13),
dh-python, dh-python,
python3-all, python3-all,
python3-setuptools python3-setuptools,
python3-wheel
Build-Depends-Indep: Build-Depends-Indep:
python3-keystonemiddleware, python3-keystonemiddleware,
python3-lxml, python3-lxml,
@ -57,3 +58,12 @@ Depends:
tsconfig tsconfig
Description: StarlingX platfom patching (python3) Description: StarlingX platfom patching (python3)
StarlingX platform patching system python libraries 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.

View File

@ -19,6 +19,9 @@ override_dh_auto_clean:
override_dh_install: override_dh_install:
python3 setup.py install -f --install-layout=deb --root=${DEBIAN_DESTDIR} 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/sbin
install -m 755 -d ${DEBIAN_DESTDIR}/usr/share/bash-completion/completions install -m 755 -d ${DEBIAN_DESTDIR}/usr/share/bash-completion/completions