Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages /
python-responses
Commits:
b41779af by Jelle van der Waa at 2024-04-06T17:10:57+02:00
upgpkg: 0.25.0-2: rebuild with python 3.12
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- + pytest-asyncio-failures.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = python-responses
pkgdesc = A utility library for mocking out the `requests` Python
library.
pkgver = 0.25.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/getsentry/responses
arch = any
license = Apache
@@ -15,6 +15,8 @@ pkgbase = python-responses
depends = python-urllib3
depends = python-yaml
source =
https://github.com/getsentry/responses/archive/0.25.0/python-responses-0.25.0.tar.gz
+ source = pytest-asyncio-failures.patch
sha512sums =
a947641f8693a5687feeec8ded5b8d7791c18910f96d6c967e1d4576d1ded7d56933971690a3f3f6b3394b3d5abc6f3f78462545fcd572e7dd674d06340c7566
+ sha512sums =
23c800262ab92bf3a92ffcb3431ba082c4953480452760267b06d91d5a1aebc93b4b6d93149543e3f07f1da678186fdf7a057b80800fc75573618a1c30e4c685
pkgname = python-responses
=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
pkgname=python-responses
pkgver=0.25.0
-pkgrel=1
+pkgrel=2
pkgdesc='A utility library for mocking out the `requests` Python library.'
arch=('any')
license=('Apache')
@@ -11,8 +11,15 @@ depends=('python-requests' 'python-urllib3' 'python-yaml')
makedepends=('python-setuptools')
checkdepends=('python-pytest' 'python-pytest-asyncio'
'python-pytest-httpserver' 'python-tomli'
'python-tomli-w')
-source=("https://github.com/getsentry/responses/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('a947641f8693a5687feeec8ded5b8d7791c18910f96d6c967e1d4576d1ded7d56933971690a3f3f6b3394b3d5abc6f3f78462545fcd572e7dd674d06340c7566')
+source=("https://github.com/getsentry/responses/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+ "pytest-asyncio-failures.patch")
+sha512sums=('a947641f8693a5687feeec8ded5b8d7791c18910f96d6c967e1d4576d1ded7d56933971690a3f3f6b3394b3d5abc6f3f78462545fcd572e7dd674d06340c7566'
+
'23c800262ab92bf3a92ffcb3431ba082c4953480452760267b06d91d5a1aebc93b4b6d93149543e3f07f1da678186fdf7a057b80800fc75573618a1c30e4c685')
+
+prepare() {
+ cd responses-$pkgver
+ patch -Np1 -i ${srcdir}/pytest-asyncio-failures.patch
+}
build() {
cd responses-$pkgver
=====================================
pytest-asyncio-failures.patch
=====================================
@@ -0,0 +1,43 @@
+From d5e7402f1782692d04742562370abaca8d54a972 Mon Sep 17 00:00:00 2001
+From: Mark Story <[email protected]>
+Date: Thu, 15 Feb 2024 11:44:21 -0500
+Subject: [PATCH] Use pytest.mark.asyncio (#707)
+
+* Use pytest.mark.asyncio
+
+This resolved async test failures locally.
+
+Refs #706
+---
+ responses/tests/test_registries.py | 3 ++-
+ responses/tests/test_responses.py | 3 ++-
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/responses/tests/test_registries.py
b/responses/tests/test_registries.py
+index 2ab035b1..c2c90d97 100644
+--- a/responses/tests/test_registries.py
++++ b/responses/tests/test_registries.py
+@@ -63,7 +63,8 @@ def run_with_registry():
+ assert_reset()
+
+
+-async def test_registry_async():
[email protected]
++async def test_registry_async(): # type: ignore[misc]
+ class CustomRegistry(registries.FirstMatchRegistry):
+ pass
+
+diff --git a/responses/tests/test_responses.py
b/responses/tests/test_responses.py
+index e074f6a9..12176b92 100644
+--- a/responses/tests/test_responses.py
++++ b/responses/tests/test_responses.py
+@@ -2263,7 +2263,8 @@ def run():
+ assert_reset()
+
+
+-async def test_async_calls():
[email protected]
++async def test_async_calls(): # type: ignore[misc]
+ @responses.activate
+ async def run():
+ responses.add(
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-responses/-/commit/b41779afeb98a4f95187710dc7afaadf3cd7fbbb
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-responses/-/commit/b41779afeb98a4f95187710dc7afaadf3cd7fbbb
You're receiving this email because of your account on gitlab.archlinux.org.