From 69496ab3ef7165bae84f129e598ec2cf236cc44b8b877bc438f2de8f528ac034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 17 Jan 2018 15:47:04 +0000 Subject: [PATCH] - 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 --- python-hypothesis.changes | 6 ++++++ python-hypothesis.spec | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/python-hypothesis.changes b/python-hypothesis.changes index b2ba14c..e9f4633 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -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 diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 87624e8..a43222e 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -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