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