forked from pool/python-pyquery
Accepting request 678596 from home:jayvdb:pyexcel
- Add %license - Run test suite on both Python 2 & 3 - Remove outdated build dependencies - Add minimum versions - Add python-coverage as build dependency as nose segfaults when missing OBS-URL: https://build.opensuse.org/request/show/678596 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyquery?expand=0&rev=29
This commit is contained in:
committed by
Git OBS Bridge
parent
35038e1049
commit
e85d116a82
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 25 03:24:33 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- Add %license
|
||||||
|
- Run test suite on both Python 2 & 3
|
||||||
|
- Remove outdated build dependencies
|
||||||
|
- Add minimum versions
|
||||||
|
- Add python-coverage as build dependency as nose segfaults when missing
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 4 12:52:42 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
Tue Dec 4 12:52:42 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyquery
|
# spec file for package python-pyquery
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -28,20 +28,21 @@ 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 cssselect}
|
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
|
Requires: python-cssselect > 0.7.9
|
||||||
Requires: python-lxml >= 2.1
|
Requires: python-lxml >= 2.1
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module WebOb}
|
BuildRequires: %{python_module WebOb > 1.1.9}
|
||||||
BuildRequires: %{python_module WebTest}
|
BuildRequires: %{python_module WebTest}
|
||||||
BuildRequires: %{python_module beautifulsoup}
|
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module nose}
|
||||||
BuildRequires: %{python_module restkit}
|
BuildRequires: %{python_module requests}
|
||||||
%endif
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -62,10 +63,12 @@ XML and HTML manipulation.
|
|||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
nosetests -q tests
|
# Disable tests which perform live fetch
|
||||||
|
%python_exec -m nose tests -e test_get
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
|
%license LICENSE.txt
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user