[PATCH 6 of 7 forgotpwd] [debian] Introduce a python{, 3}-cubicweb-forgotpwd binary packages

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


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1561537732 -7200
#      mer. juin 26 10:28:52 2019 +0200
# Node ID bc2783fbcc8a1b47efded688f33ea219bd86bbf2
# Parent  fcd07e2ae00ef525f8edd4c5adc055da1f46c674
# Available At https://hg.logilab.org/review/cubes/forgotpwd
#              hg pull https://hg.logilab.org/review/cubes/forgotpwd -r bc2783fbcc8a
[debian] Introduce a python{,3}-cubicweb-forgotpwd binary packages

diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ cubicweb-forgotpwd (0.9.0-2) UNRELEASED;
 
   * Switch to 3.0 (quilt) format
   * Use pybuild
+  * Introduce a python{,3}-cubicweb-forgotpwd binary packages
 
  -- 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
@@ -5,18 +5,49 @@ Maintainer: LOGILAB S.A. (Paris, FRANCE)
 Build-Depends:
  debhelper (>= 9),
  python-all (>= 2.7),
+ python3-all (>= 2.7),
  dh-python,
  python-setuptools,
+ python3-setuptools,
 Standards-Version: 3.9.6
 X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.4
 Homepage: http://www.cubicweb.org/project/cubicweb-forgotpwd
 
 Package: cubicweb-forgotpwd
 Architecture: all
 Depends:
- ${python:Depends},
+ python-cubicweb-forgotpwd (= ${source:Version}),
  ${misc:Depends},
 Description: password recovery component for the CubicWeb framework
  This CubicWeb component provides password recovery functionnality.
  .
  CubicWeb is a semantic web application framework, see http://www.cubicweb.org
+ .
+ This is a dependency package for the Python2 library.
+
+Package: python-cubicweb-forgotpwd
+Architecture: all
+Section: python
+Depends:
+ ${python:Depends},
+ ${misc:Depends},
+Replaces:
+ cubicweb-forgotpwd (<< 0.9.2-1),
+Breaks:
+ cubicweb-forgotpwd (<< 0.9.2-1),
+Description: password recovery component for the CubicWeb framework (Python 2)
+ This CubicWeb component provides password recovery functionnality.
+ .
+ CubicWeb is a semantic web application framework, see http://www.cubicweb.org
+
+Package: python3-cubicweb-forgotpwd
+Architecture: all
+Section: python
+Depends:
+ ${python3:Depends},
+ ${misc:Depends},
+Description: password recovery component for the CubicWeb framework (Python 3)
+ This CubicWeb component provides password recovery functionnality.
+ .
+ CubicWeb is a semantic web application framework, see http://www.cubicweb.org
diff --git a/debian/py3dist-overrides b/debian/py3dist-overrides
new file mode 100644
--- /dev/null
+++ b/debian/py3dist-overrides
@@ -0,0 +1,1 @@
+cubicweb python3-cubicweb
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -3,4 +3,4 @@
 export PYBUILD_NAME=cubicweb-forgotpwd
 
 %:
-	dh $@ --with python2 --buildsystem=pybuild
+	dh $@ --with python2,python3 --buildsystem=pybuild



More information about the cubicweb-devel mailing list