Date: Sunday, April 9, 2023 @ 18:07:57
  Author: felixonmars
Revision: 1443366

archrelease: copy trunk to community-staging-any

Added:
  python-openstackclient/repos/community-staging-any/
  python-openstackclient/repos/community-staging-any/PKGBUILD
    (from rev 1443365, python-openstackclient/trunk/PKGBUILD)
  
python-openstackclient/repos/community-staging-any/entry-point-compatibility.patch
    (from rev 1443365, 
python-openstackclient/trunk/entry-point-compatibility.patch)

---------------------------------+
 PKGBUILD                        |   33 +++++++++++++++++++++++++++++++++
 entry-point-compatibility.patch |   30 ++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

Copied: python-openstackclient/repos/community-staging-any/PKGBUILD (from rev 
1443365, python-openstackclient/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-09 18:07:57 UTC (rev 1443366)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgname=python-openstackclient
+pkgver=6.2.0
+_commit=05d34ffce9e710021b0d125add38f2fd73c7852d
+pkgrel=2
+pkgdesc="OpenStack Command-line Client"
+arch=('any')
+url="https://docs.openstack.org/python-openstackclient/latest/";
+license=('Apache')
+depends=('python-six' 'python-pbr' 'python-babel' 'python-cliff' 
'python-keystoneclient'
+         'python-keystoneauth1' 'python-osc-lib' 'python-oslo-utils' 
'python-oslo-i18n'
+         'python-openstacksdk' 'python-glanceclient' 'python-novaclient' 
'python-cinderclient')
+makedepends=('git')
+checkdepends=('python-ddt' 'python-oslotest' 'python-requests-mock')
+source=("git+https://github.com/openstack/python-openstackclient.git#commit=$_commit";)
+sha512sums=('SKIP')
+
+build() {
+  cd python-openstackclient
+  python setup.py build
+}
+
+check() {
+  cd python-openstackclient
+  stestr run
+}
+
+package() {
+  cd python-openstackclient
+  python setup.py install --root="$pkgdir" --optimize=1
+}

Copied: 
python-openstackclient/repos/community-staging-any/entry-point-compatibility.patch
 (from rev 1443365, 
python-openstackclient/trunk/entry-point-compatibility.patch)
===================================================================
--- community-staging-any/entry-point-compatibility.patch                       
        (rev 0)
+++ community-staging-any/entry-point-compatibility.patch       2023-04-09 
18:07:57 UTC (rev 1443366)
@@ -0,0 +1,30 @@
+commit 9d0d64df8b5569f02892b1fd8690043bea7bfde7
+Author: Felix Yan <[email protected]>
+Date:   Tue Jul 14 01:02:00 2020 +0800
+
+    Fix compatibility issue in 5.3
+    
+    The offending entry point object looks like:
+    EntryPoint(name='compute', value='openstackclient.compute.client',
+    group='openstack.cli.base')
+    
+    Fixes https://storyboard.openstack.org/#!/story/2007917
+    
+    Change-Id: I0f3cc62e23efdc14203ce6645581d5ba5dbf7fa0
+
+diff --git a/openstackclient/common/clientmanager.py 
b/openstackclient/common/clientmanager.py
+index 66dc880e..36c3ce26 100644
+--- a/openstackclient/common/clientmanager.py
++++ b/openstackclient/common/clientmanager.py
+@@ -154,7 +154,10 @@ def get_plugin_modules(group):
+         try:
+             module_name = ep.entry_point.module_name
+         except AttributeError:
+-            module_name = ep.entry_point.module
++            try:
++                module_name = ep.entry_point.module
++            except AttributeError:
++                module_name = ep.entry_point.value
+ 
+         try:
+             module = importlib.import_module(module_name)

Reply via email to