From 0bf73a4d0352ebb1d2542dd4bc30623a05d738bc088ad9328997bada85e81d10 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 20 Jul 2015 06:54:23 +0000 Subject: [PATCH] Accepting request 314902 from home:benoit_monin:branches:devel:languages:python add a build conditional for the test: work around a circular dependency between python-pyquery and python-WebTest OBS-URL: https://build.opensuse.org/request/show/314902 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyquery?expand=0&rev=21 --- python-pyquery.changes | 6 ++++++ python-pyquery.spec | 18 +++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/python-pyquery.changes b/python-pyquery.changes index d0ddc7e..60aa3a6 100644 --- a/python-pyquery.changes +++ b/python-pyquery.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 2 18:11:08 UTC 2015 - benoit.monin@gmx.fr + +- add a build conditional for the test: work around a circular + dependency between python-pyquery and python-WebTest + ------------------------------------------------------------------- Mon May 11 18:28:15 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-pyquery.spec b/python-pyquery.spec index 0663c8d..1d05a26 100644 --- a/python-pyquery.spec +++ b/python-pyquery.spec @@ -16,6 +16,10 @@ # +# NOTE: circular dependency between python-pyquery and python-WebTest +# enable testing with a build conditional (off by default): +%bcond_with test + Name: python-pyquery Version: 1.2.9 Release: 0 @@ -24,17 +28,19 @@ License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/gawel/pyquery Source: http://pypi.python.org/packages/source/p/pyquery/pyquery-%{version}.zip -BuildRequires: python-WebOb -BuildRequires: python-WebTest -BuildRequires: python-beautifulsoup BuildRequires: python-cssselect BuildRequires: python-devel BuildRequires: python-lxml >= 2.1 +BuildRequires: python-setuptools +BuildRequires: unzip +%if %{with test} +BuildRequires: python-WebOb +BuildRequires: python-WebTest +BuildRequires: python-beautifulsoup BuildRequires: python-nose BuildRequires: python-restkit -BuildRequires: python-setuptools BuildRequires: python-unittest2 -BuildRequires: unzip +%endif Requires: python-cssselect Requires: python-lxml >= 2.1 BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -59,8 +65,10 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%if %{with test} %check nosetests -q tests +%endif %files %defattr(-,root,root,-)