[buildout]
develop = . waeup.kofa
parts =
    eggbasket
    app
    i18n
    test
    mkdirs
    zpasswd
    zope_conf
    site_zcml
    zdaemon_conf
    deploy_ini
    debug_ini
    waeupdocs
    coverage-detect
    coverage-report
# kofactl creation must be _after_ app!
    kofactl
# For backward compatibility, telling buildout not to throw away
# the data and log subdirectories from the parts directory.
    data
    log
# newest = false

#extends = versions.cfg
extends= http://grok.zope.org/releaseinfo/grok-1.1.cfg
# eggs will be installed in the default buildout location
# (see .buildout/default.cfg in your home directory)
# unless you specify an eggs-directory option here.

versions = versions

[versions]
collective.recipe.sphinxbuilder = 0.7.0
hurry.workflow = 0.11
# Pinned to circumvent breakage in 0.4.x
hurry.zoperesource = 0.6
# Pinned to prevent buildout svn-error.
lovely.recipe = 1.0.0
megrok.layout = 1.0.2
reportlab = 2.5
transaction = 1.1.0
z3c.testsetup = 0.6.1
zc.buildout = 1.5.0
zc.recipe.egg = 1.3.0
zc.recipe.testrunner = 1.4.0
zope.app.testing = 3.8.1
# for support of @provider directive
zope.interface = 3.6.3
# for support of contextual default values
zope.schema = 3.8.0
zope.testing = 3.10.2
zope.xmlpickle = 3.4.0
# Require latest version...
Sphinx = 1.0.7
ZODB3 = 3.10.3
docutils = 0.7
Jinja2 = 2.3

[app]
# This creates all scripts in bin/. The kofactl created here is 'faulty'.
recipe = zc.recipe.egg
eggs = waeup.custom [beaker]
       z3c.evalexception>=2.0
       Paste
       PasteScript
       PasteDeploy
interpreter = python-console

[kofactl]
# See http://pypi.python.org/pypi/zc.recipe.egg for details...
# Here we create the kofactl script again, this time with a
# fixed path to zdaemon.conf as argument.
recipe = zc.recipe.egg
eggs = waeup.custom [beaker]
arguments = "${buildout:parts-directory}/etc/zdaemon.conf"
scripts = kofactl=kofactl

[mkdirs]
recipe = z3c.recipe.mkdir
paths =
    ${zope_conf:filestorage}
    ${zope_conf:logfiles}
    ${zope_conf:blobstorage}
    ${buildout:directory}/var/datacenter/media
    ${buildout:directory}/parts/test/datacenter

[test]
recipe = zc.recipe.testrunner
eggs = waeup.custom [beaker, test]
defaults = ['--tests-pattern', '^f?tests$', '-v']

# This section named so that the i18n scripts are called bin/i18n...
[i18n]
recipe = z3c.recipe.i18n:i18n
packages = waeup.custom
eggs = waeup.custom
domain = waeup.custom
output = src/waeup/custom/locales
zcml =

# This section is named so that the zpasswd utility is
# called `zpasswd`
[zpasswd]
recipe = z3c.recipe.dev:script
eggs = waeup.custom
module = zope.app.server.zpasswd
method = main

[zope_conf]
recipe = collective.recipe.template
input = etc/zope.conf.in
output = ${buildout:parts-directory}/etc/zope.conf
filestorage = ${buildout:directory}/var/filestorage
blobstorage = ${buildout:directory}/var/blobstorage
logfiles = ${buildout:directory}/var/log
extra =
# extra = <grokwarnings>True</grokwarnings>
# 'extra' is copied verbatim. Use it for product config sections and so.

# The [data] and [log] parts are still in here to instruct buildout to not
# unintentionally throw away the parts/data and parts/log subdirectories
# that contain the Data.fs and the log files. These files should be
# copied to the new locations. See the upgrade notes for more information.
[data]
recipe = zc.recipe.filestorage

[log]
recipe = zc.recipe.filestorage

[site_zcml]
recipe = collective.recipe.template
input = etc/site.zcml.in
output = ${buildout:parts-directory}/etc/site.zcml

[zdaemon_conf]
recipe = collective.recipe.template
input = etc/zdaemon.conf.in
output = ${buildout:parts-directory}/etc/zdaemon.conf

[deploy_ini]
recipe = collective.recipe.template
input = etc/deploy.ini.in
output = ${buildout:parts-directory}/etc/deploy.ini

[debug_ini]
recipe = collective.recipe.template
input = etc/debug.ini.in
output = ${buildout:parts-directory}/etc/debug.ini

[eggbasket]
recipe = z3c.recipe.eggbasket
eggs = grok
url = http://grok.zope.org/releaseinfo/grok-eggs-1.1.tgz

[waeupdocs]
recipe = collective.recipe.sphinxbuilder
eggs = waeup.custom[docs]
source = ${buildout:directory}/docs/source
build = ${buildout:directory}/docs/build

# Collect test coverage data.
[coverage-detect]
recipe = zc.recipe.testrunner
eggs = waeup.custom[beaker]
defaults = ['--tests-pattern', '^f?tests$', '-v', '--coverage', 'coverage']

# Create a coverage report.
# Make sure to run bin/coverage-detect to collect the data for the report
# first!
[coverage-report]
recipe = zc.recipe.egg
eggs = z3c.coverage
scripts = coveragereport
arguments = ('${buildout:parts-directory}/coverage-detect/working-directory/coverage', '${buildout:directory}/coverage-report')
