commit ea8c849463682341d18f67c3cf1bc7ad6f1e4efc839d0f518488df88adf872db Author: Pascal Bleser Date: Sat Mar 5 07:03:08 2011 +0000 0.7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyquery?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/34bdaa6c7908.tar.bz2 b/34bdaa6c7908.tar.bz2 new file mode 100644 index 0000000..4423efb --- /dev/null +++ b/34bdaa6c7908.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d42c48af4792531dc87c7e68a4080c1bb3f25201cdd51314615a745e1a600914 +size 21405 diff --git a/python-pyquery.changes b/python-pyquery.changes new file mode 100644 index 0000000..fc7d6b3 --- /dev/null +++ b/python-pyquery.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Mar 05 07:02:11 CET 2011 - pascal.bleser@opensuse.org + +- initial version (0.7) + diff --git a/python-pyquery.spec b/python-pyquery.spec new file mode 100644 index 0000000..a66d121 --- /dev/null +++ b/python-pyquery.spec @@ -0,0 +1,59 @@ +# vim: set sw=4 ts=4 et: + +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} + +Name: python-pyquery +Version: 0.7 +Release: 0 +Summary: XML Querying Module for Python +Source: https://bitbucket.org/olauzanne/pyquery/get/34bdaa6c7908.tar.bz2 +URL: https://bitbucket.org/olauzanne/pyquery/ +Group: Development/Libraries/Python +License: BSD3c +BuildRoot: %{_tmppath}/build-%{name}-%{version} +BuildRequires: python-devel +BuildRequires: python-setuptools +%if 0%{?suse_version} >= 1120 +BuildArch: noarch +%endif +%py_requires + +%description +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. + +This is not (or at least not yet) a library to produce or interact with +javascript code. I just liked the jquery API and I missed it in python so I +told myself “Hey let’s make jquery in python”. This is the result. + +It can be used for many purposes, one idea that I might try in the future is to +use it for templating with pure http templates that you modify using pyquery. I +can also be used for web scrapping or for theming applications with +Deliverance. + +%prep +%setup -q -n olauzanne-pyquery-34bdaa6c7908 + +%build +%__python ./setup.py build + +%install +%__python ./setup.py install \ + --prefix="%{_prefix}" \ + --root="%{buildroot}" \ + --record-rpm=files.lst + +%__rm "%{buildroot}%{python_sitelib}/pyquery"/*.txt +%__perl -ni -e 'print unless m,\.txt$,' files.lst + +%clean +%{?buildroot:%__rm -rf "%{buildroot}"} + +%files -f files.lst +%defattr(-,root,root) +%doc LICENSE.txt +%doc docs/*.txt + +