[arch-commits] Commit in python-decorator/trunk (PKGBUILD print_unittest.patch)

Jelle van der Waa jelle at archlinux.org
Sat Oct 3 10:27:34 UTC 2015


    Date: Saturday, October 3, 2015 @ 12:27:33
  Author: jelle
Revision: 142870

upgpkg: python-decorator 4.0.4-1

Added:
  python-decorator/trunk/print_unittest.patch
Modified:
  python-decorator/trunk/PKGBUILD

----------------------+
 PKGBUILD             |   12 +++++++-----
 print_unittest.patch |    9 +++++++++
 2 files changed, 16 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-10-03 09:52:11 UTC (rev 142869)
+++ PKGBUILD	2015-10-03 10:27:33 UTC (rev 142870)
@@ -3,8 +3,8 @@
 # Contributor: Pierre Chapuis <catwell at archlinux dot us>
 
 pkgname=('python-decorator' 'python2-decorator')
-pkgver=4.0.2
-pkgrel=2
+pkgver=4.0.4
+pkgrel=1
 pkgdesc='Python Decorator module'
 arch=('any')
 url='http://pypi.python.org/pypi/decorator'
@@ -11,9 +11,10 @@
 license=('BSD')
 makedepends=('python2' 'python' 'python-setuptools' 'python2-setuptools')
 source=("http://pypi.python.org/packages/source/d/decorator/decorator-${pkgver}.tar.gz"
-        'LICENSE.txt')
-md5sums=('033c9563af492c4ce2680ee6ca481fa7'
-         '0ca76d2c707f09dbb04acc425ea1a08b')
+        'LICENSE.txt' 'print_unittest.patch')
+md5sums=('dd3a0669e1e6f09699eefa2c7fbd9756'
+         '0ca76d2c707f09dbb04acc425ea1a08b'
+         'ce7b145ff6b667a84d7e9004095a9c15')
 
 build() {
   # Make python and python2 builds possible
@@ -50,6 +51,7 @@
 
 check() {
   cd "$srcdir/decorator-$pkgver"
+  patch -Np1 -i $srcdir/print_unittest.patch
 
   python3 setup.py test
 

Added: print_unittest.patch
===================================================================
--- print_unittest.patch	                        (rev 0)
+++ print_unittest.patch	2015-10-03 10:27:33 UTC (rev 142870)
@@ -0,0 +1,9 @@
+diff -aur decorator-4.0.4/src/tests/x.py decorator-4.0.4.new/src/tests/x.py
+--- decorator-4.0.4/src/tests/x.py	2015-09-21 16:59:07.000000000 +0200
++++ decorator-4.0.4.new/src/tests/x.py	2015-10-03 12:25:25.140912675 +0200
+@@ -31,4 +31,4 @@
+     for instance in instances:
+         instance.f()
+     del instances
+-    print C.f.cache
++    print(C.f.cache)



More information about the arch-commits mailing list