From 2ebf524c7ea226f632dd5f321b5af70caa4b9806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 18 Jan 2020 17:02:51 +0100 Subject: [PATCH] debian: switch to python 3 (#39164) --- debian/control | 9 ++++----- debian/rules | 5 ++--- debian/wcs-au-quotidien.cfg | 2 +- setup.py | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/debian/control b/debian/control index 5bcd808..053bc28 100644 --- a/debian/control +++ b/debian/control @@ -2,14 +2,13 @@ Source: wcs-au-quotidien Section: web Priority: optional Maintainer: Frederic Peters -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) . diff --git a/debian/rules b/debian/rules index 11f9b6f..845204e 100755 --- a/debian/rules +++ b/debian/rules @@ -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 diff --git a/debian/wcs-au-quotidien.cfg b/debian/wcs-au-quotidien.cfg index 1bec7da..a0e947b 100644 --- a/debian/wcs-au-quotidien.cfg +++ b/debian/wcs-au-quotidien.cfg @@ -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/ diff --git a/setup.py b/setup.py index 72a2632..4da6058 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import os import subprocess