0.7
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyquery?expand=0&rev=1
This commit is contained in:
commit
ea8c849463
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
34bdaa6c7908.tar.bz2
Normal file
3
34bdaa6c7908.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d42c48af4792531dc87c7e68a4080c1bb3f25201cdd51314615a745e1a600914
|
||||
size 21405
|
5
python-pyquery.changes
Normal file
5
python-pyquery.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 05 07:02:11 CET 2011 - pascal.bleser@opensuse.org
|
||||
|
||||
- initial version (0.7)
|
||||
|
59
python-pyquery.spec
Normal file
59
python-pyquery.spec
Normal file
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user