debian: switch to Python 3 (#36233)
This commit is contained in:
parent
848f36482d
commit
baf081c2c2
|
@ -18,9 +18,8 @@ fi
|
||||||
|
|
||||||
if test $# -eq 0
|
if test $# -eq 0
|
||||||
then
|
then
|
||||||
python ${MANAGE} help
|
python3 ${MANAGE} help
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python ${MANAGE} "$@"
|
python3 ${MANAGE} "$@"
|
||||||
|
|
||||||
|
|
|
@ -2,33 +2,32 @@ Source: combo
|
||||||
Maintainer: Jérôme Schneider <jschneider@entrouvert.com>
|
Maintainer: Jérôme Schneider <jschneider@entrouvert.com>
|
||||||
Section: python
|
Section: python
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 9), python-django, dh-python, dh-systemd, sassc
|
Build-Depends: python3-setuptools, python3-all, python3-django, debhelper (>= 9), dh-python, dh-systemd, sassc
|
||||||
Standards-Version: 3.9.6
|
Standards-Version: 3.9.6
|
||||||
X-Python-Version: >= 2.7
|
|
||||||
|
|
||||||
Package: python-combo
|
Package: python3-combo
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${misc:Depends}, ${python:Depends},
|
Depends: ${misc:Depends}, ${python3:Depends},
|
||||||
python-django (>= 1:1.11),
|
python3-django (>= 1:1.11),
|
||||||
python-djangorestframework (>= 3.3),
|
python3-djangorestframework (>= 3.3),
|
||||||
python-gadjo (>= 0.53),
|
python3-gadjo (>= 0.53),
|
||||||
python-pyproj,
|
python3-pyproj,
|
||||||
python-requests,
|
python3-requests,
|
||||||
python-feedparser,
|
python3-feedparser,
|
||||||
python-xstatic-josefinsans,
|
python3-xstatic-josefinsans,
|
||||||
python-xstatic-leaflet,
|
python3-xstatic-leaflet,
|
||||||
python-xstatic-leaflet-markercluster,
|
python3-xstatic-leaflet-markercluster,
|
||||||
python-xstatic-opensans,
|
python3-xstatic-opensans,
|
||||||
python-xstatic-roboto-fontface (<< 0.5.0.0),
|
python3-xstatic-roboto-fontface (<< 0.5.0.0),
|
||||||
python-eopayment (>= 1.35),
|
python3-eopayment (>= 1.35),
|
||||||
python-django-haystack (>= 2.4.0),
|
python3-django-haystack (>= 2.4.0),
|
||||||
python-django-ratelimit,
|
python3-django-ratelimit,
|
||||||
python-sorl-thumbnail,
|
python3-sorl-thumbnail,
|
||||||
python-pil,
|
python3-pil,
|
||||||
python-pywebpush,
|
python3-pywebpush,
|
||||||
python-pygal,
|
python3-pygal,
|
||||||
python-lxml
|
python3-lxml
|
||||||
Recommends: python-django-mellon, python-whoosh
|
Recommends: python3-django-mellon, python3-whoosh
|
||||||
Conflicts: python-lingo
|
Conflicts: python-lingo
|
||||||
Breaks: combo (<< 2.34.post2)
|
Breaks: combo (<< 2.34.post2)
|
||||||
Description: Portal Management System (Python module)
|
Description: Portal Management System (Python module)
|
||||||
|
@ -36,13 +35,13 @@ Description: Portal Management System (Python module)
|
||||||
Package: combo
|
Package: combo
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${misc:Depends},
|
Depends: ${misc:Depends},
|
||||||
python-combo (= ${binary:Version}),
|
python3-combo (= ${binary:Version}),
|
||||||
python-hobo (>= 0.63.1),
|
python3-hobo (>= 1.34),
|
||||||
python-django-tenant-schemas,
|
python3-django-tenant-schemas,
|
||||||
python-psycopg2,
|
python3-psycopg2,
|
||||||
python-django-mellon,
|
python3-django-mellon,
|
||||||
uwsgi,
|
uwsgi,
|
||||||
uwsgi-plugin-python
|
uwsgi-plugin-python3
|
||||||
Recommends: nginx
|
Recommends: nginx
|
||||||
Suggests: postgresql
|
Suggests: postgresql
|
||||||
Breaks: python-combo (<< 2.34.post2)
|
Breaks: python-combo (<< 2.34.post2)
|
||||||
|
|
|
@ -7,7 +7,7 @@ PROJECT_NAME = 'combo'
|
||||||
#
|
#
|
||||||
# hobotization (multitenant)
|
# hobotization (multitenant)
|
||||||
#
|
#
|
||||||
execfile('/usr/lib/hobo/debian_config_common.py')
|
exec(open('/usr/lib/hobo/debian_config_common.py').read())
|
||||||
|
|
||||||
# add custom hobo agent module
|
# add custom hobo agent module
|
||||||
INSTALLED_APPS = ('hobo.agent.combo', ) + INSTALLED_APPS
|
INSTALLED_APPS = ('hobo.agent.combo', ) + INSTALLED_APPS
|
||||||
|
@ -18,7 +18,7 @@ TEMPLATES[0]['OPTIONS']['context_processors'].append('hobo.context_processors.st
|
||||||
#
|
#
|
||||||
# local settings
|
# local settings
|
||||||
#
|
#
|
||||||
execfile(os.path.join(ETC_DIR, 'settings.py'))
|
exec(open(os.path.join(ETC_DIR, 'settings.py')).read())
|
||||||
|
|
||||||
# run additional settings snippets
|
# run additional settings snippets
|
||||||
execfile('/usr/lib/hobo/debian_config_settings_d.py')
|
exec(open('/usr/lib/hobo/debian_config_settings_d.py').read())
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
django_ckeditor python3-django-ckeditor
|
||||||
|
xstatic_leaflet python3-xstatic-leaflet,
|
||||||
|
xstatic_leaflet_markercluster python3-xstatic-leaflet-markercluster
|
||||||
|
xstatic_josefinsans python3-xstatic-josefinsans
|
||||||
|
xstatic_opensans python3-xstatic-opensans
|
||||||
|
eopayment python3-eopayment
|
||||||
|
gadjo python3-gadjo
|
||||||
|
pywebpush python3-pywebpush
|
|
@ -1 +0,0 @@
|
||||||
django_ckeditor python-django-ckeditor
|
|
|
@ -1 +0,0 @@
|
||||||
usr/lib/python2*/*-packages
|
|
|
@ -1 +0,0 @@
|
||||||
rm_conffile /etc/cron.hourly/python-combo 1.3-1 python-combo
|
|
|
@ -0,0 +1 @@
|
||||||
|
usr/lib/python3.*
|
|
@ -1,8 +1,7 @@
|
||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
# -*- makefile -*-
|
# -*- makefile -*-
|
||||||
|
|
||||||
# Uncomment this to turn on verbose mode.
|
export PYBUILD_DISABLE=test
|
||||||
#export DH_VERBOSE=1
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --with python2,systemd
|
dh $@ --with python3,systemd --buildsystem=pybuild
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
# WARNING! Quick-start development settings unsuitable for production!
|
# WARNING! Quick-start development settings unsuitable for production!
|
||||||
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
|
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
|
||||||
|
|
||||||
# This file is sourced by "execfile" from /usr/lib/combo/debian_config.py
|
# This file is sourced by "exec(open(...).read())" from
|
||||||
|
# /usr/lib/combo/debian_config.py
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
auto-procname = true
|
auto-procname = true
|
||||||
procname-prefix-spaced = combo
|
procname-prefix-spaced = combo
|
||||||
|
|
||||||
plugin = python
|
plugin = python3
|
||||||
module = combo.wsgi:application
|
module = combo.wsgi:application
|
||||||
|
|
||||||
http-socket = /run/combo/combo.sock
|
http-socket = /run/combo/combo.sock
|
||||||
|
|
Loading…
Reference in New Issue