Date: Thursday, March 18, 2021 @ 18:45:18 Author: felixonmars Revision: 894475
archrelease: copy trunk to community-any Added: python-responses/repos/community-any/PKGBUILD (from rev 894474, python-responses/trunk/PKGBUILD) python-responses/repos/community-any/pytest5.patch (from rev 894474, python-responses/trunk/pytest5.patch) Deleted: python-responses/repos/community-any/PKGBUILD python-responses/repos/community-any/pytest5.patch ---------------+ PKGBUILD | 64 ++++++++++++++++++++++++++++---------------------------- pytest5.patch | 56 ++++++++++++++++++++++++------------------------- 2 files changed, 60 insertions(+), 60 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-03-18 18:45:04 UTC (rev 894474) +++ PKGBUILD 2021-03-18 18:45:18 UTC (rev 894475) @@ -1,32 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=python-responses -pkgver=0.13.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=('mypy' 'python-pytest-runner' 'python-pytest-cov' 'flake8' - 'python-pytest-localserver') -source=("https://github.com/getsentry/responses/archive/$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('49d08eba5b49884cb9a09bac7f544a480ac9a324746b9aec642854a68c7139fe9d2f6f3e5f06e957764fd514944699db58040e83df82b9f9571adcac854f7f2b') - -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 894474, python-responses/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-03-18 18:45:18 UTC (rev 894475) @@ -0,0 +1,32 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-responses +pkgver=0.13.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=('mypy' 'python-pytest-runner' 'python-pytest-cov' 'flake8' + 'python-pytest-localserver') +source=("https://github.com/getsentry/responses/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('14814577b542f8adf5b1400df9eb8a0b748684ab850a41104c354fa8773bd51dea605a7a0006cb7ac4347ff76d88982172470278970d398ddf525a2dd51b9709') + +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 2021-03-18 18:45:04 UTC (rev 894474) +++ pytest5.patch 2021-03-18 18:45:18 UTC (rev 894475) @@ -1,28 +0,0 @@ -From b9c17412445530298eb28917c1ef3a8f7cff971c Mon Sep 17 00:00:00 2001 -From: Brandon Hong <brandon.h...@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.h...@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 894474, python-responses/trunk/pytest5.patch) =================================================================== --- pytest5.patch (rev 0) +++ pytest5.patch 2021-03-18 18:45:18 UTC (rev 894475) @@ -0,0 +1,28 @@ +From b9c17412445530298eb28917c1ef3a8f7cff971c Mon Sep 17 00:00:00 2001 +From: Brandon Hong <brandon.h...@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.h...@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):