[PATCH 5 of 6 sentry] [debian] Introduce python{,3}- binary packages

Denis Laxalde denis.laxalde at logilab.fr
Wed Jul 3 15:42:23 CEST 2019


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1562160512 -7200
#      mer. juil. 03 15:28:32 2019 +0200
# Node ID fce7bbfb932d5047a413ef509ab6c48d345b4f86
# Parent  7f91389b55be22ea8965d5e3051f539625bd1136
# Available At http://hg.logilab.org/review/cubes/sentry
#              hg pull http://hg.logilab.org/review/cubes/sentry -r fce7bbfb932d
[debian] Introduce python{,3}- binary packages

We let Depends: be generated by dh-python and provide an override for
cubicweb as it's not available in Debian repositories.

diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ cubicweb-sentry (0.4.0-1) UNRELEASED; ur
   * News upstream release
   * Switch to 3.0 (quilt) format
   * Build with pybuild
+  * Introduce a python-cubicweb-sentry binary package
+  * Introduce a python3-cubicweb-sentry binary package
 
  -- Denis Laxalde <denis.laxalde at logilab.fr>  Wed, 03 Jul 2019 15:06:37 +0200
 
diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -5,22 +5,48 @@ Maintainer: LOGILAB S.A. (Paris, FRANCE)
 Build-Depends:
  debhelper (>= 9),
  python-all (>= 2.7),
+ python3-all (>= 3.5),
  dh-python,
  python-setuptools,
+ python3-setuptools,
 Standards-Version: 3.9.6
 X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.5
 
 Package: cubicweb-sentry
 Architecture: all
 Depends:
- cubicweb-common (>= 3.17.14),
- python-raven,
+ python-cubicweb-sentry (= ${source:Version}),
+ ${misc:Depends},
+Description: cubicweb component for Sentry
+ CubicWeb is a semantic web application framework.
+ .
+ CubicWeb component adding support for Sentry (getsentry.com).
+ .
+ This dependency package installs the python 2 version of the library.
+
+Package: python-cubicweb-sentry
+Architecture: all
+Section: python
+Depends:
  ${python:Depends},
  ${misc:Depends},
-Description: support for Sentry (getsentry.com)
+Description: cubicweb component for Sentry (Python 2)
  CubicWeb is a semantic web application framework.
  .
- support for Sentry (getsentry.com)
+ CubicWeb component adding support for Sentry (getsentry.com).
  .
- This package will install all the components you need to run the
- cubicweb-sentry application (cube :)..
+ This package installs the python 2 version of the library.
+
+Package: python3-cubicweb-sentry
+Architecture: all
+Section: python
+Depends:
+ ${python3:Depends},
+ ${misc:Depends},
+Description: cubicweb component for Sentry (Python 3)
+ CubicWeb is a semantic web application framework.
+ .
+ CubicWeb component adding support for Sentry (getsentry.com).
+ .
+ This package installs the python 3 version of the library.
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/pydist-overrides b/debian/pydist-overrides
new file mode 100644
--- /dev/null
+++ b/debian/pydist-overrides
@@ -0,0 +1,1 @@
+cubicweb python-cubicweb
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -4,4 +4,4 @@ export PYBUILD_NAME=cubicweb-sentry
 export PYBUILD_DISABLE=test
 
 %:
-	dh $@ --with python2 --buildsystem=pybuild
+	dh $@ --with python2,python3 --buildsystem=pybuild



More information about the cubicweb-devel mailing list