add new package for python-pyquery
This commit is contained in:
parent
6004e1313b
commit
1c863808df
49
README.en.md
49
README.en.md
@ -1,36 +1,25 @@
|
||||
# python-cssselect
|
||||
===================================
|
||||
cssselect: CSS Selectors for Python
|
||||
===================================
|
||||
|
||||
#### Description
|
||||
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.
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
This module used to live inside of lxml as ``lxml.cssselect`` before it was
|
||||
extracted as a stand-alone project.
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
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
|
||||
.. _CSS3 Selectors: https://www.w3.org/TR/css3-selectors/
|
||||
.. _XPath 1.0: https://www.w3.org/TR/xpath/
|
||||
.. _lxml: http://lxml.de/
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
Quick facts:
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
* 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``
|
||||
|
||||
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