Projet

Général

Profil

0001-debian-switch-to-Python-3-35492.patch

Frédéric Péters, 20 août 2019 21:58

Télécharger (4,05 ko)

Voir les différences:

Subject: [PATCH] debian: switch to Python 3 (#35492)

 debian/chrono.install                         |  1 -
 debian/control                                | 31 +++++++++----------
 debian/python-chrono.dirs                     |  1 -
 debian/python-chrono.install                  |  1 -
 ...python-chrono.docs => python3-chrono.docs} |  0
 debian/rules                                  |  9 ++++--
 debian/uwsgi.ini                              |  2 +-
 7 files changed, 22 insertions(+), 23 deletions(-)
 delete mode 100644 debian/python-chrono.dirs
 delete mode 100644 debian/python-chrono.install
 rename debian/{python-chrono.docs => python3-chrono.docs} (100%)
debian/chrono.install
3 3
debian/settings.py        /etc/chrono
4 4
debian/uwsgi.ini          /etc/chrono
5 5
debian/debian_config.py   /usr/lib/chrono
6
usr/bin/manage.py         /usr/lib/chrono
debian/control
2 2
Maintainer: Frederic Peters <fpters@entrouvert.com>
3 3
Section: python
4 4
Priority: optional
5
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), python-django, debhelper (>= 9), dh-python, dh-systemd, ruby-sass
5
Build-Depends: python3-setuptools, python3-all, python3-django, debhelper (>= 9), dh-python, dh-systemd, ruby-sass
6 6
Standards-Version: 3.9.6
7
X-Python-Version: >= 2.7
8 7

  
9
Package: python-chrono
8
Package: python3-chrono
10 9
Architecture: all
11
Depends: ${misc:Depends}, ${python:Depends},
12
    python-django (>= 1:1.11),
13
    python-gadjo,
14
    python-requests
15
Recommends: python-django-mellon
10
Depends: ${misc:Depends}, ${python3:Depends},
11
    python3-django (>= 1:1.11),
12
    python3-gadjo,
13
    python3-requests
14
Recommends: python3-django-mellon
16 15
Description: Agendas System (Python module)
17 16

  
18 17
Package: chrono
19 18
Architecture: all
20 19
Depends: ${misc:Depends},
21
    python-chrono (= ${binary:Version}),
22
    python-hobo,
23
    python-vobject,
24
    python-django-tenant-schemas,
25
    python-psycopg2,
26
    python-django-mellon,
27
    python-dateutil,
20
    python3-chrono (= ${binary:Version}),
21
    python3-hobo,
22
    python3-vobject,
23
    python3-django-tenant-schemas,
24
    python3-psycopg2,
25
    python3-django-mellon,
26
    python3-dateutil,
28 27
    uwsgi,
29
    uwsgi-plugin-python
28
    uwsgi-plugin-python3
30 29
Recommends: nginx
31 30
Suggests: postgresql
32 31
Description: Agendas System
debian/python-chrono.dirs
1
/usr/lib/chrono
debian/python-chrono.install
1
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=chrono
6 5

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

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

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

  
8 8
http-socket = /run/chrono/chrono.sock
9
-