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