[PATCH 4 of 7 forgotpwd] [debian] Use pybuild

Denis Laxalde denis.laxalde at logilab.fr
Wed Jun 26 10:48:30 CEST 2019


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1561536886 -7200
#      mer. juin 26 10:14:46 2019 +0200
# Node ID 1ef0e288906cf50e346be7276f25a87787af87be
# Parent  47ce7c665a8619caac7dcc9ad7ac4d77701f47e8
# Available At https://hg.logilab.org/review/cubes/forgotpwd
#              hg pull https://hg.logilab.org/review/cubes/forgotpwd -r 1ef0e288906c
[debian] Use pybuild

Bump min python2 version along the way.

diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 cubicweb-forgotpwd (0.9.0-2) UNRELEASED; urgency=medium
 
   * Switch to 3.0 (quilt) format
+  * Use pybuild
 
  -- Denis Laxalde <denis.laxalde at logilab.fr>  Wed, 26 Jun 2019 10:11:05 +0200
 
diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -4,10 +4,11 @@ Priority: optional
 Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact at logilab.fr>
 Build-Depends:
  debhelper (>= 9),
- python (>= 2.6.5),
+ python-all (>= 2.7),
  dh-python,
  python-setuptools,
 Standards-Version: 3.9.6
+X-Python-Version: >= 2.7
 Homepage: http://www.cubicweb.org/project/cubicweb-forgotpwd
 
 Package: cubicweb-forgotpwd
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,6 @@
 #!/usr/bin/make -f
 
+export PYBUILD_NAME=cubicweb-forgotpwd
+
 %:
-	dh $@ --with python2
+	dh $@ --with python2 --buildsystem=pybuild



More information about the cubicweb-devel mailing list