Package: python-webob
Severity: wishlist
Tags: patch

Python 3 support can be added to this package
>From Ubuntu we have added this support and we consider that this
should be forwarded to Debian


-- System Information:
Debian Release: wheezy/sid
  APT prefers saucy-updates
  APT policy: (500, 'saucy-updates'), (500, 'saucy-security'), (500, 'saucy'), 
(100, 'saucy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8.0-26-generic (SMP w/4 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u a/debian/control b/debian/control
--- a/debian/control	2013-07-23 13:42:51.953376000 +0000
+++ b/debian/control	2013-07-23 13:40:31.761215728 +0000
@@ -7,20 +7,31 @@
 Build-Depends: debhelper (>= 9)
 Build-Depends-Indep: python-all (>= 2.6.6-3),
  python-setuptools (>= 0.6b3-1~), python-sphinx (>= 1.0.7+dfsg-1~),
- python-webtest, python-nose
+ python-webtest, python-nose, python3-all (>= 3.1.2-7~), 
+ python3-setuptools, python3-nose
 Standards-Version: 3.9.4
 Homepage: http://webob.org/
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-webob/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-webob/trunk/
 X-Python-Version: >= 2.5
+X-Python3-Version: >= 3.0
 
 Package: python-webob
 Architecture: all
 Depends: ${python:Depends}, ${misc:Depends}, python
 Suggests: libjs-jquery
-Description: Python module providing WSGI request and response objects
+Description: Python module providing WSGI request and response objects (python2)
  WebOb provides wrappers around the WSGI request environment, and an object to
  help create WSGI responses.
  .
  The objects map much of the specified behavior of HTTP, including header
  parsing and accessors for other standard parts of the environment.
+
+Package: python3-webob
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}, python3
+Suggests: libjs-jquery
+Description: Python module providing WSGI request and response objects (python3)
+  WebOb provides wrappers around the WSGI request environment, and an object to
+  help create WSGI responses.
+
diff -u a/debian/rules b/debian/rules
--- a/debian/rules	2013-07-23 13:42:51.953376000 +0000
+++ b/debian/rules	2013-07-23 13:42:20.861215728 +0000
@@ -28,13 +28,21 @@
 	dh_testdir
 	dh_testroot
 	dh_installdirs
+	# python2
 	python setup.py install \
 		--no-compile \
 		--single-version-externally-managed \
 		--root $(CURDIR)/debian/$(package) \
 		--install-layout=deb
+	# python3
+	python3 setup.py install \
+		--no-compile \
+		--single-version-externally-managed \
+		--root $(CURDIR)/debian/python3-webob \
+		--install-layout=deb
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 	python setup.py test --quiet
+	python3 setup.py test --quiet
 endif
 
 binary-indep: build install
@@ -46,6 +54,7 @@
 	dh_compress -X.py -X.js -X.inv
 	dh_fixperms
 	dh_python2
+	dh_python3
 	dh_installdeb
 	dh_gencontrol
 	dh_md5sums

Reply via email to