[arch-commits] Commit in python-responses/repos/community-any (4 files)

Felix Yan felixonmars at archlinux.org
Sun Dec 22 16:21:30 UTC 2019


    Date: Sunday, December 22, 2019 @ 16:21:30
  Author: felixonmars
Revision: 538855

archrelease: copy trunk to community-any

Added:
  python-responses/repos/community-any/PKGBUILD
    (from rev 538854, python-responses/trunk/PKGBUILD)
  python-responses/repos/community-any/pytest5.patch
    (from rev 538854, python-responses/trunk/pytest5.patch)
Deleted:
  python-responses/repos/community-any/PKGBUILD
  python-responses/repos/community-any/pytest5.patch

---------------+
 PKGBUILD      |   62 ++++++++++++++++++++++++++++----------------------------
 pytest5.patch |   56 +++++++++++++++++++++++++-------------------------
 2 files changed, 59 insertions(+), 59 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-22 16:21:11 UTC (rev 538854)
+++ PKGBUILD	2019-12-22 16:21:30 UTC (rev 538855)
@@ -1,31 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-responses
-pkgver=0.10.8
-pkgrel=1
-pkgdesc='A utility library for mocking out the `requests` Python library.'
-arch=('any')
-license=('Apache')
-url='https://github.com/getsentry/responses'
-depends=('python-requests' 'python-biscuits' 'python-six')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-pytest-cov' 'flake8' 'python-pytest-localserver')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/getsentry/responses/archive/$pkgver.tar.gz")
-sha512sums=('92b3ee296b7412d7768ae917cd61994ce2b0e6813fcaf3faf9c91c37c38723c10d6d184ba981b956c163739fe6554a2d4691ae9997aabfb4482a23d3a71b1093')
-
-build() {
-  cd "$srcdir"/responses-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd "$srcdir"/responses-$pkgver
-  python setup.py pytest
-}
-
-package() {
-  cd responses-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-responses/repos/community-any/PKGBUILD (from rev 538854, python-responses/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-12-22 16:21:30 UTC (rev 538855)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-responses
+pkgver=0.10.9
+pkgrel=1
+pkgdesc='A utility library for mocking out the `requests` Python library.'
+arch=('any')
+license=('Apache')
+url='https://github.com/getsentry/responses'
+depends=('python-requests' 'python-biscuits' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-cov' 'flake8' 'python-pytest-localserver')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/getsentry/responses/archive/$pkgver.tar.gz")
+sha512sums=('bd5b725c938f37961aadad43e6f16d40b37ff1e011dae55582e4d6ff798eb6a5e797442df3edd921e4950b31d4767bf2928f1bfcb2223e17a6418f789d62a757')
+
+build() {
+  cd "$srcdir"/responses-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/responses-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd responses-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: pytest5.patch
===================================================================
--- pytest5.patch	2019-12-22 16:21:11 UTC (rev 538854)
+++ pytest5.patch	2019-12-22 16:21:30 UTC (rev 538855)
@@ -1,28 +0,0 @@
-From b9c17412445530298eb28917c1ef3a8f7cff971c Mon Sep 17 00:00:00 2001
-From: Brandon Hong <brandon.hong at intel.com>
-Date: Wed, 9 Oct 2019 15:18:56 +0800
-Subject: [PATCH] Fix testcase test_assert_all_requests_are_fired failure
-
-Pytest 5.0.0 changed ExceptionInfo object's str() to returns the same as repr().
-(See, item #5412 of https://docs.pytest.org/en/latest/changelog.html#pytest-5-0-0-2019-06-28)
-This patch fixes the test failure by comparing expectation with str() result of
-ExceptionInfo's value member instaed of object itself.
-
-Signed-off-by: Brandon Hong <brandon.hong at intel.com>
----
- test_responses.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/test_responses.py b/test_responses.py
-index 4740dfb..c2a4f01 100644
---- a/test_responses.py
-+++ b/test_responses.py
-@@ -701,7 +701,7 @@ def run():
-             with responses.RequestsMock(assert_all_requests_are_fired=True) as m:
-                 m.add(responses.GET, "http://example.com", body=b"test")
-         assert "http://example.com" in str(excinfo.value)
--        assert responses.GET in str(excinfo)
-+        assert responses.GET in str(excinfo.value)
- 
-         # check that assert_all_requests_are_fired default to True
-         with pytest.raises(AssertionError):

Copied: python-responses/repos/community-any/pytest5.patch (from rev 538854, python-responses/trunk/pytest5.patch)
===================================================================
--- pytest5.patch	                        (rev 0)
+++ pytest5.patch	2019-12-22 16:21:30 UTC (rev 538855)
@@ -0,0 +1,28 @@
+From b9c17412445530298eb28917c1ef3a8f7cff971c Mon Sep 17 00:00:00 2001
+From: Brandon Hong <brandon.hong at intel.com>
+Date: Wed, 9 Oct 2019 15:18:56 +0800
+Subject: [PATCH] Fix testcase test_assert_all_requests_are_fired failure
+
+Pytest 5.0.0 changed ExceptionInfo object's str() to returns the same as repr().
+(See, item #5412 of https://docs.pytest.org/en/latest/changelog.html#pytest-5-0-0-2019-06-28)
+This patch fixes the test failure by comparing expectation with str() result of
+ExceptionInfo's value member instaed of object itself.
+
+Signed-off-by: Brandon Hong <brandon.hong at intel.com>
+---
+ test_responses.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test_responses.py b/test_responses.py
+index 4740dfb..c2a4f01 100644
+--- a/test_responses.py
++++ b/test_responses.py
+@@ -701,7 +701,7 @@ def run():
+             with responses.RequestsMock(assert_all_requests_are_fired=True) as m:
+                 m.add(responses.GET, "http://example.com", body=b"test")
+         assert "http://example.com" in str(excinfo.value)
+-        assert responses.GET in str(excinfo)
++        assert responses.GET in str(excinfo.value)
+ 
+         # check that assert_all_requests_are_fired default to True
+         with pytest.raises(AssertionError):



More information about the arch-commits mailing list