Projet

Général

Profil

« Précédent | Suivant » 

Révision 2ebf524c

Ajouté par Frédéric Péters il y a environ 4 ans

debian: switch to python 3 (#39164)

Voir les différences:

debian/control
2 2
Section: web
3 3
Priority: optional
4 4
Maintainer: Frederic Peters <fpeters@entrouvert.com>
5
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), dh-python, debhelper (>= 9)
6
Build-Depends-Indep: gettext, python-django
5
Build-Depends: python3-setuptools (>= 0.6b3), python3-all, dh-python, debhelper (>= 9)
6
Build-Depends-Indep: gettext, python3-django
7 7
Standards-Version: 3.8.0.1
8
X-Python-Version: current
9 8

  
10 9
Package: wcs-au-quotidien
11 10
Architecture: all
12
Depends: ${python:Depends}, wcs, python-vobject, python-eopayment
13
Recommends: python-ldap
11
Depends: ${python3:Depends}, wcs, python3-vobject, python3-eopayment
12
Recommends: python3-ldap
14 13
Description: w.c.s. Form Server (Au Quotidien Extension)
15 14
 .
debian/rules
1 1
#!/usr/bin/make -f
2 2
# GNU copyright 1997 to 1999 by Joey Hess.
3 3

  
4
# Uncomment this to turn on verbose mode.
5
#export DH_VERBOSE=1
4
export PYBUILD_NAME=auquotidien
6 5

  
7 6
%:
8
	dh $@ --with python2
7
	dh $@ --with python3 --buildsystem=pybuild
debian/wcs-au-quotidien.cfg
9 9
#missing_appdir_redirect = http://www.mysite.com
10 10

  
11 11
[extra]
12
auquotidien = /usr/lib/python2.7/dist-packages/auquotidien/
12
auquotidien = /usr/lib/python3/dist-packages/auquotidien/
setup.py
1
#! /usr/bin/env python
1
#! /usr/bin/env python3
2 2

  
3 3
import os
4 4
import subprocess

Formats disponibles : Unified diff