forked from pool/python-pyquery
Remove dependency on unittest2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyquery?expand=0&rev=25
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pyquery
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,37 +16,34 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# NOTE: circular dependency between python-pyquery and python-WebTest
|
||||
# enable testing with a build conditional (off by default):
|
||||
%bcond_with test
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pyquery
|
||||
Version: 1.2.17
|
||||
Version: 1.4.0
|
||||
Release: 0
|
||||
Summary: A jQuery-like library for python
|
||||
License: BSD-3-Clause
|
||||
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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: %{python_module cssselect}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module lxml >= 2.1}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-cssselect
|
||||
Requires: python-lxml >= 2.1
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module WebOb}
|
||||
BuildRequires: %{python_module WebTest}
|
||||
BuildRequires: %{python_module beautifulsoup}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module restkit}
|
||||
BuildRequires: %{python_module unittest2}
|
||||
%endif
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-cssselect
|
||||
Requires: python-lxml >= 2.1
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -62,6 +59,7 @@ XML and HTML manipulation.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
@@ -69,7 +67,6 @@ nosetests -q tests
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES.rst README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
|
Reference in New Issue
Block a user