!1 add python-cssselect for python-pyquery
Merge pull request !1 from hy/work
This commit is contained in:
commit
7d495498b6
49
README.en.md
49
README.en.md
@ -1,36 +1,25 @@
|
|||||||
# python-cssselect
|
===================================
|
||||||
|
cssselect: CSS Selectors for Python
|
||||||
|
===================================
|
||||||
|
|
||||||
#### Description
|
*cssselect* parses `CSS3 Selectors`_ and translate them to `XPath 1.0`_
|
||||||
CSS Selectors for Python
|
expressions. Such expressions can be used in lxml_ or another XPath engine
|
||||||
|
to find the matching elements in an XML or HTML document.
|
||||||
|
|
||||||
#### Software Architecture
|
This module used to live inside of lxml as ``lxml.cssselect`` before it was
|
||||||
Software architecture description
|
extracted as a stand-alone project.
|
||||||
|
|
||||||
#### Installation
|
.. _CSS3 Selectors: https://www.w3.org/TR/css3-selectors/
|
||||||
|
.. _XPath 1.0: https://www.w3.org/TR/xpath/
|
||||||
1. xxxx
|
.. _lxml: http://lxml.de/
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
|
||||||
|
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
Quick facts:
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
* Free software: BSD licensed
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
* Compatible with Python 2.6+ and 3.2+
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
* Latest documentation `on python.org <https://pythonhosted.org/cssselect/>`_
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
* Source, issues and pull requests `on Github
|
||||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
<https://github.com/scrapy/cssselect>`_
|
||||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
* Releases `on PyPI <http://pypi.python.org/pypi/cssselect>`_
|
||||||
|
* Install with ``pip install cssselect``
|
||||||
|
|||||||
BIN
cssselect-0.9.2.tar.gz
Normal file
BIN
cssselect-0.9.2.tar.gz
Normal file
Binary file not shown.
64
python-cssselect.spec
Normal file
64
python-cssselect.spec
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
%global pkgname cssselect
|
||||||
|
|
||||||
|
Name: python-cssselect
|
||||||
|
Version: 0.9.2
|
||||||
|
Release: 10
|
||||||
|
Summary: CSS Selectors for Python
|
||||||
|
License: BSD
|
||||||
|
URL: https://github.com/scrapy/cssselect
|
||||||
|
Source0: %{url}/archive/v%{version}/%{pkgname}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
%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}
|
||||||
|
%{?python_provide:%python_provide python3-%{pkgname}}
|
||||||
|
Summary: %{summary}
|
||||||
|
BuildRequires: python3-devel python3-setuptools
|
||||||
|
|
||||||
|
%description -n python3-%{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 3 version.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{pkgname}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py2_build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py2_install
|
||||||
|
%py3_install
|
||||||
|
|
||||||
|
|
||||||
|
%files -n python2-%{pkgname}
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python2_sitelib}/%{pkgname}*/
|
||||||
|
|
||||||
|
%files -n python3-%{pkgname}
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python3_sitelib}/%{pkgname}*/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Feb 22 2020 hy-euler <eulerstoragemt@huawei.com> - 0.9.2-10
|
||||||
|
- init package
|
||||||
Loading…
x
Reference in New Issue
Block a user