Add debian packaging infra for python-cinderclient

Add Debian packging infra for python-cinderclient.

Story: 2009101
Task: 43798

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I8e18c423b45ddda02b0b8dba714b5b34da54f3f7
This commit is contained in:
Charles Short 2021-10-27 13:41:13 -04:00
parent e7a5c23348
commit 18ac7da113
3 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,29 @@
From 5c420535f8b04efda7a9fac27eeaafde961db6aa Mon Sep 17 00:00:00 2001
From: Charles Short <charles.short@windriver.com>
Date: Wed, 27 Oct 2021 17:28:06 +0000
Subject: [PATCH] Add package wheel
Add python3-cinderclient-wheel.
Signed-off-by: Charles Short <charles.short@windriver.com>
---
debian/rules | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/rules b/debian/rules
index 8acee49..0d8778c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,9 @@ override_dh_auto_install:
for i in $(PYTHON3S) ; do \
python3 setup.py install -f --install-layout=deb --root=$(CURDIR)/debian/tmp ; \
done
+ for i in $(PYTHON3S) ; do \
+ python3 setup.py bdist_wheel --universal -d $(CURDIR)/debian/python3-cinderclient-wheel/usr/share/python3-wheel ; \
+ done
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages pkgos-dh_auto_test --no-py2
endif
--
2.30.2

View File

@ -0,0 +1 @@
0001-Add-package-wheel.patch

View File

@ -0,0 +1,10 @@
---
debname: python-cinderclient
debver: 1:7.2.0-3
dl_name:
name: python-cinderclient-debian-7.2.0-3.tar.gz
url: https://salsa.debian.org/openstack-team/clients/python-cinderclient/-/archive/debian/7.2.0-3/python-cinderclient-debian-7.2.0-3.tar.gz
md5sum: b2fae10096bc2cf30935afe409ed9b4c
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true