From 18ac7da113d98ac59af6e6577b3fbdffb8ade8a1 Mon Sep 17 00:00:00 2001 From: Charles Short Date: Wed, 27 Oct 2021 13:41:13 -0400 Subject: [PATCH] Add debian packaging infra for python-cinderclient Add Debian packging infra for python-cinderclient. Story: 2009101 Task: 43798 Signed-off-by: Charles Short Change-Id: I8e18c423b45ddda02b0b8dba714b5b34da54f3f7 --- .../deb_patches/0001-Add-package-wheel.patch | 29 +++++++++++++++++++ .../debian/deb_patches/series | 1 + .../python-cinderclient/debian/meta_data.yaml | 10 +++++++ 3 files changed, 40 insertions(+) create mode 100644 openstack/python-cinderclient/debian/deb_patches/0001-Add-package-wheel.patch create mode 100644 openstack/python-cinderclient/debian/deb_patches/series create mode 100644 openstack/python-cinderclient/debian/meta_data.yaml diff --git a/openstack/python-cinderclient/debian/deb_patches/0001-Add-package-wheel.patch b/openstack/python-cinderclient/debian/deb_patches/0001-Add-package-wheel.patch new file mode 100644 index 00000000..6019b582 --- /dev/null +++ b/openstack/python-cinderclient/debian/deb_patches/0001-Add-package-wheel.patch @@ -0,0 +1,29 @@ +From 5c420535f8b04efda7a9fac27eeaafde961db6aa Mon Sep 17 00:00:00 2001 +From: Charles Short +Date: Wed, 27 Oct 2021 17:28:06 +0000 +Subject: [PATCH] Add package wheel + +Add python3-cinderclient-wheel. + +Signed-off-by: Charles Short +--- + 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 + diff --git a/openstack/python-cinderclient/debian/deb_patches/series b/openstack/python-cinderclient/debian/deb_patches/series new file mode 100644 index 00000000..e258666d --- /dev/null +++ b/openstack/python-cinderclient/debian/deb_patches/series @@ -0,0 +1 @@ +0001-Add-package-wheel.patch diff --git a/openstack/python-cinderclient/debian/meta_data.yaml b/openstack/python-cinderclient/debian/meta_data.yaml new file mode 100644 index 00000000..6431f2ee --- /dev/null +++ b/openstack/python-cinderclient/debian/meta_data.yaml @@ -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