debian: add support for python3 (#41564)

This commit is contained in:
Benjamin Dauvergne 2020-04-09 15:58:18 +02:00
parent b879ada6b8
commit 6cd2fe4363
3 changed files with 19 additions and 9 deletions

2
debian/compat vendored
View File

@ -1 +1 @@
7
9

19
debian/control vendored
View File

@ -2,18 +2,27 @@ Source: python-authentic2-cut
Maintainer: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Section: python
Priority: optional
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6), debhelper (>= 7.4.3),
python-django (>= 1.7)
Build-Depends: python3-setuptools, python3-all, python-setuptools, python-all, debhelper (>= 9.0.0),
python-django (>= 1.11), python3-django (>= 1.11), dh-python
Standards-Version: 3.9.1
X-Python-Version: >= 2.6
Package: python-authentic2-cut
Architecture: all
Depends: ${misc:Depends},
python-authentic2 (>= 2.1.20.1054),
Depends: ${misc:Depends}, ${python:Depends},
python-authentic2,
python-magic,
python-pil,
python-sorl-thumbnail,
graphicsmagick-imagemagick-compat
Description: CUT plugin for Authentic2
Package: python3-authentic2-cut
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends},
python3-authentic2,
python3-magic,
python3-pil,
python3-sorl-thumbnail,
graphicsmagick-imagemagick-compat
Description: CUT plugin for Authentic2

7
debian/rules vendored
View File

@ -1,6 +1,7 @@
#!/usr/bin/make -f
export PYBUILD_DISABLE=test
export PYBUILD_NAME=authentic2-cut
%:
dh $@ --with python2 --buildsystem=python_distutils
dh $@ --with python2,python3 --buildsystem=pybuild