From 5a88eddbcaffcc269ce2abed8ec3ee8594b650151e1c5f1bc6963cabea059095 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Thu, 11 Apr 2019 15:58:49 +0000 Subject: [PATCH] - Do not BuildRequire python-unittest2 when no tests are executed. This breaks a build cycle for pyparsing->unittest2->traceback2->pbr-> Pygments->pytest->setuptools_scm->packaging which needs pyparsing OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyparsing?expand=0&rev=61 --- python-pyparsing.changes | 7 +++++++ python-pyparsing.spec | 2 ++ 2 files changed, 9 insertions(+) diff --git a/python-pyparsing.changes b/python-pyparsing.changes index fe45d50..b5b4713 100644 --- a/python-pyparsing.changes +++ b/python-pyparsing.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Apr 11 15:55:25 UTC 2019 - Thomas Bechtold + +- Do not BuildRequire python-unittest2 when no tests are executed. + This breaks a build cycle for pyparsing->unittest2->traceback2->pbr-> + Pygments->pytest->setuptools_scm->packaging which needs pyparsing + ------------------------------------------------------------------- Thu Jan 17 15:54:39 UTC 2019 - Dominique Leuenberger diff --git a/python-pyparsing.spec b/python-pyparsing.spec index 46ce3e5..67c09eb 100644 --- a/python-pyparsing.spec +++ b/python-pyparsing.spec @@ -41,9 +41,11 @@ Source: pyparsing-%{version}.tar.xz Patch0: nose_to_unittest.patch BuildRequires: %{python_module base} BuildRequires: %{python_module setuptools} +%if "%{flavor}" == "test" # Not necessary for python3, but tests fail with the standard unittest # and python 2.7 BuildRequires: %{python_module unittest2} +%endif BuildRequires: fdupes BuildRequires: python-rpm-macros #!BuildIgnore: python2-pyparsing