[PATCH 4 of 5 file] [debian] Introduce a python{, 3}-cubicweb-file binary packages

Philippe Pepiot philippe.pepiot at logilab.fr
Thu Jun 27 18:14:25 CEST 2019


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1561650208 -7200
#      Thu Jun 27 17:43:28 2019 +0200
# Node ID bc261e6450c697b7d899761356886f7a3140de5b
# Parent  2deda972337f4ad2c5546d1e1ea8f25270187f5d
# Available At https://hg.logilab.org/review/cubes/file
#              hg pull https://hg.logilab.org/review/cubes/file -r bc261e6450c6
[debian] Introduce a python{,3}-cubicweb-file binary packages

diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 cubicweb-file (2.2.1-2) UNRELEASED; urgency=medium
 
   * Use pybuild
+  * Introduce a python{,3}-cubicweb-file binary packages
 
  -- Philippe Pepiot <philippe.pepiot at logilab.fr>  Thu, 27 Jun 2019 17:01:26 +0200
 
diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -8,19 +8,52 @@ Uploaders:
 Build-Depends:
  debhelper (>= 9),
  python-all (>= 2.7),
+ python3-all (>= 3.4),
  dh-python,
  python-setuptools,
+ python3-setuptools,
 Standards-Version: 3.9.8
 Homepage: http://www.cubicweb.org/project/cubicweb-file
 X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.4
 
 Package: cubicweb-file
 Architecture: all
 Depends:
- ${python:Depends},
+ python-cubicweb-file (= ${source:Version}),
  ${misc:Depends},
 Description: file component for the CubicWeb framework
  This CubicWeb component models files and images (pdf document,
  word processor file, screenshots, etc).
  .
  CubicWeb is a semantic web framework, see http://www.cubicweb.org
+ .
+ This is a dependency package for the Python2 library
+
+Package: python-cubicweb-file
+Architecture: all
+Section: python
+Depends:
+ ${python:Depends},
+ ${misc:Depends},
+Replaces:
+ cubicweb-forgotpwd (<< 2.2.1-2),
+Breaks:
+ cubicweb-forgotpwd (<< 2.2.1-2),
+Description: file component for the CubicWeb framework (Python 2)
+ This CubicWeb component models files and images (pdf document,
+ word processor file, screenshots, etc).
+ .
+ CubicWeb is a semantic web framework, see http://www.cubicweb.org
+
+Package: python3-cubicweb-file
+Architecture: all
+Section: python
+Depends:
+ ${python3:Depends},
+ ${misc:Depends},
+Description: file component for the CubicWeb framework (Python 3)
+ This CubicWeb component models files and images (pdf document,
+ word processor file, screenshots, etc).
+ .
+ CubicWeb is a semantic web framework, see http://www.cubicweb.org
diff --git a/debian/pydist-overrides b/debian/py3dist-overrides
copy from debian/pydist-overrides
copy to debian/py3dist-overrides
--- a/debian/pydist-overrides
+++ b/debian/py3dist-overrides
@@ -1,1 +1,1 @@
-cubicweb python-cubicweb
+cubicweb python3-cubicweb
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -4,5 +4,5 @@ export PYBUILD_NAME=cubicweb-file
 export PYBUILD_DISABLE=test
 
 %:
-	dh $@ --with python2 --buildsystem=pybuild
+	dh $@ --with python2,python3 --buildsystem=pybuild
 



More information about the cubicweb-devel mailing list