debian: run with python 3 (#41871)

This commit is contained in:
Frédéric Péters 2021-02-28 14:18:28 +01:00
parent 3f589e9249
commit b77c415819
8 changed files with 20 additions and 21 deletions

2
debian/compat vendored
View File

@ -1 +1 @@
9
10

26
debian/control vendored
View File

@ -2,26 +2,26 @@ Source: zoo
Section: python
Priority: optional
Maintainer: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Build-Depends: debhelper (>= 9),
Build-Depends: debhelper (>= 10),
dh-python,
dh-systemd,
python-setuptools,
python-all,
python-django
python3-setuptools,
python3-all,
python3-django
Standards-Version: 3.9.6
Homepage: https://dev.entrouvert.org/projects/zoo
Package: zoo
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, adduser,
python-django (>= 1.10),
python-hobo,
python-django-tenant-schemas,
python-psycopg2,
python-memcache,
python-cached-property,
python-django-admin-rangefilter,
Depends: ${misc:Depends}, ${python3:Depends}, adduser,
python3-django (>= 1:1.11),
python3-hobo,
python3-django-tenant-schemas,
python3-psycopg2,
python3-memcache,
python3-cached-property,
python3-django-admin-rangefilter,
uwsgi,
uwsgi-plugin-python
uwsgi-plugin-python3
Recommends: nginx, postgresql, memcached
Description: Maintain a graph of objects

2
debian/py3dist-overrides vendored Normal file
View File

@ -0,0 +1,2 @@
django_admin_rangefilter python3-django-admin-rangefilter
gadjo python3-gadjo

View File

@ -1,2 +0,0 @@
django_admin_rangefilter python-django-admin-rangefilter
gadjo python-gadjo

2
debian/rules vendored
View File

@ -4,4 +4,4 @@
export PYBUILD_DISABLE=test
%:
dh $@ --with python2,systemd --buildsystem=pybuild
dh $@ --with python3,systemd --buildsystem=pybuild

2
debian/uwsgi.ini vendored
View File

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

3
debian/zoo-manage vendored
View File

@ -22,5 +22,4 @@ then
exit 1
fi
python ${MANAGE} "$@"
python3 ${MANAGE} "$@"

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
import os