Date: Tuesday, February 7, 2023 @ 21:04:54
  Author: felixonmars
Revision: 1396027

upgpkg: python-sure 2.0.1-1

Modified:
  python-sure/trunk/PKGBUILD
Deleted:
  python-sure/trunk/python310.diff

----------------+
 PKGBUILD       |   22 +++++++++-------------
 python310.diff |   13 -------------
 2 files changed, 9 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-07 20:48:20 UTC (rev 1396026)
+++ PKGBUILD    2023-02-07 21:04:54 UTC (rev 1396027)
@@ -2,8 +2,9 @@
 # Maintainer: Chih-Hsuan Yen <[email protected]>
 
 pkgname=python-sure
-pkgver=2.0.0
-pkgrel=5
+pkgver=2.0.1
+_commit=84a45bf91fde2e4b922fb126a9f45651be9393fb
+pkgrel=1
 pkgdesc="An idiomatic testing library for python with powerful and flexible 
assertions"
 arch=('any')
 url="https://github.com/gabrielfalcao/sure";
@@ -12,20 +13,15 @@
 makedepends=('python-setuptools' 'git')
 # python-nose is still imported in some tests 
https://github.com/gabrielfalcao/sure/issues/182
 checkdepends=('python-pytest' 'python-nose')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/gabrielfalcao/sure/archive/$pkgver.tar.gz";
-        "python310.diff"
+source=("git+https://github.com/gabrielfalcao/sure.git#commit=$_commit";
         "use-unittest-mock.diff")
-sha512sums=('d113b08afd63c379ec9f05169b1ad15f3bb616a1f6ad7d0ef6513e98ba7ebb7462254b2d25307906d9f63603fed4f9e4b83ccbca0ec53a2b483f9395fa0fb94a'
-            
'0703cc88d01928e25e94e92fc0cfee68c6759322c9ee1d1603f381b6d67d6cf9db97f26aad1ccf7f6d6702370bc2c0194245aa3ba1c1b1384027a5712e469139'
+sha512sums=('SKIP'
             
'ad17f0bc171058cc488f844a55bd0cf2f83b391c6c47b4ac1864b5de0d0842eb086dd1413c249a05684a45c67542c15eadfa2a7cdff095669e327d0e80f09183')
 
 prepare() {
   export LC_CTYPE=en_US.UTF-8
 
-  cd "$srcdir"/sure-$pkgver
-  # https://github.com/gabrielfalcao/sure/issues/169
-  patch -Np1 -i ../python310.diff
-
+  cd sure
   # Based on the first two commits in 
https://github.com/gabrielfalcao/sure/pull/161
   patch -Np1 -i ../use-unittest-mock.diff
 
@@ -33,16 +29,16 @@
 }
 
 build() {
-  cd "$srcdir"/sure-$pkgver
+  cd sure
   python setup.py build
 }
 
 check() {
-  cd "$srcdir"/sure-$pkgver
+  cd sure
   PYTHONPATH="$PWD" pytest
 }
 
 package() {
-  cd sure-$pkgver
+  cd sure
   python setup.py install --root="$pkgdir" --optimize=1
 }

Deleted: python310.diff
===================================================================
--- python310.diff      2023-02-07 20:48:20 UTC (rev 1396026)
+++ python310.diff      2023-02-07 21:04:54 UTC (rev 1396027)
@@ -1,13 +0,0 @@
-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
-             ):

Reply via email to