diff --git a/README.en.md b/README.en.md index cf30a77..155149d 100644 --- a/README.en.md +++ b/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 `_ +* Source, issues and pull requests `on Github + `_ +* Releases `on PyPI `_ +* Install with ``pip install cssselect`` diff --git a/cssselect-0.9.2.tar.gz b/cssselect-0.9.2.tar.gz new file mode 100644 index 0000000..4440c68 Binary files /dev/null and b/cssselect-0.9.2.tar.gz differ diff --git a/python-cssselect.spec b/python-cssselect.spec new file mode 100644 index 0000000..e3e90d0 --- /dev/null +++ b/python-cssselect.spec @@ -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 - 0.9.2-10 +- init package