Accepting request 786427 from home:pgajdos:python

- version update to 0.10.12
  - Fixed incorrect content-type in `add_callback()` when headers are provided as a list of tuples.
  - Fixed invalid README formatted.
  - Fixed string formatting in error message.
  - Added Python 3.8 support
  - Remove Python 3.4 from test suite matrix.
  - The `response.request` object now has a `params` attribute that contains the query string parameters from the request that was captured.
  - `add_passthru` now supports `re` pattern objects to match URLs.
  - ConnectionErrors raised by responses now include more details on the request that was attempted and the mocks registered.
  - Fixed regression with `add_callback()` and content-type header.
  - Fixed implicit dependency on urllib3>1.23.0
  - Fixed cookie parsing and enabled multiple cookies to be set by using a list of
    tuple values.
  - Added pypi badges to README.
  - Fixed formatting issues in README.
  - Quoted cookie values are returned correctly now.
  - Improved compatibility for pytest 5
  - Module level method names are no longer generated dynamically improving IDE navigation.

OBS-URL: https://build.opensuse.org/request/show/786427
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-responses?expand=0&rev=23
This commit is contained in:
Tomáš Chvátal 2020-03-19 11:22:15 +00:00 committed by Git OBS Bridge
parent 4136f0fe01
commit 9a30a3c3f4
4 changed files with 28 additions and 6 deletions

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Thu Mar 19 08:22:52 UTC 2020 - pgajdos@suse.com
- version update to 0.10.12
- Fixed incorrect content-type in `add_callback()` when headers are provided as a list of tuples.
- Fixed invalid README formatted.
- Fixed string formatting in error message.
- Added Python 3.8 support
- Remove Python 3.4 from test suite matrix.
- The `response.request` object now has a `params` attribute that contains the query string parameters from the request that was captured.
- `add_passthru` now supports `re` pattern objects to match URLs.
- ConnectionErrors raised by responses now include more details on the request that was attempted and the mocks registered.
- Fixed regression with `add_callback()` and content-type header.
- Fixed implicit dependency on urllib3>1.23.0
- Fixed cookie parsing and enabled multiple cookies to be set by using a list of
tuple values.
- Added pypi badges to README.
- Fixed formatting issues in README.
- Quoted cookie values are returned correctly now.
- Improved compatibility for pytest 5
- Module level method names are no longer generated dynamically improving IDE navigation.
-------------------------------------------------------------------
Thu Oct 17 20:08:20 UTC 2019 - Dirk Mueller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-responses
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 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.10.6
Version: 0.10.12
Release: 0
Summary: A utility library for mocking out the `requests` Python library
License: Apache-2.0
@ -28,8 +28,8 @@ Source: https://files.pythonhosted.org/packages/source/r/responses/respo
# test requirements
BuildRequires: %{python_module cookies}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest < 5.0}
BuildRequires: %{python_module pytest-localserver}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}

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

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

View File

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