forked from pool/python-pyquery
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
This commit is contained in:
parent
1538b24bc7
commit
0bf73a4d03
@ -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
|
||||
|
||||
|
@ -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,-)
|
||||
|
Loading…
x
Reference in New Issue
Block a user