Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2016-03-08 20:39:30
Size: 1870
Editor: SimonHanna
Comment:
Revision 4 as of 2016-03-10 01:38:23
Size: 2385
Editor: barry
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from SimonHanna/InstallDevEnvironment
Line 12: Line 13:
mkdir -p ~/dev/mailman $ mkdir -p ~/dev/mailman
Line 17: Line 18:
cd ~/dev/mailman
virtualenv -p /usr/bin/python3 venv3
virtualenv -p /usr/bin/python2 venv2
$ cd ~/dev/mailman
$ virtualenv -p /usr/bin/python3 venv3
$ virtualenv -p /usr/bin/python2 venv2
Line 26: Line 27:
Detailed instructions can be found at [[http://mailman.readthedocs.org/|readthedocs.org]].
Line 27: Line 30:
cd ~/dev/mailman
git clone git@gitlab.com:mailman/mailman.git
source venv3/bin/activate
cd mailman
mailman setup.py develop
deactivate
$ cd ~/dev/mailman
$ git clone git@gitlab.com:mailman/mailman.git
$ source venv3/bin/activate
$ cd mailman
$ mailman setup.py develop
$ deactivate
Line 36: Line 39:
Detailed instructions can be found at [[http://mailmanclient.readthedocs.org/|readthedocs.org]].
Line 37: Line 42:
cd ~/dev/mailman
git clone git@gitlab.com:mailman/mailmanclient.git
source venv2/bin/activate
cd mailmanclient
python setup.py develop
deactivate
$ cd ~/dev/mailman
$ git clone git@gitlab.com:mailman/mailmanclient.git
$ source venv2/bin/activate
$ cd mailmanclient
$ python setup.py develop
$ deactivate
Line 46: Line 51:
Detailed instructions can be found at [[http://postorius.readthedocs.org/|readthedocs.org]].
Line 49: Line 55:
cd ~/dev/mailman
git clone git@gitlab.com:mailman/postorius.git
source venv2/bin/activate
cd postorius
python setup.py develop
deactivate
$ cd ~/dev/mailman
$ git clone git@gitlab.com:mailman/postorius.git
$ source venv2/bin/activate
$ cd postorius
$ python setup.py develop
$ deactivate
Line 58: Line 64:
Detailed instructions can be found at [[http://hyperkitty.readthedocs.org/|readthedocs.org]].
Line 61: Line 68:
cd ~/dev/mailman
git clone git@gitlab.com:mailman/hyperkitty.git
source venv2/bin/activate
cd hypkerkitty
python setup.py develop
deactivate
$ cd ~/dev/mailman
$ git clone git@gitlab.com:mailman/hyperkitty.git
$ source venv2/bin/activate
$ cd hyperkitty
$ python setup.py develop
$ deactivate
Line 71: Line 78:
cd ~/dev/mailman
git clone git@gitlab.com:mailman/hyperkitty_standalone.git
git clone git@gitlab.com:mailman/postorius_standalone.git
$ cd ~/dev/mailman
$ git clone git@gitlab.com:mailman/hyperkitty_standalone.git
$ git clone git@gitlab.com:mailman/postorius_standalone.git
Line 79: Line 86:
cd ~/dev/mailman
source venv2/bin/activate
cd postorius_standalone
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
$ cd ~/dev/mailman
$ source venv2/bin/activate
$ cd postorius_standalone
$ python manage.py migrate
$ python manage.py createsuperuser
$ python manage.py runserver
Line 87: Line 94:
Hyperkitty is setup the same way as postorius. Hyperkitty is setup the same way as Postorius.

How to setup your dev environment

First you need to decide which projects you want to develop. You will most likely always need mailman-core and mailmanclient.

After that you can choose if you want to stick to the core, or you want to also develop django projects. There is postorius - Management Interface And Hyperkitty - Mailman Archiver

This guide assumes that you are setting everything in the directory created below:

$ mkdir -p ~/dev/mailman

And that you have two virtualenvs:

$ cd ~/dev/mailman
$ virtualenv -p /usr/bin/python3 venv3
$ virtualenv -p /usr/bin/python2 venv2

Mailman Core

Detailed instructions can be found at readthedocs.org.

$ cd ~/dev/mailman
$ git clone git@gitlab.com:mailman/mailman.git
$ source venv3/bin/activate
$ cd mailman
$ mailman setup.py develop
$ deactivate

Mailman Client

Detailed instructions can be found at readthedocs.org.

$ cd ~/dev/mailman
$ git clone git@gitlab.com:mailman/mailmanclient.git
$ source venv2/bin/activate
$ cd mailmanclient
$ python setup.py develop
$ deactivate

Postorius

Detailed instructions can be found at readthedocs.org.

Make sure to install mailmanclient first!

$ cd ~/dev/mailman
$ git clone git@gitlab.com:mailman/postorius.git
$ source venv2/bin/activate
$ cd postorius
$ python setup.py develop
$ deactivate

Hyperkitty

Detailed instructions can be found at readthedocs.org.

Make sure to install mailmanclient first!

$ cd ~/dev/mailman
$ git clone git@gitlab.com:mailman/hyperkitty.git
$ source venv2/bin/activate
$ cd hyperkitty
$ python setup.py develop
$ deactivate

Django projects

$ cd ~/dev/mailman
$ git clone git@gitlab.com:mailman/hyperkitty_standalone.git
$ git clone git@gitlab.com:mailman/postorius_standalone.git

To run any of the django projects

$ cd ~/dev/mailman
$ source venv2/bin/activate
$ cd postorius_standalone
$ python manage.py migrate
$ python manage.py createsuperuser
$ python manage.py runserver

Hyperkitty is setup the same way as Postorius.

MailmanWiki: DEV/SetupDevEnvironment (last edited 2018-05-14 15:15:45 by terri)