Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-requests-mock for
openSUSE:Factory checked in at 2021-06-11 22:30:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-requests-mock (Old)
and /work/SRC/openSUSE:Factory/.python-requests-mock.new.32437 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-requests-mock"
Fri Jun 11 22:30:14 2021 rev:17 rq:897834 version:1.9.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-requests-mock/python-requests-mock.changes
2021-05-20 19:23:46.414263551 +0200
+++
/work/SRC/openSUSE:Factory/.python-requests-mock.new.32437/python-requests-mock.changes
2021-06-11 22:30:26.466105989 +0200
@@ -1,0 +2,8 @@
+Sun Jun 6 11:58:05 UTC 2021 - Dirk M??ller <[email protected]>
+
+- update to 1.9.3:
+ * Release note for 1.9.3 type annotations
+ * Additional improvements to response matching type stubs
+ * Improve MockerCore type stubs
+
+-------------------------------------------------------------------
Old:
----
requests-mock-1.9.2.tar.gz
New:
----
requests-mock-1.9.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-requests-mock.spec ++++++
--- /var/tmp/diff_new_pack.E6dMv5/_old 2021-06-11 22:30:28.254109087 +0200
+++ /var/tmp/diff_new_pack.E6dMv5/_new 2021-06-11 22:30:28.258109095 +0200
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-requests-mock
-Version: 1.9.2
+Version: 1.9.3
Release: 0
Summary: Module to mock out responses from the requests package
License: Apache-2.0
++++++ requests-mock-1.9.2.tar.gz -> requests-mock-1.9.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-mock-1.9.2/AUTHORS
new/requests-mock-1.9.3/AUTHORS
--- old/requests-mock-1.9.2/AUTHORS 2021-04-30 05:36:44.000000000 +0200
+++ new/requests-mock-1.9.3/AUTHORS 2021-05-28 05:06:55.000000000 +0200
@@ -13,6 +13,7 @@
Janonymous <[email protected]>
Jeremy Stanley <[email protected]>
Jochen Kupperschmidt <[email protected]>
+Joel Andrews <[email protected]>
Jon Dufresne <[email protected]>
Louis Taylor <[email protected]>
Manuel Kaufmann <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-mock-1.9.2/ChangeLog
new/requests-mock-1.9.3/ChangeLog
--- old/requests-mock-1.9.2/ChangeLog 2021-04-30 05:36:44.000000000 +0200
+++ new/requests-mock-1.9.3/ChangeLog 2021-05-28 05:06:55.000000000 +0200
@@ -1,6 +1,13 @@
CHANGES
=======
+1.9.3
+-----
+
+* Release note for 1.9.3 type annotations
+* Additional improvements to response matching type stubs
+* Improve MockerCore type stubs
+
1.9.2
-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-mock-1.9.2/PKG-INFO
new/requests-mock-1.9.3/PKG-INFO
--- old/requests-mock-1.9.2/PKG-INFO 2021-04-30 05:36:45.078632800 +0200
+++ new/requests-mock-1.9.3/PKG-INFO 2021-05-28 05:06:55.726204200 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: requests-mock
-Version: 1.9.2
+Version: 1.9.3
Summary: Mock out responses from the requests package
Home-page: https://requests-mock.readthedocs.io/
Author: Jamie Lennox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-mock-1.9.2/RELEASENOTES.rst
new/requests-mock-1.9.3/RELEASENOTES.rst
--- old/requests-mock-1.9.2/RELEASENOTES.rst 2021-04-30 05:36:45.000000000
+0200
+++ new/requests-mock-1.9.3/RELEASENOTES.rst 2021-05-28 05:06:55.000000000
+0200
@@ -2,6 +2,21 @@
requests-mock
=============
+.. _requests-mock_1.9.3:
+
+1.9.3
+=====
+
+.. _requests-mock_1.9.3_Bug Fixes:
+
+Bug Fixes
+---------
+
+.. releasenotes/notes/Update-type-annotations-3314fbc6e7552750.yaml @
b'7d2eb83ce3fd3111f90318ddff095dc6821bcabb'
+
+- Improvements to some type annotations that were making it confusing to use
the library in an IDE.
+
+
.. _requests-mock_1.9.2:
1.9.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/requests-mock-1.9.2/releasenotes/notes/Update-type-annotations-3314fbc6e7552750.yaml
new/requests-mock-1.9.3/releasenotes/notes/Update-type-annotations-3314fbc6e7552750.yaml
---
old/requests-mock-1.9.2/releasenotes/notes/Update-type-annotations-3314fbc6e7552750.yaml
1970-01-01 01:00:00.000000000 +0100
+++
new/requests-mock-1.9.3/releasenotes/notes/Update-type-annotations-3314fbc6e7552750.yaml
2021-05-28 05:06:51.000000000 +0200
@@ -0,0 +1,3 @@
+---
+fixes:
+ - Improvements to some type annotations that were making it confusing to use
the library in an IDE. #173
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-mock-1.9.2/releasenotes/notes/reno.cache
new/requests-mock-1.9.3/releasenotes/notes/reno.cache
--- old/requests-mock-1.9.2/releasenotes/notes/reno.cache 2021-04-30
05:36:44.000000000 +0200
+++ new/requests-mock-1.9.3/releasenotes/notes/reno.cache 2021-05-28
05:06:55.000000000 +0200
@@ -1,49 +1,51 @@
---
dates:
-- date: 1512515002
- version: 1.4.0
-- date: 1619753746
- version: 1.9.2
+- date: 1402924380
+ version: 0.1.0
+- date: 1532145389
+ version: 1.5.2
+- date: 1532135081
+ version: 1.5.1
+- date: 1485927403
+ version: 1.3.0
+- date: 1619591865
+ version: 1.9.0
- date: 1403529047
version: 0.2.0
-- date: 1404197047
- version: 0.3.0
-- date: 1619603915
- version: 1.9.1
+- date: 1462770653
+ version: 1.0.0
+- date: 1404273975
+ version: 0.4.0
+- date: 1567324008
+ version: 1.7.0
+- date: 1421641725
+ version: 0.6.0
+- date: 1588424388
+ version: 1.8.0
+- date: 1408949673
+ version: 0.5.0
- date: 1480900960
version: 1.2.0
+- date: 1619603915
+ version: 1.9.1
+- date: 1404197047
+ version: 0.3.0
+- date: 1556442539
+ version: 1.6.0
- date: 1409211257
version: 0.5.1
-- date: 1408949673
- version: 0.5.0
-- date: 1588424388
- version: 1.8.0
-- date: 1473836597
- version: 1.1.0
-- date: 1532135081
- version: 1.5.1
-- date: 1402924380
- version: 0.1.0
-- date: 1462770653
- version: 1.0.0
+- date: 1512515002
+ version: 1.4.0
- date: 1448328589
version: 0.7.0
-- date: 1485927403
- version: 1.3.0
-- date: 1421641725
- version: 0.6.0
-- date: 1404273975
- version: 0.4.0
-- date: 1619591865
- version: 1.9.0
- date: 1525990894
version: 1.5.0
-- date: 1556442539
- version: 1.6.0
-- date: 1532145389
- version: 1.5.2
-- date: 1567324008
- version: 1.7.0
+- date: 1473836597
+ version: 1.1.0
+- date: 1622168111
+ version: 1.9.3
+- date: 1619753777
+ version: 1.9.2
file-contents:
releasenotes/notes/Add-called_once-property-a69546448cbd5542.yaml:
features:
@@ -83,6 +85,10 @@
releasenotes/notes/Support-Type-Hints-0f7d2385bd808d84.yaml:
features:
- Add python type hints for python 3.
+ releasenotes/notes/Update-type-annotations-3314fbc6e7552750.yaml:
+ fixes:
+ - Improvements to some type annotations that were making it confusing to
use the
+ library in an IDE.
releasenotes/notes/add-reset-function-bcef01162cab0912.yaml:
features:
- 'Add a reset/reset_mock function to the mocker and components so that
users
@@ -244,6 +250,11 @@
'
notes:
- files:
+ - - releasenotes/notes/Update-type-annotations-3314fbc6e7552750.yaml
+ - !!binary |
+ N2QyZWI4M2NlM2ZkMzExMWY5MDMxOGRkZmYwOTVkYzY4MjFiY2FiYg==
+ version: 1.9.3
+- files:
- - releasenotes/notes/Fix-urlquote-of-quoted-path-84cc1ff122dba279.yaml
- !!binary |
NzdmMWExZmVmN2E2YmI2MGIxYWQ0YmFmYjg1MTU5NzgyNDc0MTc4ZA==
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-mock-1.9.2/requests_mock/adapter.pyi
new/requests-mock-1.9.3/requests_mock/adapter.pyi
--- old/requests-mock-1.9.2/requests_mock/adapter.pyi 2021-04-30
05:36:39.000000000 +0200
+++ new/requests-mock-1.9.3/requests_mock/adapter.pyi 2021-05-28
05:06:51.000000000 +0200
@@ -2,9 +2,11 @@
from requests.adapters import BaseAdapter
from requests_mock import _RequestObjectProxy
-from typing import Any, List, Optional
+from typing import Any, Callable, Dict, List, NewType, Optional, Pattern, Union
-ANY: object = ...
+AnyMatcher = NewType("AnyMatcher", object)
+
+ANY: AnyMatcher = ...
class _RequestHistoryTracker:
request_history: List[_RequestObjectProxy] = ...
@@ -26,5 +28,17 @@
class Adapter(BaseAdapter, _RequestHistoryTracker):
def __init__(self, case_sensitive: bool = ...) -> None: ...
- def register_uri(self, method: Any, url: Any, response_list: Optional[Any]
= ..., **kwargs: Any) -> Any: ...
+ def register_uri(
+ self,
+ method: Union[str, AnyMatcher],
+ url: Union[str, Pattern[str], AnyMatcher],
+ response_list: Optional[List[Dict[str, Any]]] = ...,
+ request_headers: Dict[str, str] = ...,
+ complete_qs: bool = ...,
+ status_code: int = ...,
+ text: str = ...,
+ headers: Optional[Dict[str, str]] = ...,
+ additional_matcher: Optional[Callable[[_RequestObjectProxy], bool]] =
...,
+ **kwargs: Any
+ ) -> Any: ...
def add_matcher(self, matcher: Any) -> None: ...
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-mock-1.9.2/requests_mock/mocker.pyi
new/requests-mock-1.9.3/requests_mock/mocker.pyi
--- old/requests-mock-1.9.2/requests_mock/mocker.pyi 2021-04-30
05:36:39.000000000 +0200
+++ new/requests-mock-1.9.3/requests_mock/mocker.pyi 2021-05-28
05:06:51.000000000 +0200
@@ -1,5 +1,6 @@
# Stubs for requests_mock.mocker
+from requests_mock.adapter import AnyMatcher
from requests import Response
from requests_mock.request import _RequestObjectProxy
from typing import Any, Callable, Dict, List, Optional, Pattern, Type,
TypeVar, Union
@@ -30,7 +31,11 @@
def call_count(self) -> int: ...
def register_uri(
self,
- method: str,
+ method: Union[str, AnyMatcher],
+ url: Union[str, Pattern[str], AnyMatcher],
+ response_list: Optional[List[Dict[str, Any]]] = ...,
+ request_headers: Dict[str, str] = ...,
+ complete_qs: bool = ...,
status_code: int = ...,
text: str = ...,
headers: Optional[Dict[str, str]] = ...,
@@ -38,7 +43,11 @@
**kwargs: Any) -> Response: ...
def request(
self,
- method: str,
+ method: Union[str, AnyMatcher],
+ url: Union[str, Pattern[str], AnyMatcher],
+ response_list: Optional[List[Dict[str, Any]]] = ...,
+ request_headers: Dict[str, str] = ...,
+ complete_qs: bool = ...,
status_code: int = ...,
text: str = ...,
headers: Optional[Dict[str, str]] = ...,
@@ -46,7 +55,10 @@
**kwargs: Any) -> Response: ...
def get(
self,
- path: Union[str, Pattern[str]],
+ url: Union[str, Pattern[str], AnyMatcher],
+ response_list: Optional[List[Dict[str, Any]]] = ...,
+ request_headers: Dict[str, str] = ...,
+ complete_qs: bool = ...,
status_code: int = ...,
text: str = ...,
headers: Optional[Dict[str, str]] = ...,
@@ -54,7 +66,10 @@
**kwargs: Any) -> Response: ...
def head(
self,
- path: Union[str, Pattern[str]],
+ url: Union[str, Pattern[str], AnyMatcher],
+ response_list: Optional[List[Dict[str, Any]]] = ...,
+ request_headers: Dict[str, str] = ...,
+ complete_qs: bool = ...,
status_code: int = ...,
text: str = ...,
headers: Optional[Dict[str, str]] = ...,
@@ -62,7 +77,10 @@
**kwargs: Any) -> Response: ...
def options(
self,
- path: Union[str, Pattern[str]],
+ url: Union[str, Pattern[str], AnyMatcher],
+ response_list: Optional[List[Dict[str, Any]]] = ...,
+ request_headers: Dict[str, str] = ...,
+ complete_qs: bool = ...,
status_code: int = ...,
text: str = ...,
headers: Optional[Dict[str, str]] = ...,
@@ -70,7 +88,10 @@
**kwargs: Any) -> Response: ...
def post(
self,
- path: Union[str, Pattern[str]],
+ url: Union[str, Pattern[str], AnyMatcher],
+ response_list: Optional[List[Dict[str, Any]]] = ...,
+ request_headers: Dict[str, str] = ...,
+ complete_qs: bool = ...,
status_code: int = ...,
text: str = ...,
headers: Optional[Dict[str, str]] = ...,
@@ -78,7 +99,10 @@
**kwargs: Any) -> Response: ...
def put(
self,
- path: Union[str, Pattern[str]],
+ url: Union[str, Pattern[str], AnyMatcher],
+ response_list: Optional[List[Dict[str, Any]]] = ...,
+ request_headers: Dict[str, str] = ...,
+ complete_qs: bool = ...,
status_code: int = ...,
text: str = ...,
headers: Optional[Dict[str, str]] = ...,
@@ -86,7 +110,10 @@
**kwargs: Any) -> Response: ...
def patch(
self,
- path: Union[str, Pattern[str]],
+ url: Union[str, Pattern[str], AnyMatcher],
+ response_list: Optional[List[Dict[str, Any]]] = ...,
+ request_headers: Dict[str, str] = ...,
+ complete_qs: bool = ...,
status_code: int = ...,
text: str = ...,
headers: Optional[Dict[str, str]] = ...,
@@ -94,7 +121,10 @@
**kwargs: Any) -> Response: ...
def delete(
self,
- path: Union[str, Pattern[str]],
+ url: Union[str, Pattern[str], AnyMatcher],
+ response_list: Optional[List[Dict[str, Any]]] = ...,
+ request_headers: Dict[str, str] = ...,
+ complete_qs: bool = ...,
status_code: int = ...,
text: str = ...,
headers: Optional[Dict[str, str]] = ...,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-mock-1.9.2/requests_mock.egg-info/PKG-INFO
new/requests-mock-1.9.3/requests_mock.egg-info/PKG-INFO
--- old/requests-mock-1.9.2/requests_mock.egg-info/PKG-INFO 2021-04-30
05:36:44.000000000 +0200
+++ new/requests-mock-1.9.3/requests_mock.egg-info/PKG-INFO 2021-05-28
05:06:55.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: requests-mock
-Version: 1.9.2
+Version: 1.9.3
Summary: Mock out responses from the requests package
Home-page: https://requests-mock.readthedocs.io/
Author: Jamie Lennox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/requests-mock-1.9.2/requests_mock.egg-info/SOURCES.txt
new/requests-mock-1.9.3/requests_mock.egg-info/SOURCES.txt
--- old/requests-mock-1.9.2/requests_mock.egg-info/SOURCES.txt 2021-04-30
05:36:44.000000000 +0200
+++ new/requests-mock-1.9.3/requests_mock.egg-info/SOURCES.txt 2021-05-28
05:06:55.000000000 +0200
@@ -40,6 +40,7 @@
releasenotes/notes/Bump-minimum-requests-2.3-70fd287f6ea1a12e.yaml
releasenotes/notes/Fix-urlquote-of-quoted-path-84cc1ff122dba279.yaml
releasenotes/notes/Support-Type-Hints-0f7d2385bd808d84.yaml
+releasenotes/notes/Update-type-annotations-3314fbc6e7552750.yaml
releasenotes/notes/add-reset-function-bcef01162cab0912.yaml
releasenotes/notes/additional-matcher-5c5cd466a6d70080.yaml
releasenotes/notes/case-insensitive-matching-a3143221359bbf2d.yaml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-mock-1.9.2/requests_mock.egg-info/pbr.json
new/requests-mock-1.9.3/requests_mock.egg-info/pbr.json
--- old/requests-mock-1.9.2/requests_mock.egg-info/pbr.json 2021-04-30
05:36:44.000000000 +0200
+++ new/requests-mock-1.9.3/requests_mock.egg-info/pbr.json 2021-05-28
05:06:55.000000000 +0200
@@ -1 +1 @@
-{"git_version": "850671f", "is_release": false}
\ No newline at end of file
+{"git_version": "7d2eb83", "is_release": false}
\ No newline at end of file