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

Felix Yan felixonmars at archlinux.org
Wed Aug 1 18:55:33 UTC 2018


    Date: Wednesday, August 1, 2018 @ 18:55:32
  Author: felixonmars
Revision: 367203

archrelease: copy trunk to community-testing-any

Added:
  python-doublex/repos/community-testing-any/PKGBUILD
    (from rev 367202, python-doublex/trunk/PKGBUILD)
Deleted:
  python-doublex/repos/community-testing-any/PKGBUILD
  python-doublex/repos/community-testing-any/python37-async.patch

----------------------+
 PKGBUILD             |  108 +++++++++++++++++++++++--------------------------
 python37-async.patch |   63 ----------------------------
 2 files changed, 52 insertions(+), 119 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-01 18:55:13 UTC (rev 367202)
+++ PKGBUILD	2018-08-01 18:55:32 UTC (rev 367203)
@@ -1,56 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-doublex
-pkgname=('python-doublex' 'python2-doublex')
-pkgver=1.9.0
-pkgrel=1
-pkgdesc="Powerful test doubles framework for Python"
-arch=('any')
-license=('GPL')
-url="https://github.com/davidvilla/python-doublex"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pyhamcrest' 'python2-pyhamcrest')
-checkdepends=('python-nose' 'python2-nose')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/davidvilla/python-doublex/archive/v$pkgver.tar.gz"
-        python37-async.patch)
-sha512sums=('8721e21b6d89120ad2d4a58d1402f9528aedfe7ddba24d2839e23168c5e99542a8f2af23176cb9d126a73c701f82983398f03b7745928ac0de41e1cd4631e9a3'
-            'a2b61482cf0925b3d01cbfaa959297a1c9e52106f017a4685c61e3f8c952b131eff0e11b6fe3c8444083230be561d30b7e6647c555c602ef0c66eebda9b06811')
-
-prepare() {
-  # https://github.com/davidvilla/python-doublex/issues/7
-  patch -d python-doublex-$pkgver -Np1 < python37-async.patch
-  cp -a python-doublex-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/python-doublex-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/python-doublex-$pkgver-py2
-  python2 setup.py build
-}
-
-check() { (
-  cd "$srcdir"/python-doublex-$pkgver
-  python setup.py test
-
-  cd "$srcdir"/python-doublex-$pkgver-py2
-  python2 setup.py test
-  ) || warning "Tests failed as expected"
-}
-
-package_python-doublex() {
-  depends=('python-pyhamcrest')
-
-  cd python-doublex-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  rm "$pkgdir"/usr/README.rst
-}
-
-package_python2-doublex() {
-  depends=('python2-pyhamcrest')
-
-  cd python-doublex-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  rm "$pkgdir"/usr/README.rst
-}

Copied: python-doublex/repos/community-testing-any/PKGBUILD (from rev 367202, python-doublex/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-08-01 18:55:32 UTC (rev 367203)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-doublex
+pkgname=('python-doublex' 'python2-doublex')
+pkgver=1.9.1
+pkgrel=1
+pkgdesc="Powerful test doubles framework for Python"
+arch=('any')
+license=('GPL')
+url="https://github.com/davidvilla/python-doublex"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pyhamcrest' 'python2-pyhamcrest')
+checkdepends=('python-nose' 'python2-nose')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/davidvilla/python-doublex/archive/v$pkgver.tar.gz")
+sha512sums=('de0bab7e2f889baff10c2596427bc72611878a5539bebbd4ef570a964d21dc88dabc651c5e510eeb7dabe4ca80bca705095c5740de518e3f01221dc29e29273a')
+
+prepare() {
+  cp -a python-doublex-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/python-doublex-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/python-doublex-$pkgver-py2
+  python2 setup.py build
+}
+
+check() { (
+  cd "$srcdir"/python-doublex-$pkgver
+  python setup.py test
+
+  cd "$srcdir"/python-doublex-$pkgver-py2
+  python2 setup.py test
+  ) || warning "Tests failed as expected"
+}
+
+package_python-doublex() {
+  depends=('python-pyhamcrest')
+
+  cd python-doublex-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  rm "$pkgdir"/usr/README.rst
+}
+
+package_python2-doublex() {
+  depends=('python2-pyhamcrest')
+
+  cd python-doublex-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  rm "$pkgdir"/usr/README.rst
+}

Deleted: python37-async.patch
===================================================================
--- python37-async.patch	2018-08-01 18:55:13 UTC (rev 367202)
+++ python37-async.patch	2018-08-01 18:55:32 UTC (rev 367203)
@@ -1,63 +0,0 @@
-diff --git a/doublex/matchers.py b/doublex/matchers.py
-index e6ccf3c..2ecc987 100644
---- a/doublex/matchers.py
-+++ b/doublex/matchers.py
-@@ -97,7 +97,7 @@ class MethodCalled(OperationMatcher):
- 
-         if self._async_timeout:
-             if self._times != any_time:
--                raise WrongApiUsage("'times' and 'async' are exclusive")
-+                raise WrongApiUsage("'times' and 'wait' are exclusive")
-             self.method._event.wait(self._async_timeout)
- 
-         return method._was_called(self.context, self._times)
-@@ -126,7 +126,7 @@ class MethodCalled(OperationMatcher):
-         self.context.check_some_args = True
-         return self
- 
--    def async(self, timeout):
-+    def wait(self, timeout):
-         self._async_timeout = timeout
-         return self
- 
-diff --git a/doublex/test/async_race_condition_test.py b/doublex/test/async_race_condition_test.py
-index c16e3a3..375a5cf 100644
---- a/doublex/test/async_race_condition_test.py
-+++ b/doublex/test/async_race_condition_test.py
-@@ -36,4 +36,4 @@ class AsyncTests(unittest.TestCase):
-         sut.some_method()
- 
-         # then
--        assert_that(spy.write, called().async(1))
-+        assert_that(spy.write, called().wait(1))
-diff --git a/doublex/test/unit_tests.py b/doublex/test/unit_tests.py
-index d1e1b6d..378fe94 100644
---- a/doublex/test/unit_tests.py
-+++ b/doublex/test/unit_tests.py
-@@ -1340,7 +1340,7 @@ class AsyncTests(TestCase):
-         sut.send_data()
- 
-         # then
--        assert_that(spy.write, called().async(timeout=1))
-+        assert_that(spy.write, called().wait(timeout=1))
- 
-     def test_spy_async_support_1_call_only(self):
-         # given
-@@ -1353,7 +1353,7 @@ class AsyncTests(TestCase):
- 
-         # then
-         with self.assertRaises(WrongApiUsage):
--            assert_that(spy.write, called().async(timeout=1).with_args(3).times(2))
-+            assert_that(spy.write, called().wait(timeout=1).with_args(3).times(2))
- 
-     def test_spy_async_stubbed(self):
-         # given
-@@ -1366,7 +1366,7 @@ class AsyncTests(TestCase):
-         sut.send_data(3)
- 
-         # then
--        assert_that(spy.write, called().async(timeout=1))
-+        assert_that(spy.write, called().wait(timeout=1))
- 
- 
- # new on 1.7



More information about the arch-commits mailing list