[pkg] update Debian packaging default tip

Wed, 01 Apr 2020 07:41:21 +0000

author
Nsukami Patrick <ptrck at nskm dot xyz>
date
Wed, 01 Apr 2020 07:41:21 +0000
changeset 110
d4bad9ab4c1c
parent 109
ebdd5a27165a

[pkg] update Debian packaging

debian/control file | annotate | diff | comparison | revisions
debian/rules file | annotate | diff | comparison | revisions
--- a/debian/control	Wed Apr 01 07:18:53 2020 +0000
+++ b/debian/control	Wed Apr 01 07:41:21 2020 +0000
@@ -5,16 +5,17 @@
 Uploaders: Sylvain Thenault <sylvain.thenault@logilab.fr>
 Build-Depends:
  debhelper (>= 9),
- python (>= 2.6.5)
-Standards-Version: 3.9.6
+ python3-all,
+ dh-python
+Standards-Version: 3.9.3
+X-Python3-Version: >= 3.5
 Homepage: http://www.cubicweb.org/project/cubicweb-mailinglist
-X-Python-Version: >= 2.6
 
-Package: cubicweb-mailinglist
+Package: python3-cubicweb-mailinglist
 Architecture: all
 Depends:
  cubicweb-common (>= 3.19.0),
- ${python:Depends},
+ ${python3:Depends},
  ${misc:Depends},
 Suggests: cubicweb-sioc
 Description: mailing-list component for the CubicWeb framework
--- a/debian/rules	Wed Apr 01 07:18:53 2020 +0000
+++ b/debian/rules	Wed Apr 01 07:41:21 2020 +0000
@@ -1,7 +1,9 @@
 #!/usr/bin/make -f
 
+export PYBUILD_NAME = cubicweb-mailinglist
+
+# Python 3.8 is broken in Debian unstable as of 2019-11-21
+export PYBUILD_DISABLE_python3.8 = 1
+
 %:
-	dh $@ --with python2
-
-override_dh_python2:
-	dh_python2 -i /usr/share/cubicweb
+	dh $@ --with python2,python3 --buildsystem=pybuild

mercurial