debian: switch to Python 3 (#35492)

This commit is contained in:
Frédéric Péters 2019-08-20 20:39:15 +02:00
parent bdb4d985d6
commit 97e9741641
7 changed files with 23 additions and 25 deletions

View File

@ -3,4 +3,3 @@ debian/chrono-manage /usr/bin
debian/settings.py /etc/chrono
debian/uwsgi.ini /etc/chrono
debian/debian_config.py /usr/lib/chrono
usr/bin/manage.py /usr/lib/chrono

34
debian/control vendored
View File

@ -2,32 +2,30 @@ Source: chrono
Maintainer: Frederic Peters <fpters@entrouvert.com>
Section: python
Priority: optional
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), python-django, debhelper (>= 9), dh-python, dh-systemd, ruby-sass
Build-Depends: python3-setuptools, python3-all, python3-django, debhelper (>= 9), dh-python, dh-systemd, ruby-sass
Standards-Version: 3.9.6
X-Python-Version: >= 2.7
Package: python-chrono
Package: python3-chrono
Architecture: all
Depends: ${misc:Depends}, ${python:Depends},
python-django (>= 1:1.11),
python-gadjo,
python-requests
Recommends: python-django-mellon
Breaks: chrono (<<0.84.post6)
Description: Agendas System (Python module)
Depends: ${misc:Depends}, ${python3:Depends},
python3-django (>= 1:1.11),
python3-gadjo,
python3-requests
Recommends: python3-django-mellon
Description: Agendas System (Python 3 module)
Package: chrono
Architecture: all
Depends: ${misc:Depends},
python-chrono (= ${binary:Version}),
python-hobo,
python-vobject,
python-django-tenant-schemas,
python-psycopg2,
python-django-mellon,
python-dateutil,
python3-chrono (= ${binary:Version}),
python3-hobo,
python3-vobject,
python3-django-tenant-schemas,
python3-psycopg2,
python3-django-mellon,
python3-dateutil,
uwsgi,
uwsgi-plugin-python
uwsgi-plugin-python3
Recommends: nginx
Suggests: postgresql
Breaks: python-chrono (<<0.84.post6)

View File

@ -1 +0,0 @@
/usr/lib/chrono

View File

@ -1 +0,0 @@
usr/lib/python2*/*-packages

9
debian/rules vendored
View File

@ -1,8 +1,11 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export PYBUILD_NAME=chrono
%:
dh $@ --with python2,systemd
dh $@ --with python3,systemd --buildsystem=pybuild
override_dh_install:
dh_install
mv $(CURDIR)/debian/python3-chrono/usr/bin/manage.py $(CURDIR)/debian/chrono/usr/lib/chrono/manage.py

2
debian/uwsgi.ini vendored
View File

@ -2,7 +2,7 @@
auto-procname = true
procname-prefix-spaced = chrono
plugin = python
plugin = python3
module = chrono.wsgi:application
http-socket = /run/chrono/chrono.sock