I tried to add python3-gevent packages and although they build fine (see
attached patch), gevent is not ready for Python 3.X.

It uses "except Foo, err:" syntax which is not supported in Python 3.
Passing 2to3 might fix it, but since upstream didn't add it in setup.py,
I guess it's too soon to add 3.X support in Debian.
--- python-gevent-1.0~b1/debian/changelog	2012-01-16 22:04:46.000000000 +0100
+++ python-gevent-1.0~rc3/debian/changelog	2013-10-07 23:08:20.000000000 +0200
@@ -1,3 +1,18 @@
+python-gevent (1.0~rc3-1) experimental; urgency=low
+
+  [ Bart Martens ]
+  * Update debian/watch file
+
+  [ Piotr Ożarowski ]
+  * New upstream release
+    - minimum required python-greenlet's version bumped to 0.4
+  * Build python3-gevent{,-dbg} binary packages
+  * Switched from deprecated python-support to dh_python2
+  * Switched dh build system to pybuild
+  * Clean autogenerated docs in clean target
+
+ -- Piotr Ożarowski <pi...@debian.org>  Mon, 07 Oct 2013 22:54:10 +0200
+
 python-gevent (1.0~b1-1) experimental; urgency=low
 
   * New upstream version.
--- python-gevent-1.0~b1/debian/clean	1970-01-01 01:00:00.000000000 +0100
+++ python-gevent-1.0~rc3/debian/clean	2013-10-07 22:52:20.000000000 +0200
@@ -0,0 +1,24 @@
+doc/changelog.rst
+doc/gevent.util.rst
+doc/gevent.subprocess.rst
+doc/gevent.win32util.rst
+doc/gevent.wsgi.rst
+doc/gevent.monkey.rst
+doc/gevent.lock.rst
+doc/gevent.select.rst
+doc/gevent.resolver_thread.rst
+doc/gevent.baseserver.rst
+doc/gevent.server.rst
+doc/gevent.socket.rst
+doc/gevent.threadpool.rst
+doc/gevent.ssl.rst
+doc/gevent.local.rst
+doc/gevent.threading.rst
+doc/gevent.pool.rst
+doc/gevent.coros.rst
+doc/gevent.thread.rst
+doc/gevent.os.rst
+doc/gevent.pywsgi.rst
+doc/gevent.fileobject.rst
+doc/gevent.resolver_ares.rst
+doc/gevent.backdoor.rst
--- python-gevent-1.0~b1/debian/control	2012-01-16 22:04:46.000000000 +0100
+++ python-gevent-1.0~rc3/debian/control	2013-10-07 23:43:02.000000000 +0200
@@ -2,8 +2,10 @@
 Priority: extra
 Maintainer: Örjan Persson <ora...@fobie.net>
 Uploaders: Andreas Schuldei <andr...@debian.org>
-Build-Depends: debhelper (>= 7.0.50), python-support, python-all-dev, python-all-dbg,
- libev-dev, libc-ares-dev, python-greenlet, python-sphinx (>= 0.6)
+Build-Depends: debhelper (>= 7.0.50), dh-python,
+ python-all-dev, python-all-dbg,
+ python3-all-dev, python3-all-dbg,
+ libev-dev, libc-ares-dev, python-greenlet (>= 0.4), python-sphinx (>= 0.6)
 Standards-Version: 3.9.2
 Section: python
 Homepage: http://www.gevent.org/
@@ -33,8 +35,27 @@
 Package: python-gevent
 Section: python
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-greenlet
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-greenlet (>= 0.4)
 Suggests: python-gevent-doc, python-gevent-dbg, python-openssl
 Description: gevent is a coroutine-based Python networking library
  gevent uses greenlet to provide a high-level synchronous API on top of the
  libev event loop.
+
+Package: python3-gevent
+Section: python
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, python3-greenlet
+Suggests: python-gevent-doc, python3-gevent-dbg, python3-openssl
+Description: gevent is a coroutine-based Python 3 networking library
+ gevent uses greenlet to provide a high-level synchronous API on top of the
+ libev event loop.
+
+Package: python3-gevent-dbg
+Section: debug
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, python-gevent (= ${binary:Version}), ${python3:Depends}
+Description: gevent is a coroutine-based Python networking library - debugging symbols
+ gevent uses greenlet to provide a high-level synchronous API on top of the
+ libev event loop.
+ .
+ This is the debugging symbols for gevent.
--- python-gevent-1.0~b1/debian/python-gevent.dirs	2012-01-16 22:04:46.000000000 +0100
+++ python-gevent-1.0~rc3/debian/python-gevent.dirs	1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-usr/lib
--- python-gevent-1.0~b1/debian/python-gevent.install	2012-01-16 22:04:46.000000000 +0100
+++ python-gevent-1.0~rc3/debian/python-gevent.install	1970-01-01 01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-usr/lib/python*/*-packages/gevent/*.py
-usr/lib/python*/*-packages/gevent/*[!_]?.so
-usr/lib/python*/*-packages/gevent-*.egg-info
--- python-gevent-1.0~b1/debian/rules	2012-01-16 22:04:46.000000000 +0100
+++ python-gevent-1.0~rc3/debian/rules	2013-10-07 23:36:38.000000000 +0200
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
+export PYBUILD_NAME=gevent
+
 %:
-	dh $@ --parallel
+	dh $@ --with python2,python3 --buildsystem=pybuild --parallel
 
 override_dh_auto_build:
 	dh_auto_build
@@ -18,10 +20,11 @@
 override_dh_strip:
 ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
 	dh_strip --dbg-package=python-gevent-dbg
-	cd debian/python-gevent-dbg/usr/lib/debug/usr/lib && mv pyshared pymodules
 endif
 
 override_dh_installdocs:
-	dh_installdocs --link-doc=python-gevent
+	dh_installdocs -N python-gevent-dbg -N  python3-gevent-dbg
+	dh_installdocs -p python-gevent-dbg --link-doc=python-gevent
+	dh_installdocs -p python3-gevent-dbg --link-doc=python3-gevent
 
 .PHONY: override_dh_auto_build override_dh_auto_clean override_dh_compress override_dh_strip override_dh_installdocs
--- python-gevent-1.0~b1/debian/watch	2012-01-16 22:04:46.000000000 +0100
+++ python-gevent-1.0~rc3/debian/watch	2013-10-07 22:52:20.000000000 +0200
@@ -1,2 +1,4 @@
 version=3
-http://pypi.python.org/packages/source/g/gevent/gevent-(.*)\.tar\.gz
+opts=uversionmangle=s/(\d)[\.\-]?((?:rc|RC|pre)\.?\d+(?:-\d+)?)$/$1~$2/;s/^((?:\d+\.)*\d+)([ab]\d*)$/$1~$2/ \
+https://github.com/surfly/gevent/tags \
+.*/archive/(?:upstream/)?(?:v||version-|release-|X|R)(\d\S*)\.tar\.gz

Reply via email to