From 350269737db6a53896aff1487e20e2e4ba81b83b170813c4ca2c22c5d715eb4e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 26 Oct 2021 20:58:17 +0000 Subject: [PATCH 1/2] - update to 0.14.0: * Added `responses.matchers`. * Moved `responses.json_params_matcher` to `responses.matchers.json_param_matcher` * Moved `responses.urlencoded_params_matcher` to `responses.matchers.urlencoded_param_matcher` * Added `responses.query_params_matcher`. This matcher allows you to match query strings with a dictionary. * Added `auto_calculate_content_length` option to `responses.add()`. When enabled, this option will generate a `Content-Length` header based on the number of bytes in the response body. * Improve typing support * Use URLs with normalized hostnames when comparing URLs. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-responses?expand=0&rev=33 --- python-responses.changes | 16 ++++++++++++++++ python-responses.spec | 2 +- responses-0.13.3.tar.gz | 3 --- responses-0.14.0.tar.gz | 3 +++ 4 files changed, 20 insertions(+), 4 deletions(-) delete mode 100644 responses-0.13.3.tar.gz create mode 100644 responses-0.14.0.tar.gz diff --git a/python-responses.changes b/python-responses.changes index 1a3bdb9..b58fe7e 100644 --- a/python-responses.changes +++ b/python-responses.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Tue Oct 26 20:49:46 UTC 2021 - Dirk Müller + +- update to 0.14.0: + * Added `responses.matchers`. + * Moved `responses.json_params_matcher` to `responses.matchers.json_param_matcher` + * Moved `responses.urlencoded_params_matcher` to + `responses.matchers.urlencoded_param_matcher` + * Added `responses.query_params_matcher`. This matcher allows you to match + query strings with a dictionary. + * Added `auto_calculate_content_length` option to `responses.add()`. When + enabled, this option will generate a `Content-Length` header + based on the number of bytes in the response body. + * Improve typing support + * Use URLs with normalized hostnames when comparing URLs. + ------------------------------------------------------------------- Tue May 18 22:14:04 UTC 2021 - Dirk Müller diff --git a/python-responses.spec b/python-responses.spec index da913bc..036b275 100644 --- a/python-responses.spec +++ b/python-responses.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-responses -Version: 0.13.3 +Version: 0.14.0 Release: 0 Summary: A utility library for mocking out the `requests` Python library License: Apache-2.0 diff --git a/responses-0.13.3.tar.gz b/responses-0.13.3.tar.gz deleted file mode 100644 index 45cf86a..0000000 --- a/responses-0.13.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:18a5b88eb24143adbf2b4100f328a2f5bfa72fbdacf12d97d41f07c26c45553d -size 30327 diff --git a/responses-0.14.0.tar.gz b/responses-0.14.0.tar.gz new file mode 100644 index 0000000..88c9321 --- /dev/null +++ b/responses-0.14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93f774a762ee0e27c0d9d7e06227aeda9ff9f5f69392f72bb6c6b73f8763563e +size 32666 From d8696275cc8267e7d3d24b04abf589bbb48bffb33285fd949af0a5166ec10683 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 30 Oct 2021 20:38:38 +0000 Subject: [PATCH 2/2] - update to 0.15.0: * Added `responses.PassthroughResponse` and `reponses.BaseResponse.passthrough`. These features make building passthrough responses more compatible with dynamcially generated response objects. * Removed the unused ``_is_redirect()`` function from responses internals. * Added `responses.matchers.request_kwargs_matcher`. This matcher allows you to match additional request arguments like `stream`. * Added `responses.matchers.multipart_matcher`. This matcher allows you to match request body and headers for ``multipart/form-data`` data * Added `responses.matchers.query_string_matcher`. This matcher allows you to match request query string, similar to `responses.matchers.query_param_matcher`. * Added `responses.matchers.header_matcher()`. This matcher allows you to match request headers. By default only headers supplied to `header_matcher()` are checked. You can make header matching exhaustive by passing `strict_match=True` to `header_matcher()`. * Changed all matchers output message in case of mismatch. Now message is aligned between Python2 and Python3 versions * Deprecate ``stream`` argument in ``Response`` and ``CallbackResponse`` * Added Python 3.10 support OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-responses?expand=0&rev=34 --- python-responses.changes | 22 ++++++++++++++++++++++ python-responses.spec | 2 +- responses-0.14.0.tar.gz | 3 --- responses-0.15.0.tar.gz | 3 +++ 4 files changed, 26 insertions(+), 4 deletions(-) delete mode 100644 responses-0.14.0.tar.gz create mode 100644 responses-0.15.0.tar.gz diff --git a/python-responses.changes b/python-responses.changes index b58fe7e..2a33ec7 100644 --- a/python-responses.changes +++ b/python-responses.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Sat Oct 30 20:38:16 UTC 2021 - Dirk Müller + +- update to 0.15.0: + * Added `responses.PassthroughResponse` and + `reponses.BaseResponse.passthrough`. These features make building passthrough + responses more compatible with dynamcially generated response objects. + * Removed the unused ``_is_redirect()`` function from responses internals. + * Added `responses.matchers.request_kwargs_matcher`. This matcher allows you + to match additional request arguments like `stream`. + * Added `responses.matchers.multipart_matcher`. This matcher allows you + to match request body and headers for ``multipart/form-data`` data + * Added `responses.matchers.query_string_matcher`. This matcher allows you + to match request query string, similar to `responses.matchers.query_param_matcher`. + * Added `responses.matchers.header_matcher()`. This matcher allows you to match + request headers. By default only headers supplied to `header_matcher()` are checked. + You can make header matching exhaustive by passing `strict_match=True` to `header_matcher()`. + * Changed all matchers output message in case of mismatch. Now message is aligned + between Python2 and Python3 versions + * Deprecate ``stream`` argument in ``Response`` and ``CallbackResponse`` + * Added Python 3.10 support + ------------------------------------------------------------------- Tue Oct 26 20:49:46 UTC 2021 - Dirk Müller diff --git a/python-responses.spec b/python-responses.spec index 036b275..4e9c44b 100644 --- a/python-responses.spec +++ b/python-responses.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-responses -Version: 0.14.0 +Version: 0.15.0 Release: 0 Summary: A utility library for mocking out the `requests` Python library License: Apache-2.0 diff --git a/responses-0.14.0.tar.gz b/responses-0.14.0.tar.gz deleted file mode 100644 index 88c9321..0000000 --- a/responses-0.14.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:93f774a762ee0e27c0d9d7e06227aeda9ff9f5f69392f72bb6c6b73f8763563e -size 32666 diff --git a/responses-0.15.0.tar.gz b/responses-0.15.0.tar.gz new file mode 100644 index 0000000..482d875 --- /dev/null +++ b/responses-0.15.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:866757987d1962aa908d9c8b3185739faefd72a359e95459de0c2e4e5369c9b2 +size 37965