debian: switch to Python 3 (#41581)
This commit is contained in:
parent
ae981257c3
commit
f71bb417f0
|
@ -2,35 +2,36 @@ Source: welco
|
|||
Maintainer: Frederic Peters <fpters@entrouvert.com>
|
||||
Section: python
|
||||
Priority: optional
|
||||
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 9), python-django, dh-python, dh-systemd
|
||||
Build-Depends: python3-setuptools, python3-all, debhelper (>= 9), python-django, dh-python, dh-systemd
|
||||
Standards-Version: 3.9.6
|
||||
X-Python-Version: >= 2.7
|
||||
|
||||
Package: python-welco
|
||||
Package: python3-welco
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, ${python:Depends},
|
||||
python-django (>= 1.8),
|
||||
python-gadjo,
|
||||
python-requests (>= 2.11),
|
||||
python-django-haystack (>= 2.4.0),
|
||||
python-django-reversion (>= 2.0.12),
|
||||
python-django-taggit (>= 0.17.4),
|
||||
Depends: ${misc:Depends}, ${python3:Depends},
|
||||
python3-django (>= 1:1.11),
|
||||
python3-gadjo,
|
||||
python3-requests (>= 2.11),
|
||||
python3-django-haystack (>= 2.4.0),
|
||||
python3-django-reversion (>= 2.0.12),
|
||||
python3-django-taggit (>= 0.17.4),
|
||||
libjs-pdf (<< 1.1)
|
||||
Recommends: python-django-mellon
|
||||
Recommends: python3-django-mellon
|
||||
Description: Multichannel request processing (Python module)
|
||||
|
||||
Package: welco
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends},
|
||||
python-welco (= ${binary:Version}),
|
||||
python-hobo,
|
||||
python-django-tenant-schemas,
|
||||
python-psycopg2,
|
||||
python-django-mellon,
|
||||
python-xstatic-select2,
|
||||
python3-welco (= ${binary:Version}),
|
||||
python3-hobo,
|
||||
python3-django-tenant-schemas,
|
||||
python3-psycopg2,
|
||||
python3-django-mellon,
|
||||
python3-xstatic-select2,
|
||||
uwsgi,
|
||||
uwsgi-plugin-python,
|
||||
uwsgi-plugin-python3,
|
||||
graphicsmagick
|
||||
Recommends: nginx
|
||||
Suggests: postgresql
|
||||
Breaks: python-welco (<< 0.73.post12)
|
||||
Replaces: python-welco (<< 0.73.post12)
|
||||
Description: Multichannel request processing
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
django_ckeditor python3-django-ckeditor
|
||||
gadjo python3-gadjo
|
||||
xstatic_select2 python3-xstatic-select2
|
|
@ -1 +0,0 @@
|
|||
django_ckeditor python-django-ckeditor
|
|
@ -1 +0,0 @@
|
|||
/usr/lib/welco
|
|
@ -1,2 +0,0 @@
|
|||
usr/bin/manage.py /usr/lib/welco
|
||||
usr/lib/python2*/*-packages
|
|
@ -1 +0,0 @@
|
|||
usr/share/javascript/pdf usr/lib/python2.7/dist-packages/welco/sources/mail/static/pdf
|
|
@ -0,0 +1 @@
|
|||
usr/share/javascript/pdf usr/lib/python3/dist-packages/welco/sources/mail/static/pdf
|
|
@ -1,8 +1,12 @@
|
|||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
export PYBUILD_NAME=welco
|
||||
export PYBUILD_DISABLE=test
|
||||
|
||||
%:
|
||||
dh $@ --with python2,systemd
|
||||
dh $@ --with python3,systemd --buildsystem=pybuild
|
||||
|
||||
override_dh_install:
|
||||
dh_install
|
||||
mv $(CURDIR)/debian/python3-welco/usr/bin/manage.py $(CURDIR)/debian/welco/usr/lib/welco/manage.py
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
auto-procname = true
|
||||
procname-prefix-spaced = welco
|
||||
|
||||
plugin = python
|
||||
plugin = python3
|
||||
module = welco.wsgi:application
|
||||
|
||||
http-socket = /run/welco/welco.sock
|
||||
|
|
|
@ -18,9 +18,9 @@ fi
|
|||
|
||||
if test $# -eq 0
|
||||
then
|
||||
python ${MANAGE} help
|
||||
python3 ${MANAGE} help
|
||||
exit 1
|
||||
fi
|
||||
|
||||
python ${MANAGE} "$@"
|
||||
python3 ${MANAGE} "$@"
|
||||
|
||||
|
|
Loading…
Reference in New Issue