[arch-commits] Commit in python-responses/repos/community-staging-any (4 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Nov 10 10:33:49 UTC 2019
Date: Sunday, November 10, 2019 @ 10:33:49
Author: foutrelis
Revision: 525011
archrelease: copy trunk to community-staging-any
Added:
python-responses/repos/community-staging-any/PKGBUILD
(from rev 525010, python-responses/trunk/PKGBUILD)
python-responses/repos/community-staging-any/pytest5.patch
(from rev 525010, python-responses/trunk/pytest5.patch)
Deleted:
python-responses/repos/community-staging-any/PKGBUILD
python-responses/repos/community-staging-any/pytest5.patch
---------------+
PKGBUILD | 93 ++++++++++++++++++++++----------------------------------
pytest5.patch | 56 ++++++++++++++++-----------------
2 files changed, 65 insertions(+), 84 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-10 10:33:44 UTC (rev 525010)
+++ PKGBUILD 2019-11-10 10:33:49 UTC (rev 525011)
@@ -1,56 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-responses
-pkgname=('python-responses' 'python2-responses')
-pkgver=0.10.6
-pkgrel=3
-pkgdesc='A utility library for mocking out the `requests` Python library.'
-arch=('any')
-license=('Apache')
-url='https://github.com/getsentry/responses'
-makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests'
- 'python-biscuits' 'python2-cookies' 'python-six' 'python2-six' 'python2-mock')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-cov'
- 'python2-pytest-cov' 'flake8' 'python2-flake8' 'python-pytest-localserver'
- 'python2-pytest-localserver')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/getsentry/responses/archive/$pkgver.tar.gz"
- 'pytest5.patch')
-sha512sums=('7fee4150de9b477ca2fb01e71ee9dffae0e3e2138502af54c39bb9291d950d5feb6a6f8db3e37a8a58b6561d625ae8e42a90921463ecb0c5a0f9213466047334'
- '828e675cc27cf9c58b8e453053c8a4a12e560f07c77fa80aacd57decb2a8abb0ff9e91afdee11ff132bf15be1ae45c90b0ca09fdcdf97617532f835909f1ba2d')
-
-prepare() {
- patch -Np1 -d responses-$pkgver <pytest5.patch
- cp -a responses-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/responses-$pkgver
- python setup.py build
-
- cd "$srcdir"/responses-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/responses-$pkgver
- python setup.py pytest
-
- cd "$srcdir"/responses-$pkgver-py2
- python2 setup.py pytest
-}
-
-package_python-responses() {
- depends=('python-requests' 'python-biscuits' 'python-six')
-
- cd responses-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-responses() {
- depends=('python2-requests' 'python2-cookies' 'python2-six' 'python2-mock')
-
- cd responses-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-responses/repos/community-staging-any/PKGBUILD (from rev 525010, python-responses/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-10 10:33:49 UTC (rev 525011)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-responses
+pkgver=0.10.6
+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=("$pkgname-$pkgver.tar.gz::https://github.com/getsentry/responses/archive/$pkgver.tar.gz"
+ 'pytest5.patch')
+sha512sums=('7fee4150de9b477ca2fb01e71ee9dffae0e3e2138502af54c39bb9291d950d5feb6a6f8db3e37a8a58b6561d625ae8e42a90921463ecb0c5a0f9213466047334'
+ '828e675cc27cf9c58b8e453053c8a4a12e560f07c77fa80aacd57decb2a8abb0ff9e91afdee11ff132bf15be1ae45c90b0ca09fdcdf97617532f835909f1ba2d')
+
+prepare() {
+ patch -Np1 -d responses-$pkgver <pytest5.patch
+}
+
+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-11-10 10:33:44 UTC (rev 525010)
+++ pytest5.patch 2019-11-10 10:33:49 UTC (rev 525011)
@@ -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 525010, python-responses/trunk/pytest5.patch)
===================================================================
--- pytest5.patch (rev 0)
+++ pytest5.patch 2019-11-10 10:33:49 UTC (rev 525011)
@@ -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