source: main/waeup.sirp/branches/workshop2010-playground/buildout.cfg @ 10827

Last change on this file since 10827 was 5503, checked in by uli, 14 years ago

Add section to create sirpctl properly, with a fixed path to
zdaemon.conf. The new section creates only sirpctl (not all scripts
defined in any egg, as the [app] section does).

To make this work, in [buildout] parts the [sirpctl] section has to be
processed after the [app] section.

File size: 4.1 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    waeupdocs
16    coverage-detect
17    coverage-report
18# sirpctl creation must be _after_ app!
19    sirpctl
20# For backward compatibility, telling buildout not to throw away
21# the data and log subdirectories from the parts directory.
22    data
23    log
24newest = false
25
26#extends = versions.cfg
27extends= http://grok.zope.org/releaseinfo/grok-1.1.cfg
28# eggs will be installed in the default buildout location
29# (see .buildout/default.cfg in your home directory)
30# unless you specify an eggs-directory option here.
31
32versions = versions
33
34[versions]
35#zc.sourcefactory = 0.3.5
36#zope.testing = 3.7.0
37z3c.testsetup = 0.6.1
38hurry.workflow = 0.10
39#hurry.query = 0.9.2
40zope.xmlpickle = 3.4.0
41#hurry.yui = 2.7.0
42hurry.zoperesource = 0.6 # Pinned to circumvent breakage in 0.4.x
43megrok.layout = 1.0.2
44lovely.recipe = 1.0.0    # Pinned to prevent buildout svn-error.
45
46[app]
47# This creates all scripts in bin/. The sirpctl created here is 'faulty'.
48recipe = zc.recipe.egg
49eggs = waeup.sirp
50       z3c.evalexception>=2.0
51       Paste
52       PasteScript
53       PasteDeploy
54interpreter = python-console
55
56[sirpctl]
57# See http://pypi.python.org/pypi/zc.recipe.egg for details...
58# Here we create the sirpctl script again, this time with a
59# fixed path to zdaemon.conf as argument.
60recipe = zc.recipe.egg
61eggs = waeup.sirp
62arguments = "${buildout:parts-directory}/etc/zdaemon.conf"
63scripts = sirpctl=sirpctl
64
65[mkdirs]
66recipe = z3c.recipe.mkdir
67paths =
68    ${zope_conf:filestorage}
69    ${zope_conf:logfiles}
70    ${zope_conf:blobstorage}
71
72[test]
73recipe = zc.recipe.testrunner
74eggs = waeup.sirp
75defaults = ['--tests-pattern', '^f?tests$', '-v']
76
77# this section named so that the i18n scripts are called bin/i18n...
78[i18n]
79recipe = z3c.recipe.i18n:i18n
80packages = waeup.sirp
81eggs = waeup.sirp
82domain = waeup.sirp
83output = src/waeup/sirp/locales
84zcml =
85
86# This section is named so that the zpasswd utility is
87# called `zpasswd`
88[zpasswd]
89recipe = z3c.recipe.dev:script
90eggs = waeup.sirp
91module = zope.app.server.zpasswd
92method = main
93
94[zope_conf]
95recipe = collective.recipe.template
96input = etc/zope.conf.in
97output = ${buildout:parts-directory}/etc/zope.conf
98filestorage = ${buildout:directory}/var/filestorage
99blobstorage = ${buildout:directory}/var/blobstorage
100logfiles = ${buildout:directory}/var/log
101extra =
102# extra = <grokwarnings>True</grokwarnings>
103# 'extra' is copied verbatim. Use it for product config sections and so.
104
105# The [data] and [log] parts are still in here to instruct buildout to not
106# unintentionally throw away the parts/data and parts/log subdirectories
107# that contain the Data.fs and the log files. These files should be
108# copied to the new locations. See the upgrade notes for more information.
109[data]
110recipe = zc.recipe.filestorage
111
112[log]
113recipe = zc.recipe.filestorage
114
115[site_zcml]
116recipe = collective.recipe.template
117input = etc/site.zcml.in
118output = ${buildout:parts-directory}/etc/site.zcml
119
120[zdaemon_conf]
121recipe = collective.recipe.template
122input = etc/zdaemon.conf.in
123output = ${buildout:parts-directory}/etc/zdaemon.conf
124
125[deploy_ini]
126recipe = collective.recipe.template
127input = etc/deploy.ini.in
128output = ${buildout:parts-directory}/etc/deploy.ini
129
130[debug_ini]
131recipe = collective.recipe.template
132input = etc/debug.ini.in
133output = ${buildout:parts-directory}/etc/debug.ini
134
135[eggbasket]
136recipe = z3c.recipe.eggbasket
137eggs = grok
138url = http://grok.zope.org/releaseinfo/grok-eggs-1.1.tgz
139
140[waeupdocs]
141recipe = collective.recipe.sphinxbuilder
142eggs = waeup.sirp
143source = ${buildout:directory}/docs/source
144build = ${buildout:directory}/docs/build
145
146# Collect test coverage data.
147[coverage-detect]
148recipe = zc.recipe.testrunner
149eggs = waeup.sirp
150defaults = ['--tests-pattern', '^f?tests$', '-v', '--coverage', 'coverage']
151
152# Create a coverage report.
153# Make sure to run bin/coverage-detect to collect the data for the report
154# first!
155[coverage-report]
156recipe = zc.recipe.egg
157eggs = z3c.coverage
158scripts = coveragereport
159arguments = ('${buildout:parts-directory}/coverage-detect/coverage', '${buildout:directory}/coverage-report')
Note: See TracBrowser for help on using the repository browser.