debian: switch to Python 3 (#41206)

This commit is contained in:
Frédéric Péters 2020-03-31 21:01:30 +02:00
parent d40dee9476
commit cb880d0b4d
10 changed files with 25 additions and 21 deletions

5
debian/bijoe-manage vendored
View File

@ -18,9 +18,8 @@ fi
if test $# -eq 0
then
python ${MANAGE} help
python3 ${MANAGE} help
exit 1
fi
python ${MANAGE} "$@"
python3 ${MANAGE} "$@"

26
debian/control vendored
View File

@ -2,28 +2,28 @@ Source: bijoe
Section: python
Priority: optional
Maintainer: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6), debhelper (>= 9), python-django, dh-python, dh-systemd
Build-Depends: python3-setuptools, python3-all, debhelper (>= 9), python3-django, dh-python, dh-systemd
Standards-Version: 3.9.1
Homepage: http://dev.entrouvert.org/projects/publik-bi/
Homepage: https://dev.entrouvert.org/projects/bijoe/
Package: python-bijoe
Package: python3-bijoe
Architecture: all
Depends: ${python:Depends},
Depends: ${python3:Depends},
${misc:Depends},
python-django-jsonfield (>= 0.9.19),
python-hobo,
python-django-select2,
python-django-tenant-schemas,
python-psycopg2,
python-django-mellon,
python3-django-jsonfield (>= 0.9.19),
python3-hobo,
python3-django-select2,
python3-django-tenant-schemas,
python3-psycopg2,
python3-django-mellon,
wcs-olap
Description: BI dashboard from Postgres db with star schema
Package: bijoe
Architecture: all
Depends: ${python:Depends},
Depends: ${python3:Depends},
${misc:Depends},
python-bijoe (= ${binary:Version}),
python3-bijoe (= ${binary:Version}),
uwsgi,
uwsgi-plugin-python
uwsgi-plugin-python3
Description: BI dashboard from Postgres db with star schema

4
debian/py3dist-overrides vendored Normal file
View File

@ -0,0 +1,4 @@
isodate python3-isodate
psycopg2 python3-psycopg2
XStatic-ChartNew.js python3-xstatic-chartnew-js
xstatic-select2 python3-xstatic-select2

View File

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

View File

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

1
debian/python3-bijoe.install vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/python3.*

4
debian/rules vendored
View File

@ -1,4 +1,6 @@
#!/usr/bin/make -f
export PYBUILD_DISABLE=test
%:
dh $@ --with python2,systemd
dh $@ --with python3,systemd --buildsystem=pybuild

2
debian/uwsgi.ini vendored
View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import os
import sys