source: main/waeup.sirp/trunk/buildout.cfg @ 5600

Last change on this file since 5600 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
RevLine 
[3516]1[buildout]
2develop = .
[5495]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
[5503]18# sirpctl creation must be _after_ app!
19    sirpctl
[5495]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
[5328]27extends= http://grok.zope.org/releaseinfo/grok-1.1.cfg
[5495]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
[3516]32versions = versions
33
[4789]34[versions]
[5058]35#zc.sourcefactory = 0.3.5
36#zope.testing = 3.7.0
[5074]37z3c.testsetup = 0.6.1
[5226]38hurry.workflow = 0.10
[5058]39#hurry.query = 0.9.2
[4789]40zope.xmlpickle = 3.4.0
[5058]41#hurry.yui = 2.7.0
[5347]42hurry.zoperesource = 0.6 # Pinned to circumvent breakage in 0.4.x
[5058]43megrok.layout = 1.0.2
[5347]44lovely.recipe = 1.0.0    # Pinned to prevent buildout svn-error.
[4789]45
[3516]46[app]
[5503]47# This creates all scripts in bin/. The sirpctl created here is 'faulty'.
[5495]48recipe = zc.recipe.egg
[4919]49eggs = waeup.sirp
[5495]50       z3c.evalexception>=2.0
51       Paste
52       PasteScript
53       PasteDeploy
54interpreter = python-console
[3516]55
[5503]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
[5495]65[mkdirs]
66recipe = z3c.recipe.mkdir
67paths =
68    ${zope_conf:filestorage}
69    ${zope_conf:logfiles}
70    ${zope_conf:blobstorage}
[4789]71
[5495]72[test]
73recipe = zc.recipe.testrunner
74eggs = waeup.sirp
75defaults = ['--tests-pattern', '^f?tests$', '-v']
[3516]76
[5495]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 =
[4789]85
[5495]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
[3516]93
[5495]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.
[3516]109[data]
110recipe = zc.recipe.filestorage
111
[5495]112[log]
113recipe = zc.recipe.filestorage
[3516]114
[5495]115[site_zcml]
116recipe = collective.recipe.template
117input = etc/site.zcml.in
118output = ${buildout:parts-directory}/etc/site.zcml
[3516]119
[5495]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
[4789]146# Collect test coverage data.
147[coverage-detect]
148recipe = zc.recipe.testrunner
[4919]149eggs = waeup.sirp
[4789]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
[5226]158scripts = coveragereport
159arguments = ('${buildout:parts-directory}/coverage-detect/coverage', '${buildout:directory}/coverage-report')
Note: See TracBrowser for help on using the repository browser.