Update Debian packaging with support for Python 3

The new binary package with Python 3 support is named
python3-cubicweb-file 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.

We also take this opportunity to run the tests at build time.

Support for Python 3.8 is disabled as it is currently broken
in Debian unstable.
parent 5dee1993441f
......@@ -2,44 +2,31 @@ Source: cubicweb-file
Section: web
Priority: optional
Maintainer: Logilab Packaging Team <contact@logilab.fr>
Uploaders:
Nicolas Chauvat <nicolas.chauvat@logilab.fr>,
David Douard <david.douard@logilab.fr>,
Build-Depends:
debhelper (>= 9),
python-all (>= 2.7),
python3-all (>= 3.4),
dh-python,
python-setuptools,
python3-setuptools,
Standards-Version: 3.9.8
Uploaders: Nicolas Chauvat <nicolas.chauvat@logilab.fr>,
David Douard <david.douard@logilab.fr>
Build-Depends: debhelper (>= 9),
dh-python,
python-all,
python-cubicweb,
python-cubicweb-folder,
python-setuptools,
python-pytest,
python-pil,
python3-all,
python3-cubicweb,
python3-cubicweb-folder,
python3-setuptools,
python3-pytest,
python3-pil,
Standards-Version: 4.3.0
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-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
X-Python3-Version: >= 3.5
Package: python-cubicweb-file
Architecture: all
Section: python
Depends:
${python:Depends},
${misc:Depends},
Replaces:
cubicweb-file (<< 2.2.2-2),
Breaks:
cubicweb-file (<< 2.2.2-2),
Depends: ${misc:Depends}, ${python:Depends}
Description: file component for the CubicWeb framework (Python 2)
This CubicWeb component models files and images (pdf document,
word processor file, screenshots, etc).
......@@ -49,11 +36,16 @@ Description: file component for the CubicWeb framework (Python 2)
Package: python3-cubicweb-file
Architecture: all
Section: python
Depends:
${python3:Depends},
${misc:Depends},
Depends: ${misc:Depends}, ${python3: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
Package: cubicweb-file
Architecture: all
Section: oldlibs
Depends: python-cubicweb-file, ${misc:Depends}
Description: transitional package
This is a transitional package. It can safely be removed.
test
tox.ini
cubicweb_file.egg-info
#!/usr/bin/make -f
export PYBUILD_NAME=cubicweb-file
export PYBUILD_DISABLE=test
export PYBUILD_NAME = cubicweb-file
# Python 3.8 is broken in Debian unstable as of 2019-11-21
export PYBUILD_DISABLE_python3.8 = 1
%:
dh $@ --with python2,python3 --buildsystem=pybuild
......
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