From 30a2e5667ed3b27931dd3e34adbc90a7584840f568cc64a8e38ea6a45cb7501c Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 26 Mar 2013 08:00:03 +0000 Subject: [PATCH] Accepting request 161084 from home:apersaud:branches:devel:languages:python updated to 1.2.4 and added a python3 spec file. Can't create the python3 package in dlp, so whoever pulls this would have to do it... in case there are some problems with python3, I'm happy to fix them with another pull request once they're up. OBS-URL: https://build.opensuse.org/request/show/161084 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyquery?expand=0&rev=6 --- pyquery-1.1.1.tar.gz | 3 --- pyquery-1.2.4.tar.gz | 3 +++ python-pyquery.changes | 33 +++++++++++++++++++++++++ python-pyquery.spec | 15 +++++------ python3-pyquery.changes | 55 +++++++++++++++++++++++++++++++++++++++++ python3-pyquery.spec | 53 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 152 insertions(+), 10 deletions(-) delete mode 100644 pyquery-1.1.1.tar.gz create mode 100644 pyquery-1.2.4.tar.gz create mode 100644 python3-pyquery.changes create mode 100644 python3-pyquery.spec diff --git a/pyquery-1.1.1.tar.gz b/pyquery-1.1.1.tar.gz deleted file mode 100644 index 90608a8..0000000 --- a/pyquery-1.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4bdc4b5add5d65055aeb05860c24f53557540db1d945413093c74b554db62a44 -size 21108 diff --git a/pyquery-1.2.4.tar.gz b/pyquery-1.2.4.tar.gz new file mode 100644 index 0000000..79185c3 --- /dev/null +++ b/pyquery-1.2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c39f786c42430279eadf787f1ef06873f15c9acba2698c23dfd925ac7b169d7 +size 23999 diff --git a/python-pyquery.changes b/python-pyquery.changes index 79929a3..088759a 100644 --- a/python-pyquery.changes +++ b/python-pyquery.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Tue Mar 26 00:51:38 UTC 2013 - arun@gmx.de + +- updated copyright year in spec file + +------------------------------------------------------------------- +Tue Mar 26 00:49:40 UTC 2013 - arun@gmx.de + +- updated to 1.2.4 + changes as listed on https://pypi.python.org/pypi/pyquery: + + 1.2.4 + Moved to github. So a few files are renamed from .txt to .rst + Added .xhtml_to_html() and .remove_namespaces() + Use requests to fetch urls (if available) + Use restkit's proxy instead of Paste (which will die with py3) + Allow to open https urls + python2.5 is no longer supported (may work, but tests are broken) + 1.2.3 + Allow to pass this in .filter() callback + Add .contents() .items() + Add tox.ini + Bug fixes: fix #35 #55 #64 #66 + 1.2.2 + Fix cssselectpatch to match the newer implementation of cssselect. Fixes issue #62, #52 and #59 (Haoyu Bai) + Fix issue #37 (Caleb Burns) + 1.2.1 + Allow to use a custom css translator. + Fix issue 44: case problem with xml documents + 1.2 + PyQuery now use cssselect. See issue 43. + Fix issue 40: forward .html() extra arguments to lxml.etree.tostring + ------------------------------------------------------------------- Tue Jan 31 10:54:06 UTC 2012 - saschpe@suse.de diff --git a/python-pyquery.spec b/python-pyquery.spec index 1b4e614..94d2557 100644 --- a/python-pyquery.spec +++ b/python-pyquery.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyquery # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -11,21 +11,22 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: python-pyquery -Version: 1.1.1 +Version: 1.2.4 Release: 0 -License: BSD-3-Clause Summary: A jQuery-like library for python -Url: http://pypi.python.org/pypi/pyquery +License: BSD-3-Clause Group: Development/Languages/Python +Url: http://pypi.python.org/pypi/pyquery Source: http://pypi.python.org/packages/source/p/pyquery/pyquery-%{version}.tar.gz BuildRequires: python-devel -BuildRequires: python-lxml BuildRequires: python-distribute +BuildRequires: python-lxml Requires: python-lxml %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} @@ -49,7 +50,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root,-) -%doc CHANGES.txt README.txt +%doc CHANGES.rst README.rst %{python_sitelib}/* %changelog diff --git a/python3-pyquery.changes b/python3-pyquery.changes new file mode 100644 index 0000000..05565ed --- /dev/null +++ b/python3-pyquery.changes @@ -0,0 +1,55 @@ +------------------------------------------------------------------- +Tue Mar 26 00:59:46 UTC 2013 - arun@gmx.de + +- added spec file and changelog for python3 + +------------------------------------------------------------------- +Tue Mar 26 00:51:38 UTC 2013 - arun@gmx.de + +- updated copyright year in spec file + +------------------------------------------------------------------- +Tue Mar 26 00:49:40 UTC 2013 - arun@gmx.de + +- updated to 1.2.4 + changes as listed on https://pypi.python.org/pypi/pyquery: + + 1.2.4 + Moved to github. So a few files are renamed from .txt to .rst + Added .xhtml_to_html() and .remove_namespaces() + Use requests to fetch urls (if available) + Use restkit's proxy instead of Paste (which will die with py3) + Allow to open https urls + python2.5 is no longer supported (may work, but tests are broken) + 1.2.3 + Allow to pass this in .filter() callback + Add .contents() .items() + Add tox.ini + Bug fixes: fix #35 #55 #64 #66 + 1.2.2 + Fix cssselectpatch to match the newer implementation of cssselect. Fixes issue #62, #52 and #59 (Haoyu Bai) + Fix issue #37 (Caleb Burns) + 1.2.1 + Allow to use a custom css translator. + Fix issue 44: case problem with xml documents + 1.2 + PyQuery now use cssselect. See issue 43. + Fix issue 40: forward .html() extra arguments to lxml.etree.tostring + +------------------------------------------------------------------- +Tue Jan 31 10:54:06 UTC 2012 - saschpe@suse.de + +- Simplified macro usage +- Buildrequire python-distribute instead of (outdated) setuptools +- Set license to SDPX style (BSD-3-Clause) + +------------------------------------------------------------------- +Sun Oct 9 09:57:45 UTC 2011 - prusnak@opensuse.org + +- updated to version 1.0 + +------------------------------------------------------------------- +Sat Mar 05 07:02:11 CET 2011 - pascal.bleser@opensuse.org + +- initial version (0.7) + diff --git a/python3-pyquery.spec b/python3-pyquery.spec new file mode 100644 index 0000000..1169cf2 --- /dev/null +++ b/python3-pyquery.spec @@ -0,0 +1,53 @@ +# +# spec file for package python3-pyquery +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: python3-pyquery +Version: 1.2.4 +Release: 0 +Summary: A jQuery-like library for python +License: BSD-3-Clause +Group: Development/Languages/Python +Url: http://pypi.python.org/pypi/pyquery +Source: http://pypi.python.org/packages/source/p/pyquery/pyquery-%{version}.tar.gz +BuildRequires: python3-2to3 +BuildRequires: python3-devel +BuildRequires: python3-distribute +BuildRequires: python3-lxml +Requires: python3-lxml +BuildArch: noarch + +%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. + +%prep +%setup -q -n pyquery-%{version} + +%build +python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%defattr(-,root,root,-) +%doc CHANGES.rst README.rst +%{python3_sitelib}/* + +%changelog