- Condition py2 only dependencies so we do not pull them on py3

only scenario

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=49
This commit is contained in:
Tomáš Chvátal 2018-01-17 15:47:04 +00:00 committed by Git OBS Bridge
parent 3729e431e2
commit 69496ab3ef
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 17 15:46:40 UTC 2018 - tchvatal@suse.com
- Condition py2 only dependencies so we do not pull them on py3
only scenario
-------------------------------------------------------------------
Sat Jan 6 17:11:29 UTC 2018 - arun@gmx.de

View File

@ -22,6 +22,7 @@
%else
%define oldpython python
%endif
%bcond_without python2
Name: python-hypothesis
Version: 3.44.9
Release: 0
@ -43,8 +44,6 @@ BuildRequires: %{python_module pytest >= 2.8.0}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-enum34
BuildRequires: python-ipaddress
BuildRequires: python-rpm-macros
Requires: python-attrs
Requires: python-coverage
@ -55,6 +54,10 @@ Recommends: python-pandas
Recommends: python-pytest >= 2.8.0
Recommends: python-pytz
BuildArch: noarch
%if %{with python2}
BuildRequires: python-enum34
BuildRequires: python-ipaddress
%endif
%ifpython2
Requires: %{oldpython}-enum34
%endif