Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
python-wstools


Commits:
15483b8e by Jelle van der Waa at 2024-04-15T12:07:26+02:00
upgpkg: 0.4.10-8: Rebuild with Python 3.12

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + unittest-assertequal-deprecated-alias.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-wstools
        pkgdesc = WSDL parsing services package for Web Services for Python
        pkgver = 0.4.10
-       pkgrel = 7
+       pkgrel = 8
        url = https://github.com/pycontribs/wstools
        arch = any
        license = BSD-3-Clause
@@ -17,7 +17,9 @@ pkgbase = python-wstools
        depends = python-six
        source = 
git+https://github.com/pycontribs/wstools.git#commit=c7f6c2973f5c598affa7def61d87e1775a6ac1d1
        source = python310.patch
-       sha512sums = SKIP
+       source = unittest-assertequal-deprecated-alias.patch
+       sha512sums = 
6b66434ac94a1828061ecf759d2fd5ef69216630ca7cdc47768d8969da98ddb9919deb9503eb3c0fff85dff9ff8252a41cb6b3cb66fcbbfdcdc3aceb7ea81c6c
        sha512sums = 
d1eb690578eaf7f5e79d9dbc0494b545d88e124e11f9927c5c17c9e64b7cba209fbe5ad68b43afd84c850d22c36133e39e305d214ea55e8a7935e06a465f8947
+       sha512sums = 
c14e18e723ffc6edd087e31231196fefd9ca8be77f3f28e09f945c29641327ed899efe61054164dad536928a060a735f4c100d09d9119ef566fc746fb69f7ff6
 
 pkgname = python-wstools


=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
 pkgname=python-wstools
 pkgver=0.4.10
 _commit=c7f6c2973f5c598affa7def61d87e1775a6ac1d1
-pkgrel=7
+pkgrel=8
 pkgdesc="WSDL parsing services package for Web Services for Python"
 arch=('any')
 url="https://github.com/pycontribs/wstools";
@@ -12,13 +12,16 @@ depends=('python-six')
 makedepends=('git' 'python-pbr' 'python-setuptools' 'python-build' 
'python-installer' 'python-wheel')
 checkdepends=('python-pytest' 'autopep8' 'python-pytest-cov')
 source=("git+https://github.com/pycontribs/wstools.git#commit=$_commit";
-        python310.patch)
-sha512sums=('SKIP'
-            
'd1eb690578eaf7f5e79d9dbc0494b545d88e124e11f9927c5c17c9e64b7cba209fbe5ad68b43afd84c850d22c36133e39e305d214ea55e8a7935e06a465f8947')
+        python310.patch
+       unittest-assertequal-deprecated-alias.patch)
+sha512sums=('6b66434ac94a1828061ecf759d2fd5ef69216630ca7cdc47768d8969da98ddb9919deb9503eb3c0fff85dff9ff8252a41cb6b3cb66fcbbfdcdc3aceb7ea81c6c'
+            
'd1eb690578eaf7f5e79d9dbc0494b545d88e124e11f9927c5c17c9e64b7cba209fbe5ad68b43afd84c850d22c36133e39e305d214ea55e8a7935e06a465f8947'
+            
'c14e18e723ffc6edd087e31231196fefd9ca8be77f3f28e09f945c29641327ed899efe61054164dad536928a060a735f4c100d09d9119ef566fc746fb69f7ff6')
 
 prepare() {
   cd wstools
   patch -Np1 -i ../python310.patch
+  patch -Np1 -i ../unittest-assertequal-deprecated-alias.patch
   sed -i "s/, 'pytest-runner'//" setup.py
 }
 


=====================================
unittest-assertequal-deprecated-alias.patch
=====================================
@@ -0,0 +1,21 @@
+diff -aur wstools.old/tests/test_wsdl.py wstools/tests/test_wsdl.py
+--- wstools.old/tests/test_wsdl.py     2024-04-15 12:05:29.023409908 +0200
++++ wstools/tests/test_wsdl.py 2024-04-15 12:05:58.653578930 +0200
+@@ -70,7 +70,7 @@
+         for node in DOM.getElements(definition, tag_name, nspname):
+             name = DOM.getAttr(node, key)
+             comp = component[name]  # noqa F841
+-            self.failUnlessEqual(eval('comp.%s' % key), name)
++            self.assertEqual(eval('comp.%s' % key), name)
+ 
+     def checkXSDCollection(self, tag_name, component, node, key='name'):
+         for cnode in DOM.getElements(node, tag_name):
+@@ -126,7 +126,7 @@
+         try:
+             for key in self.wsdl.types.keys():
+                 schema = self.wsdl.types[key]
+-                self.failUnlessEqual(key, schema.getTargetNamespace())
++                self.assertEqual(key, schema.getTargetNamespace())
+ 
+             definition = self.wsdl.document.documentElement
+             version = DOM.WSDLUriToVersion(definition.namespaceURI)



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-wstools/-/commit/15483b8e45b08648c49b2780ebc84fb7c66e6bb8

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-wstools/-/commit/15483b8e45b08648c49b2780ebc84fb7c66e6bb8
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to