diff --git a/openstack/python-glanceclient/debian/deb_patches/0001-Add-support-for-wheel.patch b/openstack/python-glanceclient/debian/deb_patches/0001-Add-support-for-wheel.patch new file mode 100644 index 00000000..59347b14 --- /dev/null +++ b/openstack/python-glanceclient/debian/deb_patches/0001-Add-support-for-wheel.patch @@ -0,0 +1,54 @@ +From 4c5368b6f9811e195dc12d1a3cecccb176cf720e Mon Sep 17 00:00:00 2001 +From: Charles Short +Date: Tue, 26 Oct 2021 23:35:45 +0000 +Subject: [PATCH] Add support for wheel + +Add support for python3 wheels. + +Signed-off-by: Charles Short +--- + debian/control | 17 +++++++++++++++++ + debian/rules | 2 +- + 2 files changed, 18 insertions(+), 1 deletion(-) + +diff --git a/debian/control b/debian/control +index 742257e..f2c1648 100644 +--- a/debian/control ++++ b/debian/control +@@ -84,3 +84,20 @@ Description: Client library for Openstack glance server - Python 3.x + Python API (the "glanceclient" module), and a command-line script ("glance"). + . + This package provides the Python 3.x module. ++ ++Package: python3-glanceclient-wheel ++Architecture: all ++Depends: ++ python3-wheel, ++ ${misc:Depends}, ++ ${python3:Depends}, ++Description: Client library for Openstack Glance server - Python 3.x ++ The Glance project provides services for discovering, registering, and ++ retrieving virtual machine images over the cloud. They may be stand-alone ++ services, or may be used to deliver images from object stores, such as ++ OpenStack's Swift service, to Nova's compute nodes. ++ . ++ This is a client for the Glance which uses the OpenStack Image API. There's a ++ Python API (the "glanceclient" module), and a command-line script ("glance"). ++ . ++ This package contains the Python wheel. +diff --git a/debian/rules b/debian/rules +index d5d2b14..459f08c 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_python3: + dh_python3 --shebang=/usr/bin/python3 +-- +2.30.2 + diff --git a/openstack/python-glanceclient/debian/deb_patches/series b/openstack/python-glanceclient/debian/deb_patches/series new file mode 100644 index 00000000..38b307b0 --- /dev/null +++ b/openstack/python-glanceclient/debian/deb_patches/series @@ -0,0 +1 @@ +0001-Add-support-for-wheel.patch diff --git a/openstack/python-glanceclient/debian/meta_data.yaml b/openstack/python-glanceclient/debian/meta_data.yaml new file mode 100644 index 00000000..4d78e150 --- /dev/null +++ b/openstack/python-glanceclient/debian/meta_data.yaml @@ -0,0 +1,10 @@ +--- +debname: python-glanceclient +debver: 1:3.2.2-2 +dl_path: + name: python-glanceclient-debian-3.2.2-2.tar.gz + url: https://salsa.debian.org/openstack-team/clients/python-glanceclient/-/archive/debian/3.2.2-2/python-glanceclient-debian-3.2.2-2.tar.gz + md5sum: bc184e7b7d10732f1562fb7cab668711 +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true