diff --git a/python-requests-mock.changes b/python-requests-mock.changes index f448776..8f14aa4 100644 --- a/python-requests-mock.changes +++ b/python-requests-mock.changes @@ -1,3 +1,33 @@ +------------------------------------------------------------------- +Sat Jan 7 22:55:58 UTC 2023 - Dirk Müller + +- update to 1.10.0: + * Add a release note for the RLock + * Allow passing json\_encoder to mocking + * Improvements to Type Hints + * Lint fix for long line exception + * Shorten line length of comments + * Workaround for python2.7 not supporting lock timeout + * Comments to explain reentrant behaviour + * Change to use RLock and set a timeout to prevent infinite deadlocks + * Update homepage/doc URLs of requests library + * Add comment for pytest late loading feature + * pytest plugin should lazy-load requests\_mock + * Add test for threaded race condition + * Use threading.Lock() to prevent race conditions around monkeypatching of + get\_adapter() + * add GitHub URL for PyPi + * Add reset methods on the Mocker class type + * Avoid using distutils to check pytest version + * YAML quoting + * Support Python 3.10 + * Minor changes to code snippet example + * Fix DeprecationWarnings in setup.cfg keys + * a few minor fixes and proposed changes to documentation files + * Improve response-related param type hints + * Explicitly indicate start of keyword-only args + * Fix failing pytest + ------------------------------------------------------------------- Fri Jul 22 11:15:27 UTC 2022 - Steve Kowalik diff --git a/python-requests-mock.spec b/python-requests-mock.spec index 8104ef8..f637ffb 100644 --- a/python-requests-mock.spec +++ b/python-requests-mock.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests-mock # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-requests-mock -Version: 1.9.3 +Version: 1.10.0 Release: 0 Summary: Module to mock out responses from the requests package License: Apache-2.0 @@ -31,6 +31,7 @@ BuildRequires: %{python_module purl} BuildRequires: %{python_module purl} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests >= 2.3} +BuildRequires: %{python_module requests-futures} BuildRequires: %{python_module six} BuildRequires: %{python_module testrepository >= 0.0.18} BuildRequires: %{python_module testtools} diff --git a/remove-mock.patch b/remove-mock.patch index 5a3ef7f..6fb53f8 100644 --- a/remove-mock.patch +++ b/remove-mock.patch @@ -1,9 +1,9 @@ -Index: requests-mock-1.9.3/tests/test_mocker.py +Index: requests-mock-1.10.0/tests/test_mocker.py =================================================================== ---- requests-mock-1.9.3.orig/tests/test_mocker.py -+++ requests-mock-1.9.3/tests/test_mocker.py -@@ -12,7 +12,10 @@ - +--- requests-mock-1.10.0.orig/tests/test_mocker.py ++++ requests-mock-1.10.0/tests/test_mocker.py +@@ -13,7 +13,10 @@ + import json import pickle -import mock diff --git a/requests-mock-1.10.0.tar.gz b/requests-mock-1.10.0.tar.gz new file mode 100644 index 0000000..453159a --- /dev/null +++ b/requests-mock-1.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59c9c32419a9fb1ae83ec242d98e889c45bd7d7a65d48375cc243ec08441658b +size 72627 diff --git a/requests-mock-1.9.3.tar.gz b/requests-mock-1.9.3.tar.gz deleted file mode 100644 index f027601..0000000 --- a/requests-mock-1.9.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8d72abe54546c1fc9696fa1516672f1031d72a55a1d66c85184f972a24ba0eba -size 67988