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