source: main/waeup.kofa/trunk/buildout.cfg @ 10001

Last change on this file since 10001 was 8796, checked in by uli, 12 years ago

Make main package exchangeable in etc/ files.

File size: 4.7 KB
Line 
1[buildout]
2develop = .
3parts =
4    eggbasket
5    app
6    i18n
7    test
8    mkdirs
9    zpasswd
10    zope_conf
11    site_zcml
12    zdaemon_conf
13    deploy_ini
14    debug_ini
15    profile_ini
16    waeupdocs
17    coverage-detect
18    coverage-report
19# kofactl creation must be _after_ app!
20    kofactl
21# For backward compatibility, telling buildout not to throw away
22# the data and log subdirectories from the parts directory.
23    data
24    log
25# newest = false
26
27extends = versions.cfg
28
29# eggs will be installed in the default buildout location
30# (see .buildout/default.cfg in your home directory)
31# unless you specify an eggs-directory option here.
32
33[kofa_params]
34## Basic parameters for deployment.
35# default is 127.0.0.1
36host = 0.0.0.0
37# default is 8080
38base_port = 8080
39zeo1_port = 8080
40zeo2_port = 8081
41zeo3_port = 8082
42server_port = 8100
43# default 7. Number of pre-opened ZODB threads/client
44pool_size = 7
45# default 20MB. Cache size of each client (ZEO only)
46client_cache = 20MB
47# default 5000. Number of objects cached.
48object_cache = 5000
49# number of preopened paster threads, default 10
50threadpool_workers = 10
51# package to be developed
52devel_pkg = waeup.kofa
53
54[app]
55# This creates all scripts in bin/. The kofactl created here is 'faulty'.
56recipe = zc.recipe.egg
57eggs = waeup.kofa [beaker]
58       z3c.evalexception>=2.0
59       Paste
60       PasteScript
61       PasteDeploy
62       repoze.profile
63       ZODB3
64interpreter = python-console
65
66[kofactl]
67# See http://pypi.python.org/pypi/zc.recipe.egg for details...
68# Here we create the kofactl script again, this time with a
69# fixed path to zdaemon.conf as argument.
70recipe = zc.recipe.egg
71eggs = waeup.kofa [beaker]
72arguments = "${buildout:parts-directory}/etc/zdaemon.conf"
73scripts = kofactl=kofactl
74
75[mkdirs]
76recipe = z3c.recipe.mkdir
77paths =
78    ${zope_conf:filestorage}
79    ${zope_conf:logfiles}
80    ${zope_conf:blobstorage}
81    ${buildout:directory}/var/mailqueue/cur
82    ${buildout:directory}/var/mailqueue/tmp
83    ${buildout:directory}/var/mailqueue/new
84    ${buildout:directory}/var/datacenter/media
85    ${buildout:directory}/parts/test/datacenter
86
87[test]
88recipe = zc.recipe.testrunner
89eggs = waeup.kofa [beaker, test]
90defaults = ['--tests-pattern', '^f?tests$', '-v']
91
92# this section named so that the i18n scripts are called bin/i18n...
93[i18n]
94recipe = z3c.recipe.i18n:i18n
95packages = waeup.kofa
96eggs = waeup.kofa
97domain = waeup.kofa
98output = src/waeup/kofa/locales
99zcml =
100
101# This section is named so that the zpasswd utility is
102# called `zpasswd`
103[zpasswd]
104recipe = z3c.recipe.dev:script
105eggs = waeup.kofa
106module = zope.app.server.zpasswd
107method = main
108
109[zope_conf]
110recipe = collective.recipe.template
111input = etc/zope.conf.in
112output = ${buildout:parts-directory}/etc/zope.conf
113filestorage = ${buildout:directory}/var/filestorage
114blobstorage = ${buildout:directory}/var/blobstorage
115logfiles = ${buildout:directory}/var/log
116extra =
117# extra = <grokwarnings>True</grokwarnings>
118# 'extra' is copied verbatim. Use it for product config sections and so.
119
120# The [data] and [log] parts are still in here to instruct buildout to not
121# unintentionally throw away the parts/data and parts/log subdirectories
122# that contain the Data.fs and the log files. These files should be
123# copied to the new locations. See the upgrade notes for more information.
124[data]
125recipe = zc.recipe.filestorage
126
127[log]
128recipe = zc.recipe.filestorage
129
130[mailqueue]
131recipe = zc.recipe.filestorage
132
133[site_zcml]
134recipe = collective.recipe.template
135input = etc/site.zcml.in
136output = ${buildout:parts-directory}/etc/site.zcml
137
138[zdaemon_conf]
139recipe = collective.recipe.template
140input = etc/zdaemon.conf.in
141output = ${buildout:parts-directory}/etc/zdaemon.conf
142
143[deploy_ini]
144recipe = collective.recipe.template
145input = etc/deploy.ini.in
146output = ${buildout:parts-directory}/etc/deploy.ini
147
148[debug_ini]
149recipe = collective.recipe.template
150input = etc/debug.ini.in
151output = ${buildout:parts-directory}/etc/debug.ini
152
153[profile_ini]
154recipe = collective.recipe.template
155input = etc/profile.ini.in
156output = ${buildout:parts-directory}/etc/profile.ini
157
158[eggbasket]
159recipe = z3c.recipe.eggbasket
160eggs = grok
161url = http://grok.zope.org/releaseinfo/grok-eggs-1.1.tgz
162
163[waeupdocs]
164recipe = collective.recipe.sphinxbuilder
165eggs = waeup.kofa[docs]
166source = ${buildout:directory}/docs/source
167build = ${buildout:directory}/docs/build
168
169# Collect test coverage data.
170[coverage-detect]
171recipe = zc.recipe.testrunner
172eggs = waeup.kofa[beaker]
173defaults = ['--tests-pattern', '^f?tests$', '-v', '--coverage', 'coverage']
174
175# Create a coverage report.
176# Make sure to run bin/coverage-detect to collect the data for the report
177# first!
178[coverage-report]
179recipe = zc.recipe.egg
180eggs = z3c.coverage
181scripts = coveragereport
182arguments = ('${buildout:parts-directory}/coverage-detect/working-directory/coverage', '${buildout:directory}/coverage-report')
Note: See TracBrowser for help on using the repository browser.