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

Felix Yan felixonmars at gemini.archlinux.org
Mon Mar 7 22:53:53 UTC 2022


    Date: Monday, March 7, 2022 @ 22:53:52
  Author: felixonmars
Revision: 1145268

archrelease: copy trunk to community-any

Added:
  python-responses/repos/community-any/PKGBUILD
    (from rev 1145267, python-responses/trunk/PKGBUILD)
  python-responses/repos/community-any/pytest5.patch
    (from rev 1145267, 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	2022-03-07 22:53:41 UTC (rev 1145267)
+++ PKGBUILD	2022-03-07 22:53:52 UTC (rev 1145268)
@@ -1,31 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-responses
-pkgver=0.18.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' 'python-pytest-localserver')
-source=("https://github.com/getsentry/responses/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('b7e952897d8aa03b6454a4d8633357fd58d5f6e7edb528d245429deeea36b4dfd7fd3cabc18fd599e9bff4eff1c0458f9f8a70a76264ae7e30e8bf511cad3014')
-
-build() {
-  cd responses-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd responses-$pkgver
-  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 1145267, python-responses/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-07 22:53:52 UTC (rev 1145268)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-responses
+pkgver=0.19.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' 'python-pytest-localserver')
+source=("https://github.com/getsentry/responses/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('f306799baa5d62f2dba87c16f9027d98f9f87f598c78d1bb82888479636256bde73a63b5b62aa4b19d68e2a8c7635217bd8e235601e3a627797eac814aa31b34')
+
+build() {
+  cd responses-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd responses-$pkgver
+  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	2022-03-07 22:53:41 UTC (rev 1145267)
+++ pytest5.patch	2022-03-07 22:53:52 UTC (rev 1145268)
@@ -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 1145267, python-responses/trunk/pytest5.patch)
===================================================================
--- pytest5.patch	                        (rev 0)
+++ pytest5.patch	2022-03-07 22:53:52 UTC (rev 1145268)
@@ -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