From 6059bc248569528b100f33658934c0fc1c91a803a52a875c5702c2feff86943e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 16 Feb 2022 23:15:56 +0000 Subject: [PATCH] - 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/package/show/devel:languages:python/python-responses?expand=0&rev=36 --- python-responses.changes | 18 ++++++++++++++++++ python-responses.spec | 4 ++-- responses-0.16.0.tar.gz | 3 --- responses-0.17.0.tar.gz | 3 +++ 4 files changed, 23 insertions(+), 5 deletions(-) delete mode 100644 responses-0.16.0.tar.gz create mode 100644 responses-0.17.0.tar.gz diff --git a/python-responses.changes b/python-responses.changes index 2875f53..b241425 100644 --- a/python-responses.changes +++ b/python-responses.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Wed Feb 16 23:14:16 UTC 2022 - Dirk Müller + +- 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 diff --git a/python-responses.spec b/python-responses.spec index ff39430..1bdb272 100644 --- a/python-responses.spec +++ b/python-responses.spec @@ -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 diff --git a/responses-0.16.0.tar.gz b/responses-0.16.0.tar.gz deleted file mode 100644 index 9612d45..0000000 --- a/responses-0.16.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a2e3aca2a8277e61257cd3b1c154b1dd0d782b1ae3d38b7fa37cbe3feb531791 -size 41943 diff --git a/responses-0.17.0.tar.gz b/responses-0.17.0.tar.gz new file mode 100644 index 0000000..7e933dc --- /dev/null +++ b/responses-0.17.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec675e080d06bf8d1fb5e5a68a1e5cd0df46b09c78230315f650af5e4036bec7 +size 45064