[PATCH 24 of 24 Openidrelay cube] [pkg] update Debian packaging

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 09:54:07 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585727549 0
#      Wed Apr 01 07:52:29 2020 +0000
# Node ID d54816decf481500973acafad7f0a97dba1a30f0
# Parent  55d1872e017c232ceee5e6f5f92e2c1b1eda4958
[pkg] update Debian packaging

diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -3,18 +3,19 @@
 Priority: optional
 Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact at logilab.fr>
 Build-Depends:
- debhelper (>= 8),
- python (>= 2.6.5),
-Standards-Version: 3.8.0
-X-Python-Version: >= 2.6
+ debhelper (>= 9),
+ python3-all,
+ dh-python
+Standards-Version: 3.9.3
+X-Python3-Version: >= 3.5
 
-Package: cubicweb-openidrelay
+Package: python3-cubicweb-openidrelay
 Architecture: all
 Depends:
  cubicweb-common (>= 3.15.0),
  python-openid (>= 2.2.1),
  ${misc:Depends},
- ${python:Depends},
+ ${python3:Depends},
 Description: authentication plugin to turn a CubicWeb instance into an OpenID relay
  CubicWeb is a semantic web application framework.
  .
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,9 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+
+export PYBUILD_NAME = cubicweb-openidrelay
 
-export NO_SETUPTOOLS=1
+# 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 /usr/share/cubicweb
-
-override_dh_auto_install:
-	dh_auto_install
-	rm -rf debian/*/usr/lib
+	dh $@ --with python2,python3 --buildsystem=pybuild




More information about the cubicweb-devel mailing list