[arch-commits] Commit in python-wstools/trunk (PKGBUILD python310.patch)

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Dec 7 11:47:54 UTC 2021


    Date: Tuesday, December 7, 2021 @ 11:47:54
  Author: foutrelis
Revision: 430775

Fix build with Python 3.10

Added:
  python-wstools/trunk/python310.patch
Modified:
  python-wstools/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-07 11:00:21 UTC (rev 430774)
+++ PKGBUILD	2021-12-07 11:47:54 UTC (rev 430775)
@@ -10,11 +10,18 @@
 depends=('python-six')
 makedepends=('python-pbr' 'python-setuptools')
 checkdepends=('python-pytest-runner' 'autopep8' 'python-pytest-cov')
-source=("https://github.com/pycontribs/wstools/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('1acd8e62d71c7d330f1e953a0da1956291c5dfb25ff9b8b8799c83feaa4230e384955735b131bab7b430b92ae6c18498927d416d2d1e11fb5c5dad93417c671a')
+source=("https://github.com/pycontribs/wstools/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+        python310.patch)
+sha512sums=('1acd8e62d71c7d330f1e953a0da1956291c5dfb25ff9b8b8799c83feaa4230e384955735b131bab7b430b92ae6c18498927d416d2d1e11fb5c5dad93417c671a'
+            'd1eb690578eaf7f5e79d9dbc0494b545d88e124e11f9927c5c17c9e64b7cba209fbe5ad68b43afd84c850d22c36133e39e305d214ea55e8a7935e06a465f8947')
 
 export PBR_VERSION=$pkgver
 
+prepare() {
+  cd wstools-$pkgver
+  patch -Np1 -i ../python310.patch
+}
+
 build() {
   cd wstools-$pkgver
   python setup.py build

Added: python310.patch
===================================================================
--- python310.patch	                        (rev 0)
+++ python310.patch	2021-12-07 11:47:54 UTC (rev 430775)
@@ -0,0 +1,12 @@
+diff -upr wstools-0.4.10.orig/wstools/Utility.py wstools-0.4.10/wstools/Utility.py
+--- wstools-0.4.10.orig/wstools/Utility.py	2020-04-15 17:15:13.000000000 +0300
++++ wstools-0.4.10/wstools/Utility.py	2021-12-07 13:46:43.544654058 +0200
+@@ -33,7 +33,7 @@ try:
+     from UserDict import DictMixin  # noqa
+ except ImportError:
+     from collections import UserDict
+-    from collections import MutableMapping as DictMixin  # noqa
++    from collections.abc import MutableMapping as DictMixin  # noqa
+ 
+ from .TimeoutSocket import TimeoutSocket, TimeoutError  # noqa
+ 



More information about the arch-commits mailing list