- 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
This commit is contained in:
Thomas Bechtold 2019-04-11 15:58:49 +00:00 committed by Git OBS Bridge
parent f74e4b7f75
commit 5a88eddbca
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Apr 11 15:55:25 UTC 2019 - Thomas Bechtold <tbechtold@suse.com>
- 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 <dimstar@opensuse.org> Thu Jan 17 15:54:39 UTC 2019 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -41,9 +41,11 @@ Source: pyparsing-%{version}.tar.xz
Patch0: nose_to_unittest.patch Patch0: nose_to_unittest.patch
BuildRequires: %{python_module base} BuildRequires: %{python_module base}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
%if "%{flavor}" == "test"
# Not necessary for python3, but tests fail with the standard unittest # Not necessary for python3, but tests fail with the standard unittest
# and python 2.7 # and python 2.7
BuildRequires: %{python_module unittest2} BuildRequires: %{python_module unittest2}
%endif
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
#!BuildIgnore: python2-pyparsing #!BuildIgnore: python2-pyparsing