!5 remove python2 dependency

From: @xinghe_1
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-10-30 15:44:30 +08:00 committed by Gitee
commit 0a1e6cfc46

View File

@ -1,29 +1,17 @@
Name: python-pyquery Name: python-pyquery
Version: 1.4.1 Version: 1.4.1
Release: 1 Release: 2
Summary: A jquery-like library for python Summary: A jquery-like library for python
License: BSD License: BSD
URL: http://pypi.python.org/pypi/pyquery URL: http://pypi.python.org/pypi/pyquery
Source0: https://files.pythonhosted.org/packages/6b/94/4663206f709ac32446e995227cc5be34d5e2aa74ba8f92b8083c2740d3d7/pyquery-1.4.1.tar.gz Source0: https://files.pythonhosted.org/packages/6b/94/4663206f709ac32446e995227cc5be34d5e2aa74ba8f92b8083c2740d3d7/pyquery-1.4.1.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel, python2-setuptools
%description %description
pyquery allows you to make jquery queries on xml documents. pyquery allows you to make jquery queries on xml documents.
The API is as much as possible the similar to jquery. The API is as much as possible the similar to jquery.
pyquery uses lxml for fast xml and html manipulation. pyquery uses lxml for fast xml and html manipulation.
%package -n python2-pyquery
%{?python_provide:%python_provide python2-pyquery}
Summary: A jquery-like library for python
Requires: python2-lxml >= 2.1, python2-cssselect
%description -n python2-pyquery
pyquery allows you to make jquery queries on xml documents.
The API is as much as possible the similar to jquery.
pyquery uses lxml for fast xml and html manipulation.
%package -n python3-pyquery %package -n python3-pyquery
%{?python_provide:%python_provide python3-pyquery} %{?python_provide:%python_provide python3-pyquery}
Summary: A jquery-like library for python Summary: A jquery-like library for python
@ -44,25 +32,19 @@ find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
%build %build
cd %{py3dir} cd %{py3dir}
%py3_build %py3_build
cd -
%py2_build
%install %install
cd %{py3dir} cd %{py3dir}
%py3_install %py3_install
cd -
%py2_install
%files -n python2-pyquery
%doc README.rst
%{python2_sitelib}/*
%files -n python3-pyquery %files -n python3-pyquery
%doc README.rst %doc README.rst
%{python3_sitelib}/* %{python3_sitelib}/*
%changelog %changelog
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 1.4.1-2
- remove python2 dependency
* Thu Jul 16 2020 jixinjie <jixinjie@huawei.com> - 1.4.1-1 * Thu Jul 16 2020 jixinjie <jixinjie@huawei.com> - 1.4.1-1
- update package to 1.4.1 - update package to 1.4.1