[8800] | 1 | [buildout] |
---|
[8815] | 2 | # See http://pypi.python.org/pypi/mr.developer for details |
---|
| 3 | extensions = mr.developer |
---|
| 4 | # Install waeup.kofa as develop egg |
---|
| 5 | auto-checkout = waeup.kofa |
---|
[8891] | 6 | sources-dir = sources |
---|
[8815] | 7 | develop = . |
---|
[8800] | 8 | parts = |
---|
| 9 | eggbasket |
---|
| 10 | app |
---|
[8808] | 11 | i18n |
---|
[8800] | 12 | test |
---|
| 13 | mkdirs |
---|
| 14 | zpasswd |
---|
| 15 | zope_conf |
---|
| 16 | site_zcml |
---|
| 17 | zdaemon_conf |
---|
| 18 | deploy_ini |
---|
| 19 | debug_ini |
---|
| 20 | profile_ini |
---|
| 21 | # waeupdocs |
---|
| 22 | coverage-detect |
---|
| 23 | coverage-report |
---|
| 24 | # kofactl creation must be _after_ app! |
---|
| 25 | kofactl |
---|
| 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 | |
---|
| 34 | # eggs will be installed in the default buildout location |
---|
| 35 | # (see .buildout/default.cfg in your home directory) |
---|
| 36 | # unless you specify an eggs-directory option here. |
---|
| 37 | |
---|
[8815] | 38 | [sources] |
---|
| 39 | waeup.kofa = svn https://svn.waeup.org/repos/main/waeup.kofa/trunk |
---|
| 40 | |
---|
[8800] | 41 | [kofa_params] |
---|
| 42 | ## Basic parameters for deployment. |
---|
| 43 | # default is 127.0.0.1 |
---|
| 44 | host = 0.0.0.0 |
---|
| 45 | # default is 8080 |
---|
| 46 | base_port = 8080 |
---|
| 47 | zeo1_port = 8080 |
---|
| 48 | zeo2_port = 8081 |
---|
| 49 | zeo3_port = 8082 |
---|
| 50 | server_port = 8100 |
---|
| 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 |
---|
| 59 | devel_pkg = kofacustom.nigeria |
---|
| 60 | |
---|
| 61 | [app] |
---|
| 62 | # This creates all scripts in bin/. The kofactl created here is 'faulty'. |
---|
| 63 | recipe = zc.recipe.egg |
---|
| 64 | eggs = kofacustom.nigeria [beaker] |
---|
| 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 |
---|
| 78 | eggs = kofacustom.nigeria [beaker] |
---|
[8851] | 79 | waeup.kofa |
---|
[8800] | 80 | arguments = "${buildout:parts-directory}/etc/zdaemon.conf" |
---|
| 81 | scripts = kofactl=kofactl |
---|
| 82 | |
---|
| 83 | [mkdirs] |
---|
| 84 | recipe = z3c.recipe.mkdir |
---|
| 85 | paths = |
---|
| 86 | ${zope_conf:filestorage} |
---|
| 87 | ${zope_conf:logfiles} |
---|
| 88 | ${zope_conf:blobstorage} |
---|
| 89 | ${buildout:directory}/var/mailqueue/cur |
---|
| 90 | ${buildout:directory}/var/mailqueue/tmp |
---|
| 91 | ${buildout:directory}/var/mailqueue/new |
---|
| 92 | ${buildout:directory}/var/datacenter/media |
---|
| 93 | ${buildout:directory}/parts/test/datacenter |
---|
| 94 | |
---|
| 95 | [test] |
---|
| 96 | recipe = zc.recipe.testrunner |
---|
| 97 | eggs = kofacustom.nigeria [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 = kofacustom.nigeria |
---|
| 104 | eggs = kofacustom.nigeria |
---|
[8808] | 105 | domain = waeup.custom |
---|
[8800] | 106 | output = src/kofacustom/nigeria/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 = kofacustom.nigeria |
---|
| 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 | [mailqueue] |
---|
| 139 | recipe = zc.recipe.filestorage |
---|
| 140 | |
---|
| 141 | [site_zcml] |
---|
| 142 | recipe = collective.recipe.template |
---|
| 143 | input = etc/site.zcml.in |
---|
| 144 | output = ${buildout:parts-directory}/etc/site.zcml |
---|
| 145 | |
---|
| 146 | [zdaemon_conf] |
---|
| 147 | recipe = collective.recipe.template |
---|
| 148 | input = etc/zdaemon.conf.in |
---|
| 149 | output = ${buildout:parts-directory}/etc/zdaemon.conf |
---|
| 150 | |
---|
| 151 | [deploy_ini] |
---|
| 152 | recipe = collective.recipe.template |
---|
| 153 | input = etc/deploy.ini.in |
---|
| 154 | output = ${buildout:parts-directory}/etc/deploy.ini |
---|
| 155 | |
---|
| 156 | [debug_ini] |
---|
| 157 | recipe = collective.recipe.template |
---|
| 158 | input = etc/debug.ini.in |
---|
| 159 | output = ${buildout:parts-directory}/etc/debug.ini |
---|
| 160 | |
---|
| 161 | [profile_ini] |
---|
| 162 | recipe = collective.recipe.template |
---|
| 163 | input = etc/profile.ini.in |
---|
| 164 | output = ${buildout:parts-directory}/etc/profile.ini |
---|
| 165 | |
---|
| 166 | [eggbasket] |
---|
| 167 | recipe = z3c.recipe.eggbasket |
---|
| 168 | eggs = grok |
---|
| 169 | url = http://grok.zope.org/releaseinfo/grok-eggs-1.1.tgz |
---|
| 170 | |
---|
| 171 | #[waeupdocs] |
---|
| 172 | #recipe = collective.recipe.sphinxbuilder |
---|
| 173 | #eggs = kofacustom.nigeria[docs] |
---|
| 174 | #source = ${buildout:directory}/docs/source |
---|
| 175 | #build = ${buildout:directory}/docs/build |
---|
| 176 | |
---|
| 177 | # Collect test coverage data. |
---|
| 178 | [coverage-detect] |
---|
| 179 | recipe = zc.recipe.testrunner |
---|
| 180 | eggs = kofacustom.nigeria[beaker] |
---|
| 181 | defaults = ['--tests-pattern', '^f?tests$', '-v', '--coverage', 'coverage'] |
---|
| 182 | |
---|
| 183 | # Create a coverage report. |
---|
| 184 | # Make sure to run bin/coverage-detect to collect the data for the report |
---|
| 185 | # first! |
---|
| 186 | [coverage-report] |
---|
| 187 | recipe = zc.recipe.egg |
---|
| 188 | eggs = z3c.coverage |
---|
| 189 | scripts = coveragereport |
---|
| 190 | arguments = ('${buildout:parts-directory}/coverage-detect/working-directory/coverage', '${buildout:directory}/coverage-report') |
---|