From e3606f0fc6646515de22b29af02168f019ccf794 Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Oct 14 2016 13:45:05 +0000 Subject: fix BuildRequires for new tests in latest upstream 0.32 --- diff --git a/osbs-client.spec b/osbs-client.spec index 9972238..e98f02f 100644 --- a/osbs-client.spec +++ b/osbs-client.spec @@ -80,6 +80,7 @@ BuildRequires: python-flexmock BuildRequires: python-six BuildRequires: python-dockerfile-parse BuildRequires: python-pycurl +BuildRequires: python2-pytest-runner %endif # with_check %if 0%{?with_python3} @@ -95,6 +96,7 @@ BuildRequires: python3-flexmock BuildRequires: python3-six BuildRequires: python3-dockerfile-parse BuildRequires: python3-pycurl +BuildRequires: python3-pytest-runner %endif # with_check %endif # with_python3 @@ -166,6 +168,12 @@ This package contains osbs Python 3 bindings. %patch0 -p1 rm tests/test_http.py +%if ! 0%{?with_check} +# setup now requires pytest-runner which causes the build to fail even when +# we're not running checks +sed -i '/setup_requires/d' setup.py +%endif + %build %py2_build