forked from pool/python-pyquery
- Use _multibuild to run tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyquery?expand=0&rev=30
This commit is contained in:
committed by
Git OBS Bridge
parent
e85d116a82
commit
659c21ad9a
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 25 09:00:58 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Use _multibuild to run tests
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 25 03:24:33 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
Mon Feb 25 03:24:33 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@@ -17,10 +17,15 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
# NOTE: circular dependency between python-pyquery and python-WebTest
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
# enable testing with a build conditional (off by default):
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
Name: python-pyquery
|
%endif
|
||||||
|
Name: python-pyquery%{psuffix}
|
||||||
Version: 1.4.0
|
Version: 1.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A jQuery-like library for python
|
Summary: A jQuery-like library for python
|
||||||
@@ -28,11 +33,10 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: http://pypi.python.org/pypi/pyquery
|
URL: http://pypi.python.org/pypi/pyquery
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pyquery/pyquery-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pyquery/pyquery-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module coverage}
|
||||||
BuildRequires: %{python_module cssselect > 0.7.9}
|
BuildRequires: %{python_module cssselect > 0.7.9}
|
||||||
BuildRequires: %{python_module lxml >= 2.1}
|
BuildRequires: %{python_module lxml >= 2.1}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
# seg fault without coverage
|
|
||||||
BuildRequires: %{python_module coverage}
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-cssselect > 0.7.9
|
Requires: python-cssselect > 0.7.9
|
||||||
@@ -58,8 +62,10 @@ XML and HTML manipulation.
|
|||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
@@ -67,9 +73,11 @@ XML and HTML manipulation.
|
|||||||
%python_exec -m nose tests -e test_get
|
%python_exec -m nose tests -e test_get
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user