14
0
forked from pool/python-vcrpy

6 Commits

Author SHA256 Message Date
25cee5a0c6 Accepting request 1316361 from devel:languages:python
- Add patch use-inspect-iscorountinefunction.patch:
  * Use inspect.iscorountinefunction rather than asyncio.

OBS-URL: https://build.opensuse.org/request/show/1316361
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-vcrpy?expand=0&rev=19
2025-11-07 17:22:38 +00:00
6b36643742 - Add patch use-inspect-iscorountinefunction.patch:
* Use inspect.iscorountinefunction rather than asyncio.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcrpy?expand=0&rev=46
2025-11-07 01:52:41 +00:00
f3875b9757 Accepting request 1235176 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1235176
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-vcrpy?expand=0&rev=18
2025-01-06 15:05:52 +00:00
e7fc728490 - Update to 7.0.0
* Drop support for python 3.8 (major version bump) - thanks @jairhenrique
  * Various linting and test fixes - thanks @jairhenrique
  * Bugfix for urllib2>=2.3.0 - missing version_string (#888)
  * Bugfix for asyncio.run - thanks @alekeik1

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcrpy?expand=0&rev=44
2025-01-06 12:44:06 +00:00
5f28e40d36 Accepting request 1219096 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1219096
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-vcrpy?expand=0&rev=17
2024-10-30 16:34:46 +00:00
2c1f516f15 - Update to 6.0.2
* Ensure body is consumed only once (#846) - thanks @sathieu
  * Permit urllib3 2.x for non-PyPy Python >=3.10
  * Fix typos in test commands - thanks @chuckwondo
  * Several test and workflow improvements - thanks @hartwork and @graingert

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcrpy?expand=0&rev=42
2024-10-29 17:04:48 +00:00
5 changed files with 56 additions and 6 deletions

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
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>
- Update to 7.0.0
* Drop support for python 3.8 (major version bump) - thanks @jairhenrique
* Various linting and test fixes - thanks @jairhenrique
* Bugfix for urllib2>=2.3.0 - missing version_string (#888)
* Bugfix for asyncio.run - thanks @alekeik1
-------------------------------------------------------------------
Tue Oct 29 12:01:26 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 6.0.2
* Ensure body is consumed only once (#846) - thanks @sathieu
* Permit urllib3 2.x for non-PyPy Python >=3.10
* Fix typos in test commands - thanks @chuckwondo
* Several test and workflow improvements - thanks @hartwork and @graingert
-------------------------------------------------------------------
Tue Feb 6 09:30:05 UTC 2024 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-vcrpy
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -19,12 +19,14 @@
%{?sle15_python_module_pythons}
Name: python-vcrpy
Version: 6.0.1
Version: 7.0.0
Release: 0
Summary: Python module to mock and replay HTTP interactions
License: MIT
URL: https://github.com/kevin1024/vcrpy
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 pip}
BuildRequires: %{python_module pytest-httpbin}
@@ -53,7 +55,7 @@ test runs for deterministic tests.
This is a Python version of Ruby's VCR library.
%prep
%setup -q -n vcrpy-%{version}
%autosetup -p1 -n vcrpy-%{version}
# online integration tests
rm -r tests/integration

View 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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9e023fee7f892baa0bbda2f7da7c8ac51165c1c6e38ff8688683a12a4bde9278
size 84836

BIN
vcrpy-7.0.0.tar.gz LFS Normal file

Binary file not shown.