Commit 62c29b86 authored by Raphaël Hertzog's avatar Raphaël Hertzog

Use python3 by default in shebang and documentation

parent 4f7d1624
......@@ -61,7 +61,7 @@ and the system user which owns the application is called ``dtracker`` the conten
And the ``.forward`` file should be::
| python path/to/manage.py distro_tracker_control
| python3 path/to/manage.py distro_tracker_control
Mails received at ``DISTRO_TRACKER_CONTACT_EMAIL`` should be saved or forwarded to the
Distro Tracker administrators. This can be done by adding an additional alias to
......@@ -86,7 +86,7 @@ are not recognized. Such router and transport could be::
distro_tracker_dispatch_pipe:
driver = pipe
command = python /path/to/manage.py distro_tracker_dispatch
command = python3 /path/to/manage.py distro_tracker_dispatch
user = dtracker
group = mail
log_output
......@@ -120,9 +120,9 @@ The file ``/etc/postfix/virtual`` would be::
The ``/etc/aliases`` file should then include the following lines::
dtracker-owner: some-admin-user
dtracker-control: "| python /path/to/manage.py distro_tracker_control"
dtracker-dispatch: "| python /path/to/manage.py distro_tracker_dispatch"
dtracker-news: "| python /path/to/manage.py distro_tracker_receive_news"
dtracker-control: "| python3 /path/to/manage.py distro_tracker_control"
dtracker-dispatch: "| python3 /path/to/manage.py distro_tracker_dispatch"
dtracker-news: "| python3 /path/to/manage.py distro_tracker_receive_news"
Then, the ``main.cf`` file should be edited to include::
......
......@@ -10,31 +10,26 @@ Requirements
Distro Tracker currently depends on the following Debian packages:
- python-django (>= 1.8)
- python-requests
- python-django-jsonfield (>= 1.0.0)
- python-django-debug-toolbar (in development mode only)
- python-django-captcha (optional)
- python-debian
- python-debianbts
- python-apt
- python-gpgme
- python-yaml
- python-bs4
- python-pyinotify
- python-tox (for development only)
- python-selenium (for development only)
- python3-django (>= 1.11)
- python3-requests
- python3-django-jsonfield (>= 1.0.0)
- python3-django-debug-toolbar (in development mode only)
- python3-django-captcha (optional)
- python3-debian
- python3-debianbts
- python3-apt
- python3-gpgme
- python3-yaml
- python3-bs4
- python3-pyinotify
- python3-tox (for development only)
- python3-selenium (for development only)
- chromedriver (for development only)
- chromium (for development only)
For Python2.7, the following additional packages are required:
Here is the list of required packages for development on Debian Buster::
- python-mock (for development only)
- python-lzma
Here is the list of required packages for development on Debian Jessie::
$ sudo apt install python-django python-requests python-django-jsonfield python-django-debug-toolbar python-debian python-debianbts python-apt python-gpgme python-yaml python-bs4 python-pyinotify python-tox python-mock python-lzma python-selenium python3-django python3-requests python3-django-jsonfield python3-django-debug-toolbar python3-debian python3-debianbts python3-apt python3-gpgme python3-yaml python3-bs4 python3-pyinotify python3-selenium chromium chromedriver
$ sudo apt install python3-django python3-requests python3-django-jsonfield python3-django-debug-toolbar python3-debian python3-debianbts python3-apt python3-gpgme python3-yaml python3-bs4 python3-pyinotify python3-selenium chromium chromedriver
.. _database_setup:
......
#!/usr/bin/env python
#!/usr/bin/env python3
# Copyright 2013 The Distro Tracker Developers
# See the COPYRIGHT file at the top-level directory of this distribution and
......
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