14
0

- update to 1.11.0:

* Exposes some public type aliases (for type hinting only, they
    can't be instanciated)
  * for the types intended to be used by `requests_mock` users.
  * The following types are now exposed:
  * `requests_mock.Context` used in callbacks
  * `requests_mock.Request` used in callbacks, which is a
    `requests.PreparedRequest` proxy.
  * `requests_mock.Callback[T]` which is the callbacks type.
  * .. _requests-mock_1.11.0_Bug Fixes:
  * Some typing inconsistencies have been fixed.
  * Especially for `request` object in signatures which is in
    fact a `requests_mock.Request` object.
  * Fix incompatibility with urllib3 >2.0.0. In 2.0.0 they
    default to enforcing content length checking on returned bodies
    in responses from the previous default of false. However the flag
    is still available so for compatibility we can just default
    the other way.
- drop remove-mock.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=55
This commit is contained in:
2023-07-17 16:29:08 +00:00
committed by Git OBS Bridge
parent 3da76ed9d4
commit 2b65f10372
5 changed files with 27 additions and 24 deletions

View File

@@ -16,16 +16,14 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-requests-mock
Version: 1.10.0
Version: 1.11.0
Release: 0
Summary: Module to mock out responses from the requests package
License: Apache-2.0
URL: https://github.com/jamielennox/requests-mock
Source: https://files.pythonhosted.org/packages/source/r/requests-mock/requests-mock-%{version}.tar.gz
Patch0: remove-mock.patch
BuildRequires: %{python_module fixtures}
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module purl}
@@ -43,9 +41,7 @@ BuildRequires: fdupes
Requires: python-requests >= 2.3
Requires: python-six
BuildArch: noarch
%if "%python_flavor" != "python2"
Requires: python-dbm
%endif
%python_subpackages
%description