Ignore:
Timestamp:
24 Aug 2010, 16:37:34 (14 years ago)
Author:
uli
Message:

Replace the old buildout.cfg with a new, paster-geared one. This
buildout.cfg also requires a project layout as generated by more
recent grokproject versions.

In this layout all configuration files are held apart in a new etc/
folder (which will be added shortly). These configuration files are
also templates that can be shared amongst developers working on
different machines and which are updated each time one runs
bin/buildout.

Deeper reason for the switch to paster-based layout is not only to
keep in touch with recent Grok development, but also to support Blob
storage for storing the passport photographs of applicants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-paster/buildout.cfg

    r5433 r5490  
    11[buildout]
    22develop = .
    3 parts = app data zopectl i18n test waeupdocs coverage-detect coverage-report
    4 #find-links = http://download.zope.org/distribution/
    5 #newest = false
    6 #extends= http://grok.zope.org/releaseinfo/grok-1.0.cfg
     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# For backward compatibility, telling buildout not to throw away
     19# the data and log subdirectories from the parts directory.
     20    data
     21    log
     22newest = false
     23
     24#extends = versions.cfg
    725extends= http://grok.zope.org/releaseinfo/grok-1.1.cfg
    8 #extends = http://svn.zope.org/*checkout*/groktoolkit/trunk/grok.cfg
     26# eggs will be installed in the default buildout location
     27# (see .buildout/default.cfg in your home directory)
     28# unless you specify an eggs-directory option here.
     29
    930versions = versions
    1031
     
    2142lovely.recipe = 1.0.0    # Pinned to prevent buildout svn-error.
    2243
     44
    2345[app]
    24 recipe = zc.zope3recipes>=0.5.3:application
     46recipe = zc.recipe.egg
    2547eggs = waeup.sirp
    26 site.zcml = <include package="waeup.sirp" />
    27             <include package="zope.app.twisted" />
    28             <configure i18n_domain="waeup.sirp">
    29               <unauthenticatedPrincipal id="zope.anybody"
    30                                         title="Unauthenticated User" />
    31               <unauthenticatedGroup id="zope.Anybody"
    32                                     title="Unauthenticated Users" />
    33               <authenticatedGroup id="zope.Authenticated"
    34                                 title="Authenticated Users" />
    35               <everybodyGroup id="zope.Everybody"
    36                               title="All Users" />
    37               <principal id="zope.manager"
    38                          title="Manager"
    39                          login="grok"
    40                          password_manager="Plain Text"
    41                          password="grok"
    42                          />
     48       z3c.evalexception>=2.0
     49       Paste
     50       PasteScript
     51       PasteDeploy
     52interpreter = python-console
    4353
    44               <grant permission="zope.View"
    45                      principal="zope.Authenticated" />
    46               <grant permission="zope.app.dublincore.view"
    47                      principal="zope.Authenticated" />
     54[mkdirs]
     55recipe = z3c.recipe.mkdir
     56paths =
     57    ${zope_conf:filestorage}
     58    ${zope_conf:logfiles}
     59    ${zope_conf:blobstorage}
    4860
    49               <!-- Replace the following directive if you don't want
    50                    public access -->
    51               <grant permission="zope.View"
    52                      principal="zope.Anybody" />
    53               <grant permission="zope.app.dublincore.view"
    54                      principal="zope.Anybody" />
     61[test]
     62recipe = zc.recipe.testrunner
     63eggs = waeup.sirp
     64defaults = ['--tests-pattern', '^f?tests$', '-v']
    5565
    56               <grant permission="waeup.Public"
    57                      principal="zope.Everybody" />
    58           <grant permission="waeup.Anonymous"
    59                      principal="zope.Anybody" />
     66# this section named so that the i18n scripts are called bin/i18n...
     67[i18n]
     68recipe = z3c.recipe.i18n:i18n
     69packages = waeup.sirp
     70eggs = waeup.sirp
     71domain = waeup.sirp
     72output = src/waeup/sirp/locales
     73zcml =
    6074
    61               <role id="zope.Manager" title="Site Manager" />
    62               <role id="zope.Member" title="Site Member" />
    63               <grantAll role="zope.Manager" />
    64               <grant role="zope.Manager"
    65                      principal="zope.manager" />
    66            </configure>
     75# This section is named so that the zpasswd utility is
     76# called `zpasswd`
     77[zpasswd]
     78recipe = z3c.recipe.dev:script
     79eggs = waeup.sirp
     80module = zope.app.server.zpasswd
     81method = main
    6782
     83[zope_conf]
     84recipe = collective.recipe.template
     85input = etc/zope.conf.in
     86output = ${buildout:parts-directory}/etc/zope.conf
     87filestorage = ${buildout:directory}/var/filestorage
     88blobstorage = ${buildout:directory}/var/blobstorage
     89logfiles = ${buildout:directory}/var/log
     90extra =
     91# extra = <grokwarnings>True</grokwarnings>
     92# 'extra' is copied verbatim. Use it for product config sections and so.
     93
     94# The [data] and [log] parts are still in here to instruct buildout to not
     95# unintentionally throw away the parts/data and parts/log subdirectories
     96# that contain the Data.fs and the log files. These files should be
     97# copied to the new locations. See the upgrade notes for more information.
    6898[data]
    6999recipe = zc.recipe.filestorage
    70100
    71 # this section named so that the start/stop script is called bin/zopectl
    72 [zopectl]
    73 recipe = zc.zope3recipes:instance
    74 application = app
    75 zope.conf = ${data:zconfig}
     101[log]
     102recipe = zc.recipe.filestorage
    76103
    77 [test]
    78 recipe = zc.recipe.testrunner
    79 eggs = waeup.sirp [test]
    80 defaults = ['--tests-pattern', '^f?tests$', '-v']
     104[site_zcml]
     105recipe = collective.recipe.template
     106input = etc/site.zcml.in
     107output = ${buildout:parts-directory}/etc/site.zcml
     108
     109[zdaemon_conf]
     110recipe = collective.recipe.template
     111input = etc/zdaemon.conf.in
     112output = ${buildout:parts-directory}/etc/zdaemon.conf
     113
     114[deploy_ini]
     115recipe = collective.recipe.template
     116input = etc/deploy.ini.in
     117output = ${buildout:parts-directory}/etc/deploy.ini
     118
     119[debug_ini]
     120recipe = collective.recipe.template
     121input = etc/debug.ini.in
     122output = ${buildout:parts-directory}/etc/debug.ini
     123
     124[eggbasket]
     125recipe = z3c.recipe.eggbasket
     126eggs = grok
     127url = http://grok.zope.org/releaseinfo/grok-eggs-1.1.tgz
     128
     129[waeupdocs]
     130recipe = collective.recipe.sphinxbuilder
     131eggs = waeup.sirp
     132source = ${buildout:directory}/docs/source
     133build = ${buildout:directory}/docs/build
    81134
    82135# Collect test coverage data.
     
    94147scripts = coveragereport
    95148arguments = ('${buildout:parts-directory}/coverage-detect/coverage', '${buildout:directory}/coverage-report')
    96 
    97 
    98 
    99 # this section named so that the i18n scripts are called bin/i18n...
    100 [i18n]
    101 recipe = lovely.recipe:i18n
    102 package = waeup.sirp
    103 domain = waeup.sirp
    104 location = src/waeup/sirp
    105 output = locales
    106 
    107 [waeupdocs]
    108 recipe = collective.recipe.sphinxbuilder
    109 eggs = waeup.sirp
    110 source = ${buildout:directory}/docs/source
    111 build = ${buildout:directory}/docs/build
Note: See TracChangeset for help on using the changeset viewer.