debian: run with python 3 (#39164)
This commit is contained in:
parent
40e5f9dd4c
commit
63378e331d
|
@ -2,37 +2,36 @@ Source: wcs
|
|||
Section: web
|
||||
Priority: optional
|
||||
Maintainer: Frederic Peters <fpeters@debian.org>
|
||||
Build-Depends: python-quixote, debhelper (>= 9), dh-python, dh-systemd, python-setuptools, gettext, python-gadjo
|
||||
Build-Depends: python3-quixote, debhelper (>= 9), python3-all, dh-python, dh-systemd, python3-setuptools, gettext, python3-gadjo
|
||||
Standards-Version: 3.9.6.0
|
||||
Homepage: https://dev.entrouvert.org/projects/wcs/
|
||||
X-Python-Version: 2.7
|
||||
|
||||
Package: wcs
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, ${python:Depends},
|
||||
python-django (>= 1.8),
|
||||
python-quixote,
|
||||
python-hobo,
|
||||
Depends: ${misc:Depends}, ${python3:Depends},
|
||||
python3-django (>= 1:1.11),
|
||||
python3-quixote,
|
||||
python3-hobo,
|
||||
graphviz,
|
||||
python-django-ckeditor,
|
||||
python-django-ratelimit,
|
||||
python-feedparser,
|
||||
python-imaging,
|
||||
python-pyproj,
|
||||
python-requests,
|
||||
python-vobject,
|
||||
python-xstatic-leaflet,
|
||||
python3-django-ckeditor,
|
||||
python3-django-ratelimit,
|
||||
python3-feedparser,
|
||||
python3-imaging,
|
||||
python3-pyproj,
|
||||
python3-requests,
|
||||
python3-vobject,
|
||||
python3-xstatic-leaflet,
|
||||
uwsgi,
|
||||
uwsgi-plugin-python
|
||||
Recommends: python-dns,
|
||||
python-xlwt,
|
||||
python-qrcode,
|
||||
python-magic,
|
||||
python-docutils,
|
||||
uwsgi-plugin-python3
|
||||
Recommends: python3-dns,
|
||||
python3-xlwt,
|
||||
python3-qrcode,
|
||||
python3-magic,
|
||||
python3-docutils,
|
||||
poppler-utils
|
||||
Suggests: python-libxml2,
|
||||
python-lasso,
|
||||
python-psycopg2
|
||||
Suggests: python3-libxml2,
|
||||
python3-lasso,
|
||||
python3-psycopg2
|
||||
Description: web application to design and set up online forms
|
||||
w.c.s. is a web application which allows to design and set up online forms.
|
||||
.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# This file is sourced by "execfile" from wcs.settings
|
||||
# This file is sourced by "exec(open(..." from wcs.settings
|
||||
|
||||
import os
|
||||
|
||||
|
@ -7,7 +7,7 @@ PROJECT_NAME = 'wcs'
|
|||
#
|
||||
# hobotization
|
||||
#
|
||||
execfile('/usr/lib/hobo/debian_config_common.py')
|
||||
exec(open('/usr/lib/hobo/debian_config_common.py').read())
|
||||
|
||||
# and some hobo parts that are specific to w.c.s.
|
||||
TEMPLATES[0]['OPTIONS']['context_processors'] = [
|
||||
|
@ -40,7 +40,7 @@ LOGGING = {}
|
|||
#
|
||||
# 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())
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
#!/usr/bin/make -f
|
||||
# GNU copyright 1997 to 1999 by Joey Hess.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
export PYBUILD_NAME=wcs
|
||||
|
||||
%:
|
||||
dh $@ --with python2,systemd
|
||||
dh $@ --with python3,systemd --buildsystem=pybuild
|
||||
|
||||
override_dh_install:
|
||||
dh_install
|
||||
|
@ -15,3 +14,6 @@ override_dh_install:
|
|||
$(CURDIR)/debian/wcs/usr/lib/wcs/
|
||||
install -d $(CURDIR)/debian/wcs/etc/wcs
|
||||
install -m 644 wcs.cfg-sample $(CURDIR)/debian/wcs/etc/wcs/wcs.cfg
|
||||
|
||||
override_dh_auto_test:
|
||||
# skip upstream tests
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
auto-procname = true
|
||||
procname-prefix-spaced = wcs
|
||||
|
||||
plugin = python
|
||||
plugin = python3
|
||||
module = wcs.wsgi:application
|
||||
|
||||
http-socket = /run/wcs/wcs.sock
|
||||
|
|
|
@ -18,8 +18,8 @@ fi
|
|||
|
||||
if test $# -eq 0
|
||||
then
|
||||
python ${MANAGE} help
|
||||
python3 ${MANAGE} help
|
||||
exit 1
|
||||
fi
|
||||
|
||||
python ${MANAGE} "$@"
|
||||
python3 ${MANAGE} "$@"
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
interest-noawait hobo-redeploy
|
||||
interest-noawait /usr/lib/python2.7/dist-packages/gadjo/static
|
||||
interest-noawait /usr/lib/python3/dist-packages/gadjo/static
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
|
6
setup.py
6
setup.py
|
@ -1,4 +1,4 @@
|
|||
#! /usr/bin/env python
|
||||
#! /usr/bin/env python3
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
|
@ -12,7 +12,7 @@ from setuptools import setup, find_packages
|
|||
|
||||
local_cfg = None
|
||||
if os.path.exists('wcs/wcs_cfg.py'):
|
||||
local_cfg = file('wcs/wcs_cfg.py').read()
|
||||
local_cfg = open('wcs/wcs_cfg.py').read()
|
||||
os.unlink('wcs/wcs_cfg.py')
|
||||
|
||||
|
||||
|
@ -138,4 +138,4 @@ setup(
|
|||
)
|
||||
|
||||
if local_cfg:
|
||||
file('wcs/wcs_cfg.py', 'w').write(local_cfg)
|
||||
open('wcs/wcs_cfg.py', 'w').write(local_cfg)
|
||||
|
|
Loading…
Reference in New Issue