From 29b555c50c2f26c490fe6d2028760299cc178706484770141998a93d183eca93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Fri, 9 Mar 2018 08:05:41 +0000 Subject: [PATCH] Accepting request 584620 from home:mimi_vx:branches:devel:languages:python - Fix python2 requires OBS-URL: https://build.opensuse.org/request/show/584620 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-responses?expand=0&rev=5 --- python-responses.changes | 5 +++++ python-responses.spec | 24 ++++++++++++------------ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/python-responses.changes b/python-responses.changes index 394eef5..a5458d2 100644 --- a/python-responses.changes +++ b/python-responses.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 9 08:03:43 UTC 2018 - mimi.vx@gmail.com + +- Fix python2 requires + ------------------------------------------------------------------- Fri Jan 12 00:37:13 UTC 2018 - mimi.vx@gmail.com diff --git a/python-responses.spec b/python-responses.spec index fbd46ef..a420d5c 100644 --- a/python-responses.spec +++ b/python-responses.spec @@ -26,29 +26,29 @@ Group: Development/Languages/Python Url: https://github.com/getsentry/responses Source: https://files.pythonhosted.org/packages/source/r/responses/responses-%{version}.tar.gz BuildRequires: %{python_module cookies} -BuildRequires: %{python_module devel} -BuildRequires: %{python_module requests >= 2.0} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six} # test requirements} BuildRequires: %{python_module coverage >= 3.7.1} +BuildRequires: %{python_module devel} BuildRequires: %{python_module flake8} BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest-localserver} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests >= 2.0} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} BuildRequires: python-rpm-macros Requires: python-cookies Requires: python-requests >= 2.0 Requires: python-six -Suggests: python-pytest -Suggests: python-pytest-localserver Suggests: python-coverage >= 3.7.1 -Suggests: python-pytest-cov Suggests: python-flake8 -Suggests: python-mock -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Suggests: python-pytest +Suggests: python-pytest-cov +Suggests: python-pytest-localserver BuildArch: noarch - +%ifpython2 +Requires: python-mock +%endif %python_subpackages %description @@ -66,8 +66,8 @@ about the library. %python_install %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES LICENSE README.rst +%doc CHANGES README.rst +%license LICENSE %{python_sitelib}/* %changelog