Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-vcrpy for openSUSE:Factory 
checked in at 2021-08-27 21:43:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-vcrpy (Old)
 and      /work/SRC/openSUSE:Factory/.python-vcrpy.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-vcrpy"

Fri Aug 27 21:43:42 2021 rev:11 rq:914455 version:4.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-vcrpy/python-vcrpy.changes        
2020-08-29 20:42:52.293478222 +0200
+++ /work/SRC/openSUSE:Factory/.python-vcrpy.new.1899/python-vcrpy.changes      
2021-08-27 21:44:33.758016181 +0200
@@ -1,0 +2,7 @@
+Thu Aug 26 12:15:11 UTC 2021 - John Paul Adrian Glaubitz 
<adrian.glaub...@suse.com>
+
+- Update to 4.1.1:
+  * Fix HTTPX support for versions greater than 0.15 (thanks @jairhenrique)
+  * Include a trailing newline on json cassettes (thanks @AaronRobson)
+
+-------------------------------------------------------------------

Old:
----
  vcrpy-4.1.0.tar.gz

New:
----
  vcrpy-4.1.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-vcrpy.spec ++++++
--- /var/tmp/diff_new_pack.RxBlfi/_old  2021-08-27 21:44:34.366016884 +0200
+++ /var/tmp/diff_new_pack.RxBlfi/_new  2021-08-27 21:44:34.370016889 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-vcrpy
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2015 LISA GmbH, Bingen, Germany.
 #
 # All modifications and additions to the file contributed by third parties
@@ -20,7 +20,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-vcrpy
-Version:        4.1.0
+Version:        4.1.1
 Release:        0
 Summary:        Python module to mock and replay HTTP interactions
 License:        MIT

++++++ vcrpy-4.1.0.tar.gz -> vcrpy-4.1.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vcrpy-4.1.0/PKG-INFO new/vcrpy-4.1.1/PKG-INFO
--- old/vcrpy-4.1.0/PKG-INFO    2020-07-31 16:52:03.000000000 +0200
+++ new/vcrpy-4.1.1/PKG-INFO    2020-10-09 22:41:12.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: vcrpy
-Version: 4.1.0
+Version: 4.1.1
 Summary: Automatically mock your HTTP interactions to simplify and speed up 
testing
 Home-page: https://github.com/kevin1024/vcrpy
 Author: Kevin McCarthy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vcrpy-4.1.0/tests/integration/test_aiohttp.py 
new/vcrpy-4.1.1/tests/integration/test_aiohttp.py
--- old/vcrpy-4.1.0/tests/integration/test_aiohttp.py   2020-07-31 
16:51:06.000000000 +0200
+++ new/vcrpy-4.1.1/tests/integration/test_aiohttp.py   2020-10-09 
22:36:13.000000000 +0200
@@ -292,9 +292,9 @@
 
 def test_double_requests(tmpdir):
     """We should capture, record, and replay all requests and response chains,
-        even if there are duplicate ones.
+    even if there are duplicate ones.
 
-        We should replay in the order we saw them.
+    We should replay in the order we saw them.
     """
     url = "https://httpbin.org/get";
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vcrpy-4.1.0/tests/integration/test_config.py 
new/vcrpy-4.1.1/tests/integration/test_config.py
--- old/vcrpy-4.1.0/tests/integration/test_config.py    2020-07-31 
16:51:06.000000000 +0200
+++ new/vcrpy-4.1.1/tests/integration/test_config.py    2020-10-09 
22:36:13.000000000 +0200
@@ -13,7 +13,9 @@
         urlopen(httpbin.url + "/get")
 
     with open(str(tmpdir.join("test.json"))) as f:
-        assert json.loads(f.read())
+        file_content = f.read()
+        assert file_content.endswith("\n")
+        assert json.loads(file_content)
 
 
 def test_default_set_cassette_library_dir(tmpdir, httpbin):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/vcrpy-4.1.0/tests/integration/test_register_persister.py 
new/vcrpy-4.1.1/tests/integration/test_register_persister.py
--- old/vcrpy-4.1.0/tests/integration/test_register_persister.py        
2020-07-31 16:51:06.000000000 +0200
+++ new/vcrpy-4.1.1/tests/integration/test_register_persister.py        
2020-10-09 22:36:13.000000000 +0200
@@ -12,7 +12,7 @@
 
 class CustomFilesystemPersister(object):
     """Behaves just like default FilesystemPersister but adds .test extension
-       to the cassette file"""
+    to the cassette file"""
 
     @staticmethod
     def load_cassette(cassette_path, serializer):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vcrpy-4.1.0/tests/integration/test_tornado.py 
new/vcrpy-4.1.1/tests/integration/test_tornado.py
--- old/vcrpy-4.1.0/tests/integration/test_tornado.py   2020-07-31 
16:51:06.000000000 +0200
+++ new/vcrpy-4.1.1/tests/integration/test_tornado.py   2020-10-09 
22:36:13.000000000 +0200
@@ -90,10 +90,10 @@
 @pytest.mark.gen_test
 def test_effective_url(get_client, scheme, tmpdir):
     """Ensure that the effective_url is captured"""
-    url = scheme + "://httpbin.org/redirect-to?url=/html"
+    url = scheme + "://mockbin.org/redirect/301?url=/html"
     with vcr.use_cassette(str(tmpdir.join("url.yaml"))):
         effective_url = (yield get(get_client(), url)).effective_url
-        assert effective_url == scheme + "://httpbin.org/html"
+        assert effective_url == scheme + "://mockbin.org/redirect/301/0"
 
     with vcr.use_cassette(str(tmpdir.join("url.yaml"))) as cass:
         assert effective_url == (yield get(get_client(), url)).effective_url
@@ -156,7 +156,7 @@
 @pytest.mark.gen_test
 def test_redirects(get_client, tmpdir, scheme):
     """Ensure that we can handle redirects"""
-    url = scheme + "://httpbin.org/redirect-to?url=bytes/1024"
+    url = scheme + "://mockbin.org/redirect/301?url=bytes/1024"
     with vcr.use_cassette(str(tmpdir.join("requests.yaml"))):
         content = (yield get(get_client(), url)).body
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vcrpy-4.1.0/tox.ini new/vcrpy-4.1.1/tox.ini
--- old/vcrpy-4.1.0/tox.ini     2020-07-31 16:51:06.000000000 +0200
+++ new/vcrpy-4.1.1/tox.ini     2020-10-09 22:36:13.000000000 +0200
@@ -80,6 +80,7 @@
     aiohttp: aiohttp
     aiohttp: pytest-asyncio
     aiohttp: pytest-aiohttp
+    httpx: httpx
     {py36,py37,py38}-{httpx}: httpx
     {py36,py37,py38}-{httpx}: pytest-asyncio
 depends =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vcrpy-4.1.0/vcr/__init__.py 
new/vcrpy-4.1.1/vcr/__init__.py
--- old/vcrpy-4.1.0/vcr/__init__.py     2020-07-31 16:51:06.000000000 +0200
+++ new/vcrpy-4.1.1/vcr/__init__.py     2020-10-09 22:38:26.000000000 +0200
@@ -3,7 +3,7 @@
 from logging import NullHandler
 from .record_mode import RecordMode as mode  # noqa import is not used in this 
file
 
-__version__ = "4.1.0"
+__version__ = "4.1.1"
 
 logging.getLogger(__name__).addHandler(NullHandler())
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vcrpy-4.1.0/vcr/serializers/jsonserializer.py 
new/vcrpy-4.1.1/vcr/serializers/jsonserializer.py
--- old/vcrpy-4.1.0/vcr/serializers/jsonserializer.py   2020-07-31 
16:51:06.000000000 +0200
+++ new/vcrpy-4.1.1/vcr/serializers/jsonserializer.py   2020-10-09 
22:36:13.000000000 +0200
@@ -16,7 +16,7 @@
     )
 
     try:
-        return json.dumps(cassette_dict, indent=4)
+        return json.dumps(cassette_dict, indent=4) + "\n"
     except UnicodeDecodeError as original:  # py2
         raise UnicodeDecodeError(
             original.encoding,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vcrpy-4.1.0/vcr/stubs/aiohttp_stubs.py 
new/vcrpy-4.1.1/vcr/stubs/aiohttp_stubs.py
--- old/vcrpy-4.1.0/vcr/stubs/aiohttp_stubs.py  2020-07-31 16:51:06.000000000 
+0200
+++ new/vcrpy-4.1.1/vcr/stubs/aiohttp_stubs.py  2020-10-09 22:36:13.000000000 
+0200
@@ -91,9 +91,9 @@
 
 def _serialize_headers(headers):
     """Serialize CIMultiDictProxy to a pickle-able dict because proxy
-        objects forbid pickling:
+    objects forbid pickling:
 
-        https://github.com/aio-libs/multidict/issues/340
+    https://github.com/aio-libs/multidict/issues/340
     """
     # Mark strings as keys so 'istr' types don't show up in
     # the cassettes as comments.
@@ -170,9 +170,9 @@
 
 async def record_responses(cassette, vcr_request, response):
     """Because aiohttp follows redirects by default, we must support
-        them by default. This method is used to write individual
-        request-response chains that were implicitly followed to get
-        to the final destination.
+    them by default. This method is used to write individual
+    request-response chains that were implicitly followed to get
+    to the final destination.
     """
 
     for past_response in response.history:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vcrpy-4.1.0/vcr/stubs/httpx_stubs.py 
new/vcrpy-4.1.1/vcr/stubs/httpx_stubs.py
--- old/vcrpy-4.1.0/vcr/stubs/httpx_stubs.py    2020-07-31 16:51:06.000000000 
+0200
+++ new/vcrpy-4.1.1/vcr/stubs/httpx_stubs.py    2020-10-09 22:36:13.000000000 
+0200
@@ -52,7 +52,6 @@
     response = httpx.Response(
         status_code=serialized_response.get("status_code"),
         request=request,
-        http_version=serialized_response.get("http_version"),
         headers=_from_serialized_headers(serialized_response.get("headers")),
         content=content,
         history=history or [],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vcrpy-4.1.0/vcrpy.egg-info/PKG-INFO 
new/vcrpy-4.1.1/vcrpy.egg-info/PKG-INFO
--- old/vcrpy-4.1.0/vcrpy.egg-info/PKG-INFO     2020-07-31 16:52:03.000000000 
+0200
+++ new/vcrpy-4.1.1/vcrpy.egg-info/PKG-INFO     2020-10-09 22:41:12.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: vcrpy
-Version: 4.1.0
+Version: 4.1.1
 Summary: Automatically mock your HTTP interactions to simplify and speed up 
testing
 Home-page: https://github.com/kevin1024/vcrpy
 Author: Kevin McCarthy

Reply via email to