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

Felix Yan felixonmars at archlinux.org
Mon Aug 24 17:50:38 UTC 2020


    Date: Monday, August 24, 2020 @ 17:50:38
  Author: felixonmars
Revision: 687625

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-24 17:50:19 UTC (rev 687624)
+++ PKGBUILD	2020-08-24 17:50:38 UTC (rev 687625)
@@ -1,36 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-responses
-pkgver=0.10.16
-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=("https://github.com/getsentry/responses/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('326420bafe1678a5d7e4fd2c9518e7c02f68491ec6644e09143bb8c57d7123bc0a2c9940a68c2e5fe47558828c788b1edcd519ed74590be1eb2123f99f5b3de3')
-
-prepare() {
-  cd responses-$pkgver
-  sed -i 's/, < 5.0.0//' setup.py
-}
-
-build() {
-  cd responses-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd 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 687624, python-responses/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-08-24 17:50:38 UTC (rev 687625)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-responses
+pkgver=0.11.0
+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=("https://github.com/getsentry/responses/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('467a884ec8c659e4793fc0ec1c00026b6e63f819d067c5deca451fbd00db2099e7d92288d02fb1f391e3e6e99274fb2cc00905152b6965e86b68e2401c001960')
+
+prepare() {
+  cd responses-$pkgver
+  sed -i 's/, < 5.0.0//' setup.py
+}
+
+build() {
+  cd responses-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd 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	2020-08-24 17:50:19 UTC (rev 687624)
+++ pytest5.patch	2020-08-24 17:50:38 UTC (rev 687625)
@@ -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 687624, python-responses/trunk/pytest5.patch)
===================================================================
--- pytest5.patch	                        (rev 0)
+++ pytest5.patch	2020-08-24 17:50:38 UTC (rev 687625)
@@ -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