Accepting request 1056828 from devel:languages:python
- 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 OBS-URL: https://build.opensuse.org/request/show/1056828 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests-mock?expand=0&rev=19
This commit is contained in:
commit
f8155f5682
@ -1,3 +1,33 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 7 22:55:58 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <steven.kowalik@suse.com>
|
Fri Jul 22 11:15:27 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-requests-mock
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-requests-mock
|
Name: python-requests-mock
|
||||||
Version: 1.9.3
|
Version: 1.10.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Module to mock out responses from the requests package
|
Summary: Module to mock out responses from the requests package
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -31,6 +31,7 @@ BuildRequires: %{python_module purl}
|
|||||||
BuildRequires: %{python_module purl}
|
BuildRequires: %{python_module purl}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module requests >= 2.3}
|
BuildRequires: %{python_module requests >= 2.3}
|
||||||
|
BuildRequires: %{python_module requests-futures}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: %{python_module testrepository >= 0.0.18}
|
BuildRequires: %{python_module testrepository >= 0.0.18}
|
||||||
BuildRequires: %{python_module testtools}
|
BuildRequires: %{python_module testtools}
|
||||||
|
@ -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.10.0.orig/tests/test_mocker.py
|
||||||
+++ requests-mock-1.9.3/tests/test_mocker.py
|
+++ requests-mock-1.10.0/tests/test_mocker.py
|
||||||
@@ -12,7 +12,10 @@
|
@@ -13,7 +13,10 @@
|
||||||
|
import json
|
||||||
import pickle
|
import pickle
|
||||||
|
|
||||||
-import mock
|
-import mock
|
||||||
|
BIN
requests-mock-1.10.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
requests-mock-1.10.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8d72abe54546c1fc9696fa1516672f1031d72a55a1d66c85184f972a24ba0eba
|
|
||||||
size 67988
|
|
Loading…
Reference in New Issue
Block a user