[debian] build python3 package
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 09 Sep 2015 11:08:37 +0200
changeset 782 bf54633e40d5
parent 781 7d5aa315998c
child 783 c54814eb0a28
[debian] build python3 package Related to #1167312
debian/control
debian/python-rql.install
debian/python3-rql.install
debian/rules
debian/watch
--- a/debian/control	Wed Sep 09 11:16:17 2015 +0200
+++ b/debian/control	Wed Sep 09 11:08:37 2015 +0200
@@ -6,10 +6,13 @@
 Build-Depends:
  debhelper (>= 9),
  python-all-dev (>= 2.6.5),
+ python3-all-dev (>= 2.6.5),
  libgecode-dev,
  python-sphinx,
  python-setuptools,
+ python3-setuptools,
 X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.3
 Standards-Version: 3.9.6
 Homepage: http://www.logilab.org/project/rql
 
@@ -26,7 +29,25 @@
 Breaks:
  cubicweb-common (<= 3.21.0),
 Suggests: python-pygments
-Description: relationship query language (RQL) utilities
+Description: relationship query language (RQL) utilities - Python 2
  A library providing the base utilities to handle RQL queries,
  such as a parser, a type inferencer.
+ .
+ This package contains the Python 2 version of the RQL library.
 
+Package: python3-rql
+Architecture: any
+Depends:
+ ${python3:Depends},
+ ${misc:Depends},
+ ${shlibs:Depends},
+ python3-logilab-common,
+ python3-yapps2-runtime,
+ python3-logilab-database (>= 1.6.0),
+ python3-six (>= 1.4.0),
+Suggests: python3-pygments
+Description: relationship query language (RQL) utilities - Python 3
+ A library providing the base utilities to handle RQL queries,
+ such as a parser, a type inferencer.
+ .
+ This package contains the Python 3 version of the RQL library.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/python-rql.install	Wed Sep 09 11:08:37 2015 +0200
@@ -0,0 +1,1 @@
+usr/lib/python2*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/python3-rql.install	Wed Sep 09 11:08:37 2015 +0200
@@ -0,0 +1,1 @@
+usr/lib/python3*
--- a/debian/rules	Wed Sep 09 11:16:17 2015 +0200
+++ b/debian/rules	Wed Sep 09 11:08:37 2015 +0200
@@ -3,7 +3,7 @@
 export RQL_FORCE_GECODE=1
 
 %:
-	dh $@ --with python2 --buildsystem python_distutils
+	dh $@ --with python2,python3 --buildsystem pybuild
 
 override_dh_auto_build:
 	dh_auto_build
@@ -17,3 +17,6 @@
 # or python-logilab-constraint (unnecessary with gecode)
 override_dh_python2:
 	dh_python2 --no-guessing-deps
+
+override_dh_python3:
+	dh_python3 --no-guessing-deps
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/watch	Wed Sep 09 11:08:37 2015 +0200
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+http://pypi.debian.net/rql/rql-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))