Commit 953c0b4f authored by Jérémy Bobbio (Lunar)'s avatar Jérémy Bobbio (Lunar)
Browse files

Update Debian packaging with support for Python 3

Update the build system to use pybuild.

The new binary package with Python 3 support is named
python3-cubicweb-blog according to current standards.
Python 2 package is also updated to use the proper namespace
and a transitional package has been introduced to handle
the migration.

Fix MANIFEST.in to include a missing image, extra files
to run the tests and to not ship packaging files.

Support for Python 3.8 is disabled as it is currently broken
in Debian unstable.
parent 7f196b516c83
......@@ -2,9 +2,9 @@ include README
include *.py
include */*.py
recursive-include cubicweb_blog *.py
recursive-include cubicweb_blog/data *.gif *.png *.ico *.css *.js
recursive-include cubicweb_blog/data *.gif *.png *.jpg *.ico *.css *.js
recursive-include cubicweb_blog/i18n *.po
recursive-include test/data bootstrap_cubes *.py
recursive-include debian changelog compat control copyright rules
include cubicweb-blog.spec
include dev-requirements.txt
include tox.ini
......@@ -2,31 +2,56 @@ Source: cubicweb-blog
Section: web
Priority: optional
Maintainer: Logilab Packaging Team <contact@logilab.fr>
Uploaders: Sylvain Thenault <sylvain.thenault@logilab.fr>, Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Build-Depends:
debhelper (>= 9),
python (>= 2.7),
dh-python,
python-setuptools,
Standards-Version: 3.9.8
Uploaders: Sylvain Thenault <sylvain.thenault@logilab.fr>,
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Build-Depends: debhelper (>= 9),
dh-python,
python-all,
python-cubicweb,
python-cubicweb-sioc,
python-pytest,
python-setuptools,
python3-all,
python3-cubicweb,
python3-cubicweb-sioc,
python3-pytest,
python3-setuptools,
Standards-Version: 4.3.0
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.5
Homepage: https://www.cubicweb.org/project/cubicweb-blog
Package: cubicweb-blog
Package: python-cubicweb-blog
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
Suggests: python-cubicweb-comment (>= 1.6.3),
python-cubicweb-sioc,
python-cubicweb-tag,
python-feedparser,
python-rdflib,
Recommends: python-cubicweb-preview, python-cubicweb-seo
Description: blog component for the CubicWeb framework
This CubicWeb component provides blogging functionnalities.
.
CubicWeb is a semantic web application framework, see http://www.cubicweb.org
Package: python3-cubicweb-blog
Architecture: all
Depends:
python-cubicweb (>= 3.24),
python-six,
${python:Depends},
${misc:Depends},
Suggests:
cubicweb-comment (>= 1.6.3),
cubicweb-tag,
cubicweb-sioc,
python-feedparser,
python-rdflib
Recommends: cubicweb-preview, cubicweb-seo
Depends: ${misc:Depends}, ${python3:Depends}
Suggests: python3-cubicweb-comment (>= 1.6.3),
python3-cubicweb-sioc,
python3-cubicweb-tag,
python3-feedparser,
python3-rdflib,
Recommends: python3-cubicweb-preview, python3-cubicweb-seo
Description: blog component for the CubicWeb framework
This CubicWeb component provides blogging functionnalities.
.
CubicWeb is a semantic web application framework, see http://www.cubicweb.org
Package: cubicweb-blog
Architecture: all
Section: oldlibs
Depends: python-cubicweb-blog, ${misc:Depends}
Description: transitional package
This is a transitional package. It can safely be removed.
test
tox.ini
cubicweb_blog.egg_info
#!/usr/bin/make -f
export PYBUILD_NAME = cubicweb-blog
# Python 3.8 is broken in Debian unstable as of 2019-11-21
export PYBUILD_DISABLE_python3.8 = 1
%:
dh $@ --with python2
dh $@ --with python2,python3 --buildsystem=pybuild
extend-diff-ignore = "^(.hg(/|ignore$|tags$)|[^/]*\.spec$|__pkginfo__\.py$)"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment