[arch-commits] Commit in python-testing.common.database/trunk (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Fri Dec 3 22:37:49 UTC 2021


    Date: Friday, December 3, 2021 @ 22:37:49
  Author: foutrelis
Revision: 1064909

Add fix for Python 3.10 support

Added:
  python-testing.common.database/trunk/python310.patch
Modified:
  python-testing.common.database/trunk/PKGBUILD

-----------------+
 PKGBUILD        |    7 +++++--
 python310.patch |   12 ++++++++++++
 2 files changed, 17 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-03 22:36:15 UTC (rev 1064908)
+++ PKGBUILD	2021-12-03 22:37:49 UTC (rev 1064909)
@@ -9,11 +9,14 @@
 license=(Apache)
 makedepends=(python-setuptools)
 depends=(python)
-source=("$pkgname-$pkgver.tar.gz"::"https://github.com/tk0miya/testing.common.database/archive/$pkgver.tar.gz")
-sha256sums=('f2d4f865e52bacf54cf853b6043cceb06a31ed020b50d3b0e63c7e59c66f00b4')
+source=("$pkgname-$pkgver.tar.gz"::"https://github.com/tk0miya/testing.common.database/archive/$pkgver.tar.gz"
+        python310.patch)
+sha256sums=('f2d4f865e52bacf54cf853b6043cceb06a31ed020b50d3b0e63c7e59c66f00b4'
+            '826867930199ad4032b668fdd8113f0390856c7c947ae25c44c232be9f4801da')
 
 prepare() {
   cd testing.common.database-$pkgver
+  patch -Np1 -i ../python310.patch
 
   # https://github.com/tk0miya/testing.common.database/issues/21
   sed -i 's|2\.0\.2|2.0.3|' setup.py

Added: python310.patch
===================================================================
--- python310.patch	                        (rev 0)
+++ python310.patch	2021-12-03 22:37:49 UTC (rev 1064909)
@@ -0,0 +1,12 @@
+diff -upr testing.common.database-2.0.3.orig/src/testing/common/database.py testing.common.database-2.0.3/src/testing/common/database.py
+--- testing.common.database-2.0.3.orig/src/testing/common/database.py	2017-10-23 17:54:04.000000000 +0300
++++ testing.common.database-2.0.3/src/testing/common/database.py	2021-12-04 00:36:43.005938263 +0200
+@@ -285,7 +285,7 @@ class SkipIfNotInstalledDecorator(object
+ 
+             return skipIf(cond, "%s not found" % self.name)(fn)
+ 
+-        if isinstance(arg, collections.Callable):  # execute as simple decorator
++        if isinstance(arg, collections.abc.Callable):  # execute as simple decorator
+             return decorator(arg, None)
+         else:  # execute with path argument
+             return decorator



More information about the arch-commits mailing list