Add Debian package infra for python-ironicclient

Add debian packaging infrastructure to build
python-ironicclient.

Story: 2009101
Task: 43789

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: If0a01e371cf9ca9fbcc5170deabac30db0125818
This commit is contained in:
Charles Short 2021-10-27 11:09:21 -04:00
parent e7a5c23348
commit 0b413bf7bc
3 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,60 @@
From 165d7922b14a57bf5f3c3de453c1ebf21f2995ef Mon Sep 17 00:00:00 2001
From: Charles Short <charles.short@windriver.com>
Date: Wed, 27 Oct 2021 12:49:17 +0000
Subject: [PATCH] Add wheel package
Add python3-ironicclient-wheel package
Signed-off-by: Charles Short <charles.short@windriver.com>
---
debian/control | 23 +++++++++++++++++++++++
debian/rules | 2 +-
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index f837496..9dedef0 100644
--- a/debian/control
+++ b/debian/control
@@ -100,3 +100,26 @@ Description: Client for OpenStack bare metal Service - Python 3.x
interact with Ironic's API.
.
This package provides the Python 3.x support.
+
+Package: python3-ironicclient-wheel
+Architecture: all
+Depends:
+ python3-wheel,
+ ${misc:Depends},
+ ${python3:Depends},
+Description: Client for OpenStack bare metal Service - Python 3.x
+ Ironic provision bare metal machines instead of virtual machines. It is a fork
+ of the Nova Baremetal driver. It is best thought of as a bare metal hypervisor
+ API and a set of plugins which interact with the bare metal hypervisors. By
+ default, it will use PXE and IPMI in concert to provision and turn on/off
+ machines, but Ironic also supports vendor-specific plugins which may
+ implement
+ additional functionality.
+ .
+ This is a client for the OpenStack Ironic API. There's a Python API
+ (the "ironicclient" module), and a command-line script ("ironic").
+ .
+ Installing this package gets you a shell command, that you can use to
+ interact with Ironic's API.
+ .
+ This package contains the Python wheel.
diff --git a/debian/rules b/debian/rules
index e69b6fe..40f2b34 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,7 @@ override_dh_auto_build:
echo "Do nothing..."
override_dh_auto_install:
- pkgos-dh_auto_install --no-py2
+ pkgos-dh_auto_install --no-py2 --wheel
override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
--
2.30.2

View File

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

View File

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