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