[arch-commits] Commit in python-oslo-utils/repos/community-any (4 files)

Felix Yan felixonmars at archlinux.org
Tue Apr 7 22:01:19 UTC 2020


    Date: Tuesday, April 7, 2020 @ 22:01:18
  Author: felixonmars
Revision: 612502

archrelease: copy trunk to community-any

Added:
  python-oslo-utils/repos/community-any/PKGBUILD
    (from rev 612501, python-oslo-utils/trunk/PKGBUILD)
  python-oslo-utils/repos/community-any/oslo-utils-py38.patch
    (from rev 612501, python-oslo-utils/trunk/oslo-utils-py38.patch)
Deleted:
  python-oslo-utils/repos/community-any/PKGBUILD
  python-oslo-utils/repos/community-any/oslo-utils-py38.patch

-----------------------+
 PKGBUILD              |   85 ++++++++++++++++-------------------
 oslo-utils-py38.patch |  116 ++++++++++++++++++++++++------------------------
 2 files changed, 99 insertions(+), 102 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-07 22:00:57 UTC (rev 612501)
+++ PKGBUILD	2020-04-07 22:01:18 UTC (rev 612502)
@@ -1,44 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-
-pkgname=python-oslo-utils
-pkgver=4.1.0
-pkgrel=1
-pkgdesc="Oslo Utility library"
-arch=('any')
-url="https://pypi.python.org/pypi/oslo.utils/$pkgver"
-license=('Apache')
-depends=('python-six' 'python-pbr' 'python-iso8601' 'python-oslo-i18n' 'python-pytz'
-         'python-netaddr' 'python-netifaces' 'python-debtcollector')
-makedepends=('python-setuptools')
-checkdepends=('python-oslotest' 'python-ddt' 'python-eventlet')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/oslo.utils/archive/$pkgver.tar.gz"
-        oslo-utils-py38.patch
-        oslo-utils-oslotest4.patch::https://github.com/openstack/oslo.utils/commit/a830a6b8a18172ec22b343ffd9734355260e48e5.patch)
-sha512sums=('6fa8fdf690fc42d6183912f822d80faed04e2877cc32ad730c75fd7e2fcc0b11476d5fb9cd5fac8411aa2afb78c558eaa57c721e1b940bfecae9759b4f89a2d9'
-            'edc9861dfc02b82d0312774f2484bb5853a9e5b2e7de9ee19efbd7e1220be56e52d99abb15f71dba4d764832835371200e8d7cac2d40c0546d5cfc8daf68554a'
-            'adb6ec0951bdb6043c3369b2886506dc1ed6216062a537bbb456324467b7a6da069b61dcf6146944f454ff56115cd125c3bd6aa7ecd13f4aaab1991d7c5b8c8d')
-
-export PBR_VERSION=$pkgver
-
-prepare() {
-  patch -d oslo.utils-$pkgver -p1 -i ../oslo-utils-py38.patch
-  patch -d oslo.utils-$pkgver -p1 -i ../oslo-utils-oslotest4.patch
-}
-
-build() {
-  cd oslo.utils-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd oslo.utils-$pkgver
-  stestr run
-}
-
-package() {
-  cd oslo.utils-$pkgver
-  python setup.py install --root="$pkgdir/" --optimize=1
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-oslo-utils/repos/community-any/PKGBUILD (from rev 612501, python-oslo-utils/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-07 22:01:18 UTC (rev 612502)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgname=python-oslo-utils
+pkgver=4.1.1
+pkgrel=1
+pkgdesc="Oslo Utility library"
+arch=('any')
+url="https://pypi.python.org/pypi/oslo.utils/$pkgver"
+license=('Apache')
+depends=('python-six' 'python-pbr' 'python-iso8601' 'python-oslo-i18n' 'python-pytz'
+         'python-netaddr' 'python-netifaces' 'python-debtcollector')
+makedepends=('python-setuptools')
+checkdepends=('python-oslotest' 'python-ddt' 'python-eventlet')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/oslo.utils/archive/$pkgver.tar.gz"
+        oslo-utils-py38.patch)
+sha512sums=('f9aaaac48fe72c167b2297a0ee1a6979ff18c48d0c65aa44f4ea85a41a611f492e74ad043fa0b5e987761903760364ed5e25dbd36ee826244ce0ebe8bf0db607'
+            'edc9861dfc02b82d0312774f2484bb5853a9e5b2e7de9ee19efbd7e1220be56e52d99abb15f71dba4d764832835371200e8d7cac2d40c0546d5cfc8daf68554a')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+  patch -d oslo.utils-$pkgver -p1 -i ../oslo-utils-py38.patch
+}
+
+build() {
+  cd oslo.utils-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd oslo.utils-$pkgver
+  stestr run
+}
+
+package() {
+  cd oslo.utils-$pkgver
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: oslo-utils-py38.patch
===================================================================
--- oslo-utils-py38.patch	2020-04-07 22:00:57 UTC (rev 612501)
+++ oslo-utils-py38.patch	2020-04-07 22:01:18 UTC (rev 612502)
@@ -1,58 +0,0 @@
-Description: non-strict callback comparison is not possible in py3.8
-Author: Dimitri John Ledkov <xnox at ubuntu.com>
-Bug-Python: https://bugs.python.org/issue1617161
-Bug-LP: https://bugs.launchpad.net/ubuntu/+source/python-oslo.utils/+bug/1841072
-
-Index: python-oslo.utils-3.41.1/oslo_utils/reflection.py
-===================================================================
---- python-oslo.utils-3.41.1.orig/oslo_utils/reflection.py
-+++ python-oslo.utils-3.41.1/oslo_utils/reflection.py
-@@ -22,6 +22,8 @@ Reflection module.
- 
- import inspect
- import types
-+import platform
-+import warnings
- 
- import six
- 
-@@ -169,7 +171,10 @@ def is_same_callback(callback1, callback
-         # This happens when plain methods are given (or static/non-bound
-         # methods).
-         return True
-+    if not strict and platform.python_version() > '3.8':
-+        warnings.warn("non strict comparison impossible in py3.8+", DeprecationWarning)
-     if callback1 == callback2:
-+        ## raise deprecated warning
-         if not strict:
-             return True
-         # Two bound methods are equal if functions themselves are equal and
-Index: python-oslo.utils-3.41.1/oslo_utils/tests/test_reflection.py
-===================================================================
---- python-oslo.utils-3.41.1.orig/oslo_utils/tests/test_reflection.py
-+++ python-oslo.utils-3.41.1/oslo_utils/tests/test_reflection.py
-@@ -17,6 +17,7 @@
- from oslotest import base as test_base
- import six
- import testtools
-+import warnings
- 
- from oslo_utils import reflection
- 
-@@ -153,7 +154,15 @@ class CallbackEqualityTest(test_base.Bas
-         c = A()
- 
-         self.assertFalse(reflection.is_same_callback(b.b, c.b))
--        self.assertTrue(reflection.is_same_callback(b.b, c.b, strict=False))
-+
-+        # Non-strict reflection comparison is not possible in py3.8+
-+        with warnings.catch_warnings(record=True) as capture:
-+            warnings.simplefilter("always")
-+            res = reflection.is_same_callback(b.b, c.b, strict=False)
-+        if len(capture):
-+            self.assertFalse(res)
-+        else:
-+            self.assertTrue(res)
- 
- 
- class BoundMethodTest(test_base.BaseTestCase):

Copied: python-oslo-utils/repos/community-any/oslo-utils-py38.patch (from rev 612501, python-oslo-utils/trunk/oslo-utils-py38.patch)
===================================================================
--- oslo-utils-py38.patch	                        (rev 0)
+++ oslo-utils-py38.patch	2020-04-07 22:01:18 UTC (rev 612502)
@@ -0,0 +1,58 @@
+Description: non-strict callback comparison is not possible in py3.8
+Author: Dimitri John Ledkov <xnox at ubuntu.com>
+Bug-Python: https://bugs.python.org/issue1617161
+Bug-LP: https://bugs.launchpad.net/ubuntu/+source/python-oslo.utils/+bug/1841072
+
+Index: python-oslo.utils-3.41.1/oslo_utils/reflection.py
+===================================================================
+--- python-oslo.utils-3.41.1.orig/oslo_utils/reflection.py
++++ python-oslo.utils-3.41.1/oslo_utils/reflection.py
+@@ -22,6 +22,8 @@ Reflection module.
+ 
+ import inspect
+ import types
++import platform
++import warnings
+ 
+ import six
+ 
+@@ -169,7 +171,10 @@ def is_same_callback(callback1, callback
+         # This happens when plain methods are given (or static/non-bound
+         # methods).
+         return True
++    if not strict and platform.python_version() > '3.8':
++        warnings.warn("non strict comparison impossible in py3.8+", DeprecationWarning)
+     if callback1 == callback2:
++        ## raise deprecated warning
+         if not strict:
+             return True
+         # Two bound methods are equal if functions themselves are equal and
+Index: python-oslo.utils-3.41.1/oslo_utils/tests/test_reflection.py
+===================================================================
+--- python-oslo.utils-3.41.1.orig/oslo_utils/tests/test_reflection.py
++++ python-oslo.utils-3.41.1/oslo_utils/tests/test_reflection.py
+@@ -17,6 +17,7 @@
+ from oslotest import base as test_base
+ import six
+ import testtools
++import warnings
+ 
+ from oslo_utils import reflection
+ 
+@@ -153,7 +154,15 @@ class CallbackEqualityTest(test_base.Bas
+         c = A()
+ 
+         self.assertFalse(reflection.is_same_callback(b.b, c.b))
+-        self.assertTrue(reflection.is_same_callback(b.b, c.b, strict=False))
++
++        # Non-strict reflection comparison is not possible in py3.8+
++        with warnings.catch_warnings(record=True) as capture:
++            warnings.simplefilter("always")
++            res = reflection.is_same_callback(b.b, c.b, strict=False)
++        if len(capture):
++            self.assertFalse(res)
++        else:
++            self.assertTrue(res)
+ 
+ 
+ class BoundMethodTest(test_base.BaseTestCase):



More information about the arch-commits mailing list