[PATCH 1 of 8 3.26] [debian] Introduce python3-cubicweb and python3-cubicweb-pyramid binary packages

Denis Laxalde denis.laxalde at logilab.fr
Tue Jun 25 16:46:21 CEST 2019


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1561042979 -7200
#      jeu. juin 20 17:02:59 2019 +0200
# Branch 3.26
# Node ID 2337c8c056576e5e6d93b8f70eb13e1fb6098e67
# Parent  23e957f0f6d693567cf4f2a1959032258598011f
# Available At https://hg.logilab.org/review/cubicweb
#              hg pull https://hg.logilab.org/review/cubicweb -r 2337c8c05657
[debian] Introduce python3-cubicweb and python3-cubicweb-pyramid binary packages

This is the bare minimum to have a working cubicweb on python3. Further
work is done in default branch.

diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 cubicweb (3.26.11-2) UNRELEASED; urgency=medium
 
   * Remove build dependency on dh-systemd
+  * Build python3 basic packages
 
  -- Denis Laxalde <denis.laxalde at logilab.fr>  Tue, 25 Jun 2019 16:38:09 +0200
 
diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -9,10 +9,14 @@ Build-Depends:
  dh-python,
  python-all,
  python-setuptools,
- python-sphinx
+ python-sphinx,
+ python3-all,
+ python3-setuptools,
+ python3-sphinx,
 Standards-Version: 3.9.6
 Homepage: https://www.cubicweb.org
 X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.4
 
 
 Package: python-cubicweb
@@ -101,6 +105,56 @@ Description: the complete CubicWeb frame
  packages on the different hosts.
 
 
+Package: python3-cubicweb
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python3:Depends},
+ python3-six (>= 1.4.0),
+ python3-logilab-mtconverter (>= 0.8.0),
+ python3-logilab-common (>= 1.4.0),
+ python3-logilab-database (>= 1.15.0),
+ python3-yams (>= 0.45.0),
+ python3-rql (>= 0.34.0),
+ python3-unittest2 (>= 0.7.0),
+ python3-lxml,
+ python3-markdown,
+ python3-passlib,
+ python3-tz,
+ graphviz,
+ gettext,
+Recommends:
+ cubicweb-ctl (= ${source:Version}),
+ python3-cubicweb-postgresql-support (= ${source:Version})
+ | sqlite3,
+ python3-cubicweb-pyramid (= ${source:Version}),
+# common recommends
+ python3-simpletal (>= 4.0),
+ python3-crypto,
+# web recommends (mostly)
+ python3-docutils (>= 0.6),
+ python3-vobject,
+ fckeditor,
+ python3-fyzz,
+ python3-imaging,
+ python3-rdflib,
+ python3-werkzeug,
+# dev recommends
+ python3-pysqlite2,
+Suggests:
+ python3-zmq,
+ python3-cwclientlib (>= 0.4.0),
+ w3c-dtd-xhtml,
+ xvfb,
+Description: CubicWeb framework (Python 3)
+ CubicWeb is a semantic web application framework.
+ .
+ This package will install all the components you need to run cubicweb on a
+ single machine. You can also deploy cubicweb by running the different process
+ on different computers, in which case you need to install the corresponding
+ packages on the different hosts.
+
+
 Package: python-cubicweb-postgresql-support
 Architecture: all
 # postgresql-client packages for backup/restore of non local database
@@ -119,6 +173,21 @@ Description: postgres support for the Cu
  cubicweb repository.
 
 
+Package: python3-cubicweb-postgresql-support
+Architecture: all
+# postgresql-client packages for backup/restore of non local database
+Depends:
+ ${misc:Depends},
+ ${python3:Depends},
+ python3-psycopg2,
+ postgresql-client
+Description: postgres support for the CubicWeb framework (Python 3)
+ CubicWeb is a semantic web application framework.
+ .
+ This virtual package provides dependencies to use PostgreSQL for the
+ cubicweb repository.
+
+
 Package: python-cubicweb-twisted
 Architecture: all
 Depends:
@@ -150,6 +219,21 @@ Description: meta package to use Pyramid
  Provides pyramid extensions to load a CubicWeb instance and serve it through
  the pyramid stack.
 
+Package: python3-cubicweb-pyramid
+Architecture: all
+Depends:
+ python3-cubicweb (= ${source:Version}),
+ python3-pyramid (>= 1.5.0),
+ python3-pyramid-multiauth,
+ python3-waitress (>= 0.8.9),
+ python3-wsgicors,
+ python3-repoze.lru,
+Recommends:
+ python3-pyramid-debugtoolbar
+Description: meta package to use Pyramid as HTTP server for CubicWeb (Python 3)
+ Provides pyramid extensions to load a CubicWeb instance and serve it through
+ the pyramid stack.
+
 
 Package: cubicweb-ctl
 Architecture: all
diff --git a/debian/python-cubicweb.lintian-overrides b/debian/python3-cubicweb.lintian-overrides
copy from debian/python-cubicweb.lintian-overrides
copy to debian/python3-cubicweb.lintian-overrides
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@ export PYBUILD_DISABLE_python2=test
 export PYBUILD_DISABLE_python3=test
 
 %:
-	dh $@ --with python2,sphinxdoc --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_auto_build: export http_proxy=127.0.0.1:9
 override_dh_auto_build: export https_proxy=127.0.0.1:9



More information about the cubicweb-devel mailing list