forked from pool/python-vcrpy
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 25cee5a0c6 | |||
| 6b36643742 |
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 7 01:51:46 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch use-inspect-iscorountinefunction.patch:
|
||||||
|
* Use inspect.iscorountinefunction rather than asyncio.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 6 10:53:19 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
Mon Jan 6 10:53:19 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-vcrpy
|
# spec file for package python-vcrpy
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
|
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -25,6 +25,8 @@ Summary: Python module to mock and replay HTTP interactions
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/kevin1024/vcrpy
|
URL: https://github.com/kevin1024/vcrpy
|
||||||
Source: https://files.pythonhosted.org/packages/source/v/vcrpy/vcrpy-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/v/vcrpy/vcrpy-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM gh#kevin1024/vcrpy#910
|
||||||
|
Patch0: use-inspect-iscorountinefunction.patch
|
||||||
BuildRequires: %{python_module PyYAML}
|
BuildRequires: %{python_module PyYAML}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest-httpbin}
|
BuildRequires: %{python_module pytest-httpbin}
|
||||||
@@ -53,7 +55,7 @@ test runs for deterministic tests.
|
|||||||
This is a Python version of Ruby's VCR library.
|
This is a Python version of Ruby's VCR library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n vcrpy-%{version}
|
%autosetup -p1 -n vcrpy-%{version}
|
||||||
# online integration tests
|
# online integration tests
|
||||||
rm -r tests/integration
|
rm -r tests/integration
|
||||||
|
|
||||||
|
|||||||
24
use-inspect-iscorountinefunction.patch
Normal file
24
use-inspect-iscorountinefunction.patch
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
From 8f88f7b5f4ad6198e725f556a3e4c373900e6cf4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Karolina Surma <ksurma@redhat.com>
|
||||||
|
Date: Wed, 5 Feb 2025 16:57:16 +0100
|
||||||
|
Subject: [PATCH] Import iscoroutinefunction() from inspect rather than asyncio
|
||||||
|
|
||||||
|
The asyncio function is deprecated starting from Python 3.14 and
|
||||||
|
will be removed from Python 3.16.
|
||||||
|
---
|
||||||
|
vcr/cassette.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/vcr/cassette.py b/vcr/cassette.py
|
||||||
|
index c9f81a14..1ac06dde 100644
|
||||||
|
--- a/vcr/cassette.py
|
||||||
|
+++ b/vcr/cassette.py
|
||||||
|
@@ -3,7 +3,7 @@
|
||||||
|
import copy
|
||||||
|
import inspect
|
||||||
|
import logging
|
||||||
|
-from asyncio import iscoroutinefunction
|
||||||
|
+from inspect import iscoroutinefunction
|
||||||
|
|
||||||
|
import wrapt
|
||||||
|
|
||||||
Reference in New Issue
Block a user