# HG changeset patch
# User Philippe Pepiot <philippe.pepiot@logilab.fr>
# Date 1512571869 -3600
#      Wed Dec 06 15:51:09 2017 +0100
# Node ID 50f43db8fe4d5f87490f76756fb5033ef1ab6fc8
# Parent  5bae74c4ea44df09c5d0f3d60d2b8916fa18cd90
Refresh debian packaging

Use pybuild

diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+cubicweb-squareui (1.0.3-2) unstable; urgency=medium
+
+  * Refresh debian packaging
+
+ -- Philippe Pepiot <philippe.pepiot@logilab.fr>  Wed, 06 Dec 2017 13:57:01 +0100
+
 cubicweb-squareui (1.0.3-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -5,8 +5,8 @@
 Build-Depends:
  debhelper (>= 9),
  python (>= 2.6.5),
-Standards-Version: 3.9.6
-X-Python-Version: >= 2.6
+ dh-python,
+Standards-Version: 3.9.8
 
 Package: cubicweb-squareui
 Architecture: all
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -1,14 +1,7 @@
 #!/usr/bin/make -f
 
+export PYBUILD_DISABLE=test
 export NO_SETUPTOOLS=1
 
 %:
-	dh $@ --with python2
-
-override_dh_auto_install:
-	dh_auto_install
-	# remove generated .egg-info file
-	rm -rf debian/*/usr/lib/python*
-
-override_dh_python2:
-	dh_python2 -i /usr/share/cubicweb
+	dh $@ --with python2 --buildsystem=pybuild