Add Debian packaging infra for python-pankoclient

Add Debian packaging infrastruture to build
python-pankoclient.

Story: 2009101
Task: 43795

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I791bb0b728d2641b195320e61ecc36f510d2deea
This commit is contained in:
Charles Short 2021-10-27 12:39:34 -04:00
parent 4f7a595af0
commit ff835e2707
3 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,56 @@
From baa05e47ddc62bed291680d9ee37d37bb8bc594c Mon Sep 17 00:00:00 2001
From: Charles Short <charles.short@windriver.com>
Date: Wed, 27 Oct 2021 14:29:42 +0000
Subject: [PATCH] Add wheel package
Add python3-pankclient-wheel.
Signed-off-by: Charles Short <charles.short@windriver.com>
---
debian/control | 19 +++++++++++++++++++
debian/rules | 2 +-
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 007fc55..24470c7 100644
--- a/debian/control
+++ b/debian/control
@@ -83,3 +83,22 @@ Description: Client library for OpenStack panko server - Python 3.x
command-line tool (openstack event).
.
This package provides the Python 3.x module.
+
+Package: python3-pankoclient-wheel
+Architecture: all
+Depends:
+ python3-wheel,
+ ${misc:Depends},
+ ${python3:Depends},
+Description: Client library for OpenStack panko server - Python 3.x
+ The Panko project is an event storage service that provides the ability to
+ store and querying event data generated by Ceilometer with potentially other
+ sources.
+ .
+ Panko is a component of the Telemetry project.
+ .
+ This is a client library for Panko built on the Panko API. It provides a
+ Python API (the pankoclient module) and a OSC (the openstackclient CLI)
+ command-line tool (openstack event).
+ .
+ This package contains the Python wheel.
diff --git a/debian/rules b/debian/rules
index 612ce0e..d770e0f 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-pankoclient
debver: 1.1.0-2
dl_path:
name: python-pankoclient-debian-1.1.0-2.tar.gz
url: https://salsa.debian.org/openstack-team/clients/python-pankoclient/-/archive/debian/1.1.0-2/python-pankoclient-debian-1.1.0-2.tar.gz
md5sum: 4b623a6b3ad649b29e05fc83f6f03762
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true