14
0

- update to 0.10.6

- drop tidy-py_modules.patch
- use %pytest macro
 * ConnectionError's raised by responses now indicate which request
    path/method failed to match a mock.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-responses?expand=0&rev=16
This commit is contained in:
2019-05-14 14:19:32 +00:00
committed by Git OBS Bridge
parent fb4314f1b7
commit afa48d07a4
5 changed files with 16 additions and 23 deletions

View File

@@ -18,14 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-responses
Version: 0.10.5
Version: 0.10.6
Release: 0
Summary: A utility library for mocking out the `requests` Python library
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/getsentry/responses
Source: https://files.pythonhosted.org/packages/source/r/responses/responses-%{version}.tar.gz
Patch: tidy-py_modules.patch
BuildRequires: %{python_module setuptools}
# test requirements
BuildRequires: %{python_module cookies}
@@ -35,13 +34,13 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.0}
BuildRequires: %{python_module six}
BuildRequires: python-rpm-macros
Requires: python-cookies
Requires: python-requests >= 2.0
Requires: python-six
Suggests: python-pytest
BuildArch: noarch
%ifpython2
Requires: python-mock
Requires: python2-cookies
Requires: python2-mock
%endif
%python_subpackages
@@ -52,9 +51,6 @@ about the library.
%prep
%setup -q -n responses-%{version}
# Remove test module from distribution before a .pyc is created
# https://github.com/getsentry/responses/issues/256
%patch -p0
%build
%python_build
@@ -63,8 +59,7 @@ about the library.
%python_install
%check
# `setup.py test` requires additional unnecessary packages
%python_exec -m pytest
%pytest
%files %{python_files}
%doc CHANGES README.rst