Commit 74caf9d2 authored by Andrej Shadura's avatar Andrej Shadura

Python 3

Closes: #897222
parent f95f78f6
......@@ -9,35 +9,35 @@ Build-Depends:
dh-systemd (>= 1.5),
libjs-jquery,
po-debconf,
python (>= 2.6.6-3),
python-attr (>= 16.0.0),
python-bcrypt,
python-blist,
python-canonicaljson (>= 1.1.3),
python-daemonize,
python-frozendict (>= 0.4),
python-jsonschema (>= 2.5.1),
python-mock,
python-msgpack (>= 0.3.0),
python-nacl (>= 0.3.0),
python-netaddr (>= 0.7.18),
python-openssl (>= 0.14),
python-phonenumbers,
python-pil,
python-prometheus-client,
python-psutil,
python-pyasn1,
python-pymacaroons,
python-pysaml2,
python-service-identity (>= 1.0.0),
python-setuptools (>= 0.6b3),
python-signedjson (>= 1.0.0),
python-six,
python-sortedcontainers,
python-treq (>= 15.1.0),
python-twisted (>= 17.1.0),
python-unpaddedbase64 (>= 1.0.1),
python-yaml
python3,
python3-attr (>= 16.0.0),
python3-bcrypt,
python3-blist,
python3-canonicaljson (>= 1.1.3),
python3-daemonize,
python3-frozendict (>= 0.4),
python3-jsonschema (>= 2.5.1),
python3-mock,
python3-msgpack (>= 0.3.0),
python3-nacl (>= 0.3.0),
python3-netaddr (>= 0.7.18),
python3-openssl (>= 0.14),
python3-phonenumbers,
python3-pil,
python3-prometheus-client,
python3-psutil,
python3-pyasn1,
python3-pymacaroons,
python3-pysaml2,
python3-service-identity (>= 1.0.0),
python3-setuptools (>= 0.6b3),
python3-signedjson (>= 1.0.0),
python3-six,
python3-sortedcontainers,
python3-treq (>= 15.1.0),
python3-twisted (>= 17.1.0),
python3-unpaddedbase64 (>= 1.0.1),
python3-yaml
Standards-Version: 3.9.8
X-Python-Version: >= 2.7
Homepage: https://matrix.org/docs/projects/server/synapse.html
......@@ -51,22 +51,22 @@ Depends:
debconf,
libjs-jquery,
lsb-base (>= 3.0-6),
python-canonicaljson (>= 1.1.3),
python-nacl (>= 1.2.1),
python-pymacaroons,
python-pysaml2 (>= 4.0.0),
python-systemd,
python-twisted (>= 17.1.0),
python3-canonicaljson (>= 1.1.3),
python3-nacl (>= 1.2.1),
python3-pymacaroons,
python3-pysaml2 (>= 4.0.0),
python3-systemd,
python3-twisted (>= 17.1.0),
${misc:Depends},
${python:Depends}
${python3:Depends}
Suggests:
python-bleach (>= 1.4.2),
python-jinja2 (>= 2.8)
python3-bleach (>= 1.4.2),
python3-jinja2 (>= 2.8)
Recommends:
python-lxml,
python-psycopg2,
# python-priority,
# python-h2 (>= 3.0.0)
python3-lxml,
python3-psycopg2,
# python3-priority,
# python3-h2 (>= 3.0.0)
Description: Matrix reference homeserver
Synapse is the reference Python/Twisted Matrix homeserver implementation.
.
......
......@@ -22,7 +22,7 @@ NAME=matrix-synapse
SCRIPTNAME=/etc/init.d/$NAME
CONFIGFILE_SERVERNAME="/etc/matrix-synapse/conf.d/server_name.yaml"
PYTHON="/usr/bin/python"
PYTHON="/usr/bin/python3"
CONFIGS="--config-path /etc/matrix-synapse/homeserver.yaml --config-path /etc/matrix-synapse/conf.d/"
USER="matrix-synapse"
SHAREDIR=/var/lib/$NAME
......
......@@ -7,8 +7,8 @@ Type=simple
User=matrix-synapse
WorkingDirectory=/var/lib/matrix-synapse
EnvironmentFile=/etc/default/matrix-synapse
ExecStartPre=/usr/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-synapse/homeserver.yaml --config-path=/etc/matrix-synapse/conf.d/ --generate-keys
ExecStart=/usr/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-synapse/homeserver.yaml --config-path=/etc/matrix-synapse/conf.d/
ExecStartPre=/usr/bin/python3 -m synapse.app.homeserver --config-path=/etc/matrix-synapse/homeserver.yaml --config-path=/etc/matrix-synapse/conf.d/ --generate-keys
ExecStart=/usr/bin/python3 -m synapse.app.homeserver --config-path=/etc/matrix-synapse/homeserver.yaml --config-path=/etc/matrix-synapse/conf.d/
Restart=on-failure
RestartSec=3
......
......@@ -2,7 +2,7 @@
export PYBUILD_NAME=matrix-synapse
%:
dh $@ --with python2 --with systemd --buildsystem=pybuild --no-guessing-deps
dh $@ --with python3 --with systemd --buildsystem=pybuild --no-guessing-deps
override_dh_auto_install:
dh_auto_install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment