Compare commits
12 Commits
ebabab7e4b
...
1e1b6d6caf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e1b6d6caf | ||
|
|
d95232032b | ||
|
|
984e5cce2c | ||
|
|
360591178f | ||
|
|
363ea74e5a | ||
|
|
306cf225c8 | ||
|
|
5d15d2611f | ||
|
|
3f95385f7f | ||
|
|
a2600a2a13 | ||
|
|
97d693388f | ||
|
|
0c7d420193 | ||
|
|
94f9dbbc9a |
25
README.en.md
25
README.en.md
@ -1,25 +0,0 @@
|
|||||||
===================================
|
|
||||||
cssselect: CSS Selectors for Python
|
|
||||||
===================================
|
|
||||||
|
|
||||||
*cssselect* parses `CSS3 Selectors`_ and translate them to `XPath 1.0`_
|
|
||||||
expressions. Such expressions can be used in lxml_ or another XPath engine
|
|
||||||
to find the matching elements in an XML or HTML document.
|
|
||||||
|
|
||||||
This module used to live inside of lxml as ``lxml.cssselect`` before it was
|
|
||||||
extracted as a stand-alone project.
|
|
||||||
|
|
||||||
.. _CSS3 Selectors: https://www.w3.org/TR/css3-selectors/
|
|
||||||
.. _XPath 1.0: https://www.w3.org/TR/xpath/
|
|
||||||
.. _lxml: http://lxml.de/
|
|
||||||
|
|
||||||
|
|
||||||
Quick facts:
|
|
||||||
|
|
||||||
* Free software: BSD licensed
|
|
||||||
* Compatible with Python 2.6+ and 3.2+
|
|
||||||
* Latest documentation `on python.org <https://pythonhosted.org/cssselect/>`_
|
|
||||||
* Source, issues and pull requests `on Github
|
|
||||||
<https://github.com/scrapy/cssselect>`_
|
|
||||||
* Releases `on PyPI <http://pypi.python.org/pypi/cssselect>`_
|
|
||||||
* Install with ``pip install cssselect``
|
|
||||||
Binary file not shown.
BIN
cssselect-1.2.0.tar.gz
Normal file
BIN
cssselect-1.2.0.tar.gz
Normal file
Binary file not shown.
@ -1,10 +1,10 @@
|
|||||||
%global pkgname cssselect
|
%global pkgname cssselect
|
||||||
|
|
||||||
Name: python-cssselect
|
Name: python-cssselect
|
||||||
Version: 1.1.0
|
Version: 1.2.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: CSS Selectors for Python
|
Summary: CSS Selectors for Python
|
||||||
License: BSD
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/scrapy/cssselect
|
URL: https://github.com/scrapy/cssselect
|
||||||
Source0: %{url}/archive/v%{version}/%{pkgname}-%{version}.tar.gz
|
Source0: %{url}/archive/v%{version}/%{pkgname}-%{version}.tar.gz
|
||||||
|
|
||||||
@ -16,16 +16,6 @@ Such expressions can be used in lxml or another XPath engine to find the
|
|||||||
matching elements in an XML or HTML document.
|
matching elements in an XML or HTML document.
|
||||||
|
|
||||||
|
|
||||||
%package -n python2-%{pkgname}
|
|
||||||
%{?python_provide:%python_provide python2-%{pkgname}}
|
|
||||||
Summary: %{summary}
|
|
||||||
BuildRequires: python2-devel python2-setuptools
|
|
||||||
|
|
||||||
%description -n python2-%{pkgname}
|
|
||||||
Cssselect parses CSS3 Selectors and translates them to XPath 1.0 expressions.
|
|
||||||
Such expressions can be used in lxml or another XPath engine to find the
|
|
||||||
matching elements in an XML or HTML document. This is the Python 2 version.
|
|
||||||
|
|
||||||
%package -n python3-%{pkgname}
|
%package -n python3-%{pkgname}
|
||||||
%{?python_provide:%python_provide python3-%{pkgname}}
|
%{?python_provide:%python_provide python3-%{pkgname}}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
@ -41,26 +31,27 @@ matching elements in an XML or HTML document. This is the Python 3 version.
|
|||||||
%autosetup -n %{pkgname}-%{version}
|
%autosetup -n %{pkgname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-%{pkgname}
|
|
||||||
%doc README.rst
|
|
||||||
%license LICENSE
|
|
||||||
%{python2_sitelib}/%{pkgname}*/
|
|
||||||
|
|
||||||
%files -n python3-%{pkgname}
|
%files -n python3-%{pkgname}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/%{pkgname}*/
|
%{python3_sitelib}/%{pkgname}*/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Jul Thu 16 2020 yanglongkang <yanglongkang@huawei.com> - 1.1.0-1
|
* Mon Feb 20 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 1.2.0-1
|
||||||
|
- Update package to version 1.2.0
|
||||||
|
|
||||||
|
* Tue May 10 2022 wulei <wulei80@h-partners.com> - 1.1.0-3
|
||||||
|
- License compliance rectification
|
||||||
|
|
||||||
|
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 1.1.0-2
|
||||||
|
- remove python2 dependency
|
||||||
|
|
||||||
|
* Thu Jul 16 2020 yanglongkang <yanglongkang@huawei.com> - 1.1.0-1
|
||||||
- update package to 1.1.0
|
- update package to 1.1.0
|
||||||
|
|
||||||
* Sat Feb 22 2020 hy-euler <eulerstoragemt@huawei.com> - 0.9.2-10
|
* Sat Feb 22 2020 hy-euler <eulerstoragemt@huawei.com> - 0.9.2-10
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user