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