Projet

Général

Profil

« Précédent | Suivant » 

Révision 2c9b86e6

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

debian: switch to Python 3 (#41651)

Voir les différences:

debian/control
2 2
Maintainer: Serghei Mihai <smihai@entrouvert.com>
3 3
Section: python
4 4
Priority: optional
5
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 9), dh-python, dh-systemd,
6
    python-django
5
Build-Depends: python3-setuptools, python3-all, debhelper (>= 9), dh-python, dh-systemd, python3-django
7 6
Standards-Version: 3.9.1
8 7

  
9
Package: python-corbo
8
Package: python3-corbo
10 9
Architecture: all
11
Depends: ${misc:Depends}, ${python:Depends},
12
    python-django (> 1.7),
13
    python-django-ckeditor,
14
    python-gadjo,
15
    python-emails,
16
    python-requests,
17
    python-feedparser
18
Description: Announces Manager (Python module)
10
Depends: ${misc:Depends}, ${python3:Depends},
11
    python3-django (> 1.7),
12
    python3-django-ckeditor,
13
    python3-gadjo,
14
    python3-emails,
15
    python3-requests,
16
    python3-feedparser
17
Description: Announces Manager (Python 3 module)
19 18

  
20 19
Package: corbo
21 20
Architecture: all
22 21
Depends: ${misc:Depends},
23
    python-corbo (= ${binary:Version}),
24
    python-hobo,
25
    python-django-tenant-schemas,
26
    python-psycopg2,
27
    python-django-mellon,
22
    python3-corbo (= ${binary:Version}),
23
    python3-hobo,
24
    python3-django-tenant-schemas,
25
    python3-psycopg2,
26
    python3-django-mellon,
28 27
    uwsgi,
29
    uwsgi-plugin-python
28
    uwsgi-plugin-python3
30 29
Recommends: nginx
31 30
Suggests: postgresql
31
Breaks: python-corbo (<<0.22)
32
Replaces: python-corbo (<<0.22)
32 33
Description: Announces Manager
debian/corbo-manage
18 18

  
19 19
if test $# -eq 0
20 20
then
21
    python ${MANAGE} help
21
    python3 ${MANAGE} help
22 22
    exit 1
23 23
fi
24 24

  
25
python ${MANAGE} "$@"
25
python3 ${MANAGE} "$@"
debian/python-corbo.install
1
usr/bin/manage.py /usr/lib/corbo
2
usr/lib/python2*/*-packages
debian/rules
1 1
#!/usr/bin/make -f
2 2
# -*- makefile -*-
3 3

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

  
7 7
%:
8
	dh $@ --with python2,systemd
8
	dh $@ --with python3,systemd --buildsystem=pybuild
9

  
10
override_dh_install:
11
	dh_install
12
	mv $(CURDIR)/debian/python3-corbo/usr/bin/manage.py $(CURDIR)/debian/corbo/usr/lib/corbo/manage.py
debian/uwsgi.ini
2 2
auto-procname = true
3 3
procname-prefix-spaced = corbo
4 4

  
5
plugin = python
5
plugin = python3
6 6
module = corbo.wsgi:application
7 7

  
8 8
http-socket = /run/corbo/corbo.sock
manage.py
1
#!/usr/bin/env python
1
#!/usr/bin/env python3
2 2
import os
3 3
import sys
4 4

  

Formats disponibles : Unified diff