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

Philippe Pepiot philippe.pepiot at logilab.fr
Thu Jun 27 16:56:45 CEST 2019


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1561645733 -7200
#      Thu Jun 27 16:28:53 2019 +0200
# Node ID 1adf09ae5adff63ed41263ada47dedce9e831dcd
# Parent  ab1fd5f61a340618be71885ff5ad8400fbaa3e41
# Available At https://hg.logilab.org/review/cubes/postgis
#              hg pull https://hg.logilab.org/review/cubes/postgis -r 1adf09ae5adf
[debian] Introduce a python{,3}-cubicweb-postgis binary packages

diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ cubicweb-postgis (0.7.0-2) UNRELEASED; u
 
   * Switch to 3.0 (quilt) format
   * Use pybuild
+  * Introduce a python{,3}-cubicweb-postgis binary packages
 
  -- Philippe Pepiot <philippe.pepiot at logilab.fr>  Thu, 27 Jun 2019 16:17:16 +0200
 
diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -6,15 +6,18 @@ Build-Depends:
  debhelper (>= 9),
  dh-python,
  python-all (>= 2.7),
+ python3-all (>= 3.4),
  python-setuptools,
+ python3-setuptools,
 Standards-Version: 3.9.6
 Homepage: https://www.cubicweb.org/project/cubicweb-postgis
 X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.4
 
 Package: cubicweb-postgis
 Architecture: all
 Depends:
- ${python:Depends},
+ python-cubicweb-postgis (= ${source:Version}),
  ${misc:Depends},
 Description: Cube for GIS data support using PostGIS
  CubicWeb is a semantic web application framework.
@@ -23,3 +26,37 @@ Description: Cube for GIS data support u
  .
  This package will install all the components you need to run the
  cubicweb-postgis application (cube :)..
+ .
+ This is a dependency package for the Python2 library
+
+Package: python-cubicweb-postgis
+Architecture: all
+Section: python
+Depends:
+ ${python:Depends},
+ ${misc:Depends},
+Replaces:
+ cubicweb-postgis (<< 0.7.0-2)
+Breaks:
+ cubicweb-postgis (<< 0.7.0-2)
+Description: Cube for GIS data support using PostGIS (Python 2)
+ CubicWeb is a semantic web application framework.
+ .
+ Cube for GIS data support using PostGIS
+ .
+ This package will install all the components you need to run the
+ cubicweb-postgis application (cube :)..
+
+Package: python3-cubicweb-postgis
+Architecture: all
+Section: python
+Depends:
+ ${python3:Depends},
+ ${misc:Depends},
+Description: Cube for GIS data support using PostGIS (Python 3)
+ CubicWeb is a semantic web application framework.
+ .
+ Cube for GIS data support using PostGIS
+ .
+ This package will install all the components you need to run the
+ cubicweb-postgis application (cube :)..
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -3,4 +3,4 @@
 export PYBUILD_NAME=cubicweb-postgis
 
 %:
-	dh $@ --with python2 --buildsystem=pybuild
+	dh $@ --with python2,python3 --buildsystem=pybuild



More information about the cubicweb-devel mailing list