debian: switch to Python 3 (#38106)
This commit is contained in:
parent
075e7fe64c
commit
a4a78e297e
|
@ -2,33 +2,36 @@ Source: fargo
|
|||
Maintainer: Entr'ouvert <info@entrouvert.com>
|
||||
Section: python
|
||||
Priority: optional
|
||||
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 9), dh-python, python-django, dh-systemd
|
||||
Build-Depends: python3-setuptools, python3-all, python3-django, debhelper (>= 9), dh-python, dh-systemd
|
||||
Standards-Version: 3.9.6
|
||||
X-Python-Version: >= 2.7
|
||||
|
||||
Package: python-fargo
|
||||
Package: python3-fargo
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, ${python:Depends},
|
||||
python-django (>= 1.8),
|
||||
python-django-filters (>= 1),
|
||||
python-django-filters (<< 2),
|
||||
python-gadjo,
|
||||
python-magic,
|
||||
python-sorl-thumbnail,
|
||||
Depends: ${misc:Depends}, ${python3:Depends},
|
||||
python3-django (>= 1.10),
|
||||
python3-django-filters (>= 1),
|
||||
python3-django-filters (<< 2),
|
||||
python3-django-tables2,
|
||||
python3-gadjo,
|
||||
python3-magic,
|
||||
python3-sorl-thumbnail,
|
||||
graphicsmagick-imagemagick-compat
|
||||
Recommends: python-django-mellon
|
||||
Description: Fargo Document Box (Python module)
|
||||
Recommends: python3-django-mellon
|
||||
Breaks: fargo (<<0.32.post5)
|
||||
Description: Fargo Document Box (Python 3 module)
|
||||
|
||||
Package: fargo
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends},
|
||||
python-fargo (= ${binary:Version}),
|
||||
python-hobo,
|
||||
python-django-tenant-schemas,
|
||||
python-psycopg2,
|
||||
python-django-mellon,
|
||||
python3-fargo (= ${binary:Version}),
|
||||
python3-hobo,
|
||||
python3-django-tenant-schemas,
|
||||
python3-psycopg2,
|
||||
python3-django-mellon,
|
||||
uwsgi,
|
||||
uwsgi-plugin-python
|
||||
uwsgi-plugin-python3
|
||||
Recommends: nginx, graphicsmagick
|
||||
Suggests: postgresql
|
||||
Breaks: python-fargo (<<0.32.post5)
|
||||
Replaces: python-fargo (<<0.32.post5)
|
||||
Description: Fargo Document Box
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# This file is sourced by "execfile" from fargo.settings
|
||||
# This file is sourced by "exec()" from fargo.settings
|
||||
|
||||
import os
|
||||
|
||||
|
@ -7,12 +7,12 @@ PROJECT_NAME = 'fargo'
|
|||
#
|
||||
# hobotization (multitenant)
|
||||
#
|
||||
execfile('/usr/lib/hobo/debian_config_common.py')
|
||||
exec(open('/usr/lib/hobo/debian_config_common.py').read())
|
||||
|
||||
#
|
||||
# local settings
|
||||
#
|
||||
execfile(os.path.join(ETC_DIR, 'settings.py'))
|
||||
exec(open(os.path.join(ETC_DIR, 'settings.py')).read())
|
||||
|
||||
# run additional settings snippets
|
||||
execfile('/usr/lib/hobo/debian_config_settings_d.py')
|
||||
exec(open('/usr/lib/hobo/debian_config_settings_d.py').read())
|
||||
|
|
|
@ -18,9 +18,9 @@ fi
|
|||
|
||||
if test $# -eq 0
|
||||
then
|
||||
python ${MANAGE} help
|
||||
python3 ${MANAGE} help
|
||||
exit 1
|
||||
fi
|
||||
|
||||
python ${MANAGE} "$@"
|
||||
python3 ${MANAGE} "$@"
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/usr/lib/fargo
|
|
@ -1,2 +0,0 @@
|
|||
usr/bin/manage.py /usr/lib/fargo
|
||||
usr/lib/python2*/*-packages
|
|
@ -1,8 +1,11 @@
|
|||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
export PYBUILD_NAME=fargo
|
||||
|
||||
%:
|
||||
dh $@ --with python2,systemd
|
||||
dh $@ --with python3,systemd --buildsystem=pybuild
|
||||
|
||||
override_dh_install:
|
||||
dh_install
|
||||
mv $(CURDIR)/debian/python3-fargo/usr/bin/manage.py $(CURDIR)/debian/fargo/usr/lib/fargo/manage.py
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
auto-procname = true
|
||||
procname-prefix-spaced = fargo
|
||||
|
||||
plugin = python
|
||||
plugin = python3
|
||||
module = fargo.wsgi:application
|
||||
|
||||
http-socket = /run/fargo/fargo.sock
|
||||
|
|
Loading…
Reference in New Issue