debian: switch to python 3 (#39164)

This commit is contained in:
Frédéric Péters 2020-01-18 17:02:51 +01:00
parent bb8a29bdc8
commit 2ebf524c7e
4 changed files with 8 additions and 10 deletions

9
debian/control vendored
View File

@ -2,14 +2,13 @@ Source: wcs-au-quotidien
Section: web
Priority: optional
Maintainer: Frederic Peters <fpeters@entrouvert.com>
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), dh-python, debhelper (>= 9)
Build-Depends-Indep: gettext, python-django
Build-Depends: python3-setuptools (>= 0.6b3), python3-all, dh-python, debhelper (>= 9)
Build-Depends-Indep: gettext, python3-django
Standards-Version: 3.8.0.1
X-Python-Version: current
Package: wcs-au-quotidien
Architecture: all
Depends: ${python:Depends}, wcs, python-vobject, python-eopayment
Recommends: python-ldap
Depends: ${python3:Depends}, wcs, python3-vobject, python3-eopayment
Recommends: python3-ldap
Description: w.c.s. Form Server (Au Quotidien Extension)
.

5
debian/rules vendored
View File

@ -1,8 +1,7 @@
#!/usr/bin/make -f
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export PYBUILD_NAME=auquotidien
%:
dh $@ --with python2
dh $@ --with python3 --buildsystem=pybuild

View File

@ -9,4 +9,4 @@ use_long_traces = true
#missing_appdir_redirect = http://www.mysite.com
[extra]
auquotidien = /usr/lib/python2.7/dist-packages/auquotidien/
auquotidien = /usr/lib/python3/dist-packages/auquotidien/

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
import os
import subprocess