[arch-commits] Commit in python-sure/repos/community-staging-any (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Dec 7 12:59:00 UTC 2021


    Date: Tuesday, December 7, 2021 @ 12:59:00
  Author: felixonmars
Revision: 1065524

archrelease: copy trunk to community-staging-any

Added:
  python-sure/repos/community-staging-any/PKGBUILD
    (from rev 1065523, python-sure/trunk/PKGBUILD)
  python-sure/repos/community-staging-any/python310.diff
    (from rev 1065523, python-sure/trunk/python310.diff)
Deleted:
  python-sure/repos/community-staging-any/PKGBUILD

----------------+
 PKGBUILD       |   72 +++++++++++++++++++++++++++++--------------------------
 python310.diff |   13 +++++++++
 2 files changed, 52 insertions(+), 33 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-07 12:58:49 UTC (rev 1065523)
+++ PKGBUILD	2021-12-07 12:59:00 UTC (rev 1065524)
@@ -1,33 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-sure
-pkgver=2.0.0
-pkgrel=2
-pkgdesc="An idiomatic testing library for python with powerful and flexible assertions"
-arch=('any')
-url="https://github.com/gabrielfalcao/sure"
-license=('GPL')
-depends=('python-six' 'python-mock')
-makedepends=('python-setuptools' 'git')
-checkdepends=('python-nose' 'python-rednose')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/gabrielfalcao/sure/archive/$pkgver.tar.gz")
-sha512sums=('d113b08afd63c379ec9f05169b1ad15f3bb616a1f6ad7d0ef6513e98ba7ebb7462254b2d25307906d9f63603fed4f9e4b83ccbca0ec53a2b483f9395fa0fb94a')
-
-prepare() {
-  export LC_CTYPE=en_US.UTF-8
-}
-
-build() {
-  cd "$srcdir"/sure-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd "$srcdir"/sure-$pkgver
-  python setup.py test
-}
-
-package() {
-  cd sure-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-sure/repos/community-staging-any/PKGBUILD (from rev 1065523, python-sure/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-07 12:59:00 UTC (rev 1065524)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-sure
+pkgver=2.0.0
+pkgrel=4
+pkgdesc="An idiomatic testing library for python with powerful and flexible assertions"
+arch=('any')
+url="https://github.com/gabrielfalcao/sure"
+license=('GPL')
+depends=('python-six' 'python-mock')
+makedepends=('python-setuptools' 'git')
+checkdepends=('python-nose' 'python-rednose')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/gabrielfalcao/sure/archive/$pkgver.tar.gz"
+        "python310.diff")
+sha512sums=('d113b08afd63c379ec9f05169b1ad15f3bb616a1f6ad7d0ef6513e98ba7ebb7462254b2d25307906d9f63603fed4f9e4b83ccbca0ec53a2b483f9395fa0fb94a'
+            '0703cc88d01928e25e94e92fc0cfee68c6759322c9ee1d1603f381b6d67d6cf9db97f26aad1ccf7f6d6702370bc2c0194245aa3ba1c1b1384027a5712e469139')
+
+prepare() {
+  export LC_CTYPE=en_US.UTF-8
+
+  cd "$srcdir"/sure-$pkgver
+  # https://github.com/gabrielfalcao/sure/issues/169
+  patch -Np1 -i ../python310.diff
+}
+
+build() {
+  cd "$srcdir"/sure-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/sure-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd sure-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}

Copied: python-sure/repos/community-staging-any/python310.diff (from rev 1065523, python-sure/trunk/python310.diff)
===================================================================
--- python310.diff	                        (rev 0)
+++ python310.diff	2021-12-07 12:59:00 UTC (rev 1065524)
@@ -0,0 +1,13 @@
+diff --git a/sure/__init__.py b/sure/__init__.py
+index ef50bd4..d4c2afb 100644
+--- a/sure/__init__.py
++++ b/sure/__init__.py
+@@ -126,7 +126,7 @@ class CallBack(object):
+             err = traceback.format_exc().splitlines()[-1]
+             err = err.replace("{0}:".format(exc_klass.__name__), "").strip()
+ 
+-            if err.startswith(self.callback_name) and (
++            if self.callback_name in err and (
+                 "takes no arguments (1 given)" in err
+                 or "takes 0 positional arguments but 1 was given" in err
+             ):



More information about the arch-commits mailing list