[Python-modules-team] Bug#755031: add python3 support for python-cssselect

宋文武 iyzsong at gmail.com
Mon Jul 28 07:29:37 UTC 2014


Here is a patch:

===File /tmp/python-cssselect_0.9.1-1.1.debdiff=============
diff -Nru python-cssselect-0.9.1/debian/changelog python-cssselect-0.9.1/debian/changelog
--- python-cssselect-0.9.1/debian/changelog	2013-10-25 23:33:04.000000000 +0800
+++ python-cssselect-0.9.1/debian/changelog	2014-07-28 15:03:58.000000000 +0800
@@ -1,3 +1,10 @@
+python-cssselect (0.9.1-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Add support for python3. (Closes: #755031)
+
+ -- Song Wenwu <songwenwu at linuxdeepin.com>  Mon, 28 Jul 2014 15:03:05 +0800
+
 python-cssselect (0.9.1-1) unstable; urgency=low
 
   [ Barry Warsaw ]
diff -Nru python-cssselect-0.9.1/debian/control python-cssselect-0.9.1/debian/control
--- python-cssselect-0.9.1/debian/control	2013-10-25 23:30:03.000000000 +0800
+++ python-cssselect-0.9.1/debian/control	2014-07-28 15:13:42.000000000 +0800
@@ -3,19 +3,30 @@
 Priority: extra
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: TANIGUCHI Takaki <takaki at debian.org>
-Build-Depends: debhelper (>= 8)
-        ,python-all
-        ,python-setuptools
-Standards-Version: 3.9.4
+Build-Depends: debhelper (>= 9), dh-python,
+               python-all, python-lxml, python-setuptools,
+               python3-all, python3-lxml, python3-setuptools
+Standards-Version: 3.9.5
 X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
 Homepage: http://pypi.python.org/pypi/cssselect
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-cssselect/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-cssselect/trunk/
 
 Package: python-cssselect
 Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}
-Provides: ${python:Provides}
+Depends: python, ${misc:Depends}
+Description: cssselect parses CSS3 Selectors and translates them to XPath 1.0
+ 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.
+ .
+ This module used to live inside of lxml as lxml.cssselect before it was
+ extracted as a stand-alone project.
+
+Package: python3-cssselect
+Architecture: all
+Depends: python3, ${misc:Depends}
 Description: cssselect parses CSS3 Selectors and translates them to XPath 1.0
  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
diff -Nru python-cssselect-0.9.1/debian/rules python-cssselect-0.9.1/debian/rules
--- python-cssselect-0.9.1/debian/rules	2012-05-10 15:49:55.000000000 +0800
+++ python-cssselect-0.9.1/debian/rules	2014-07-28 15:16:27.000000000 +0800
@@ -1,4 +1,7 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
+
+export PYBUILD_NAME=cssselect
+
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3 --buildsystem=pybuild
============================================================



More information about the Python-modules-team mailing list