1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
#
# Buildout configuration for Mailman + Postorius + HyperKitty
#
[configuration]
# Choose 'development' or 'production'
deployment = development
# You shouldn't need to edit anything below
[buildout]
parts =
main
mailman-web
mailman
templates
develop = .
[main]
recipe = zc.recipe.egg
eggs =
mailman-bundler
${mailman-web:eggs}
dependent-scripts = true
initialization =
import os
os.environ['MAILMAN_CONFIG_FILE'] = '${buildout:directory}/deployment/mailman.cfg'
os.environ['DJANGO_SETTINGS_MODULE'] = '${mailman-web:project}.${mailman-web:settings}'
[mailman]
recipe = collective.recipe.cmd
python3-version = 3.4
on_install = true
venv-dir = ${buildout:directory}/venv-${mailman:python3-version}
cmds =
virtualenv -p /usr/bin/python${mailman:python3-version} ${mailman:venv-dir}
${mailman:venv-dir}/bin/pip install --pre mailman mailman-hyperkitty
uninstall_cmds =
rm -rf ${mailman:venv-dir}
[mailman-web]
recipe = djangorecipe
project = mailman_web
eggs =
Django < 1.8
postorius
hyperkitty
Whoosh
mock
beautifulsoup4
control-script = mailman-web-django-admin
wsgi = true
wsgi-script = mailman-web.wsgi
settings = ${configuration:deployment}
test =
postorius
hyperkitty
interpreter = py
[templates]
recipe = z3c.recipe.filetemplate
source-directory = templates
interpreted-options =
venv-directory = sys.prefix
venv-sitelib-directory = __import__('distutils').sysconfig.get_python_lib()
[gunicorn]
recipe = zc.recipe.egg
eggs =
gunicorn
${mailman-web:eggs}
dependent-scripts = true
initialization =
import os
os.environ['DJANGO_SETTINGS_MODULE'] = '${mailman-web:project}.${mailman-web:settings}'
|