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

Felix Yan felixonmars at archlinux.org
Thu Nov 12 20:25:42 UTC 2020


    Date: Thursday, November 12, 2020 @ 20:25:42
  Author: felixonmars
Revision: 753720

archrelease: copy trunk to community-staging-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-12 20:25:31 UTC (rev 753719)
+++ PKGBUILD	2020-11-12 20:25:42 UTC (rev 753720)
@@ -1,36 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-responses
-pkgver=0.12.0
-pkgrel=3
-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=('267b2b60e427229750a3647c6f0cf4a55fcaaa862062c8e888403d3d4f11b4835ead3e706861a895d2ae08eb136f48c3b67eae430c28ab8b8852b681eab3f709')
-
-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-staging-any/PKGBUILD (from rev 753719, python-responses/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-12 20:25:42 UTC (rev 753720)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-responses
+pkgver=0.12.1
+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=('f99e9a127328bd000c78d160fdd0cf8288999c47c933b185e9cce323697f2728ec28dc6dd8a4e29b55797e7fff94076190165bc63e1bc36e050027f875d95775')
+
+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-11-12 20:25:31 UTC (rev 753719)
+++ pytest5.patch	2020-11-12 20:25:42 UTC (rev 753720)
@@ -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-staging-any/pytest5.patch (from rev 753719, python-responses/trunk/pytest5.patch)
===================================================================
--- pytest5.patch	                        (rev 0)
+++ pytest5.patch	2020-11-12 20:25:42 UTC (rev 753720)
@@ -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