[Python-modules-commits] [python-socketpool] 03/05: Support Python-3

Takaki Taniguchi takaki at moszumanska.debian.org
Wed Nov 25 14:42:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

takaki pushed a commit to branch master
in repository python-socketpool.

commit 0cb0012d46bc20ff8026d896964c66efb5e92350
Author: TANIGUCHI Takaki <takaki at asis.media-as.org>
Date:   Wed Nov 25 23:37:43 2015 +0900

    Support Python-3
---
 debian/control | 18 ++++++++++++++++--
 debian/rules   |  9 ++++-----
 2 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/debian/control b/debian/control
index e85f337..89a9b46 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,9 @@ Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.
 Uploaders: TANIGUCHI Takaki <takaki at debian.org>
 Build-Depends: debhelper (>= 8.0.0),
 	python-all,
-	python-setuptools
+	python3-all,
+	python-setuptools,
+	python3-setuptools
 Standards-Version: 3.9.4
 Homepage: http://pypi.python.org/pypi/socketpool
 Vcs-Git: git://anonscm.debian.org/python-modules/packages/python-socketpool.git
@@ -15,6 +17,18 @@ Package: python-socketpool
 Architecture: all
 Depends: ${python:Depends}, ${misc:Depends}
 Provides: ${python:Provides}
-Description: simple Python socket pool
+Description: simple Python 2 socket pool
  Socket pool is a simple socket pool that supports multiple factories and
  backends. It can easily be used by gevent, eventlet or any other library.
+ .
+ This package for Python 2.
+
+Package: python3-socketpool
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Provides: ${python3:Provides}
+Description: simple Python 3 socket pool
+ Socket pool is a simple socket pool that supports multiple factories and
+ backends. It can easily be used by gevent, eventlet or any other library.
+ .
+ This package for Python 2.
diff --git a/debian/rules b/debian/rules
index 4bfac63..1b7661d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,10 +1,9 @@
 #!/usr/bin/make -f
 #export DH_VERBOSE=1
 
-%:
-	dh $@ --with python2
+export PYBUILD_NAME=socketpool
+export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/socketpool
 
-override_dh_auto_install:
-	dh_auto_install
-	rm -r $(CURDIR)/debian/python-socketpool/usr/socketpool
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-socketpool.git



More information about the Python-modules-commits mailing list