[PATCH 3 of 6 sentry] [debian] Build with pybuild

Denis Laxalde denis.laxalde at logilab.fr
Wed Jul 3 15:42:21 CEST 2019


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1562159510 -7200
#      mer. juil. 03 15:11:50 2019 +0200
# Node ID 2c92bffc43f44f64bad4d9d0fd422deb35f4b4e7
# Parent  cf7534132fbc47ff4d5745a37a8a236784b59626
# Available At http://hg.logilab.org/review/cubes/sentry
#              hg pull http://hg.logilab.org/review/cubes/sentry -r 2c92bffc43f4
[debian] Build with pybuild

Bump python version and drop left-over packaging bits from before
new-style refactoring.

diff --git a/.hgignore b/.hgignore
new file mode 100644
--- /dev/null
+++ b/.hgignore
@@ -0,0 +1,1 @@
+.pybuild
diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ cubicweb-sentry (0.4.0-1) UNRELEASED; ur
 
   * News upstream release
   * Switch to 3.0 (quilt) format
+  * Build with pybuild
 
  -- Denis Laxalde <denis.laxalde at logilab.fr>  Wed, 03 Jul 2019 15:06:37 +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.6
+X-Python-Version: >= 2.7
 
 Package: cubicweb-sentry
 Architecture: all
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,7 @@
 #!/usr/bin/make -f
 
-export NO_SETUPTOOLS=1
+export PYBUILD_NAME=cubicweb-sentry
+export PYBUILD_DISABLE=test
 
 %:
-	dh $@ --with python2
-
-override_dh_python2:
-	dh_python2 /usr/share/cubicweb
+	dh $@ --with python2 --buildsystem=pybuild



More information about the cubicweb-devel mailing list