Accepting request 955500 from devel:languages:python

- update to 0.17.0:
  * This release is the last to support Python 2.7.
  * Fixed issue when `response.iter_content` when `chunk_size=None` entered infinite loop
  * Fixed issue when `passthru_prefixes` persisted across tests.
    Now `add_passthru` is valid only within a context manager or for a single function and
    cleared on exit
  * Deprecate `match_querystring` argument in `Response` and `CallbackResponse`.
    Use `responses.matchers.query_param_matcher` or `responses.matchers.query_string_matcher`
  * Added support for non-UTF-8 bytes in `responses.matchers.multipart_matcher`
  * Added `responses.registries`. Now user can create custom registries to
    manipulate the order of responses in the match algorithm
    `responses.activate(registry=CustomRegistry)`
  * Fixed issue with response match when requests were performed between adding responses with
    same URL. See Issue #212

OBS-URL: https://build.opensuse.org/request/show/955500
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-responses?expand=0&rev=18
This commit is contained in:
Dominique Leuenberger 2022-02-17 22:40:01 +00:00 committed by Git OBS Bridge
commit 36ee06ee37
4 changed files with 23 additions and 5 deletions

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Wed Feb 16 23:14:16 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 0.17.0:
* This release is the last to support Python 2.7.
* Fixed issue when `response.iter_content` when `chunk_size=None` entered infinite loop
* Fixed issue when `passthru_prefixes` persisted across tests.
Now `add_passthru` is valid only within a context manager or for a single function and
cleared on exit
* Deprecate `match_querystring` argument in `Response` and `CallbackResponse`.
Use `responses.matchers.query_param_matcher` or `responses.matchers.query_string_matcher`
* Added support for non-UTF-8 bytes in `responses.matchers.multipart_matcher`
* Added `responses.registries`. Now user can create custom registries to
manipulate the order of responses in the match algorithm
`responses.activate(registry=CustomRegistry)`
* Fixed issue with response match when requests were performed between adding responses with
same URL. See Issue #212
-------------------------------------------------------------------
Mon Nov 29 11:54:48 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-responses
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 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-responses
Version: 0.16.0
Version: 0.17.0
Release: 0
Summary: A utility library for mocking out the `requests` Python library
License: Apache-2.0

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a2e3aca2a8277e61257cd3b1c154b1dd0d782b1ae3d38b7fa37cbe3feb531791
size 41943

3
responses-0.17.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ec675e080d06bf8d1fb5e5a68a1e5cd0df46b09c78230315f650af5e4036bec7
size 45064