Merge remote-tracking branch 'origin/erp5-component' into erp5
[slapos.git] / stack / erp5 / buildout.cfg
1 [buildout]
2 # Local development
3 develop =
4   ${:parts-directory}/slapos.cookbook-repository
5   ${:parts-directory}/cloudooo-repository
6
7 extensions =
8   slapos.zcbworkarounds
9   mr.developer
10
11 find-links +=
12     http://dist.repoze.org
13     http://www.owlfish.com/software/wsgiutils/download.html
14
15 extends =
16 # Exact version of Zope
17   http://svn.zope.org/repos/main/Zope/tags/2.12.26/versions.cfg
18   ../../stack/slapos.cfg
19   ../../component/logrotate/buildout.cfg
20   ../../component/dcron/buildout.cfg
21   ../../component/file/buildout.cfg
22   ../../component/fonts/buildout.cfg
23   ../../component/ghostscript/buildout.cfg
24   ../../component/git/buildout.cfg
25   ../../component/graphviz/buildout.cfg
26   ../../component/gzip/buildout.cfg
27   ../../component/haproxy/buildout.cfg
28   ../../component/hookbox/buildout.cfg
29   ../../component/librsvg/buildout.cfg
30   ../../component/imagemagick/buildout.cfg
31   ../../component/kumo/buildout.cfg
32   ../../component/libdmtx/buildout.cfg
33   ../../component/libpng/buildout.cfg
34   ../../component/libreoffice-bin/buildout.cfg
35   ../../component/lxml-python/buildout.cfg
36   ../../component/percona-toolkit/buildout.cfg
37   ../../component/mariadb/buildout.cfg
38   ../../component/memcached/buildout.cfg
39   ../../component/mysql-python/buildout.cfg
40   ../../component/pdftk/buildout.cfg
41   ../../component/pil-python/buildout.cfg
42   ../../component/pycrypto-python/buildout.cfg
43   ../../component/pysvn-python/buildout.cfg
44   ../../component/python-2.6/buildout.cfg
45   ../../component/python-2.7/buildout.cfg
46   ../../component/python-ldap-python/buildout.cfg
47   ../../component/rdiff-backup/buildout.cfg
48   ../../component/subversion/buildout.cfg
49   ../../component/tesseract/buildout.cfg
50   ../../component/varnish/buildout.cfg
51   ../../component/w3-validator/buildout.cfg
52   ../../component/w3m/buildout.cfg
53   ../../component/xorg/buildout.cfg
54   ../../component/poppler/buildout.cfg
55   ../../component/xtrabackup/buildout.cfg
56   ../../component/zabbix/buildout.cfg
57   ../../component/sed/buildout.cfg
58   ../../component/coreutils/buildout.cfg
59   ../../component/grep/buildout.cfg
60   ../../component/dash/buildout.cfg
61   ../../component/wget/buildout.cfg
62   ../../component/aspell/buildout.cfg
63   ../../component/cloudooo/buildout.cfg
64
65 parts =
66   rdiff-backup
67   aspell
68   aspell-en-dictionary
69   apache
70   apache-antiloris
71   file
72   graphviz
73   memcached
74   haproxy
75   varnish-3.0
76   w3m
77   poppler
78   libpng
79   ghostscript
80   mariadb
81   mroonga-mariadb
82   imagemagick
83   libdmtx
84   dmtx-utils
85   kumo
86   libreoffice-bin
87   w3-validator
88   tesseract
89   hookbox
90   bootstrap2.6
91   perl-DBD-mariadb
92   perl-DBI
93   percona-toolkit
94   zabbix-agent
95   pdftk
96   dcron
97   dash
98   wget
99
100 # Buildoutish
101   eggs
102   testrunner
103   test_suite_runner
104
105 # basic Xorg
106   libXdmcp
107   libXext
108   libXau
109   libSM
110   libXrender
111
112 # fonts
113   liberation-fonts
114   ipaex-fonts
115   ocrb-fonts
116
117 # Cloudooo specific part
118   cloudooo
119
120 # get git repositories
121   erp5
122   genbt5list
123
124 # fix products path (Zeo needs ERP5 Products to be available for
125 # conflict resolution)
126   fix-products-paths
127 # some additional utils
128   slapos-toolbox
129
130 # Local development
131   slapos.cookbook-repository
132   check-recipe
133   slapos.cookbook-python2.6
134   slapos.recipe.template-python2.6
135 # Create instance template
136   template
137
138 # Local development
139 [slapos.cookbook-repository]
140 recipe = slapos.recipe.build:gitclone
141 repository = http://git.erp5.org/repos/slapos.git
142 branch = erp5
143 git-executable = ${git:location}/bin/git
144
145 [check-recipe]
146 recipe = plone.recipe.command
147 stop-on-error = true
148 update-command = ${:command}
149 command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link
150
151 [slapos.cookbook-python2.6]
152 recipe = zc.recipe.egg
153 eggs = slapos.cookbook
154 scripts =
155 python = python2.6
156 ugly-depend-on = ${slapos.cookbook-repository:repository} ${slapos.cookbook-repository:branch}
157
158 [slapos.recipe.template-python2.6]
159 recipe = zc.recipe.egg
160 eggs = slapos.recipe.template
161 scripts =
162 python = python2.6
163
164 [template-jinja2-base]
165 recipe = slapos.recipe.template:jinja2
166 template = ${:_profile_base_location_}/${:filename}.in
167 rendered = ${buildout:directory}/${:filename}
168 # XXX: extra-context is needed because we cannot append to a key of an extended
169 # section.
170 extra-context =
171 context =
172     key bin_directory buildout:bin-directory
173     key develop_eggs_directory buildout:develop-eggs-directory
174     key eggs_directory buildout:eggs-directory
175     ${:extra-context}
176
177 [template-mariadb]
178 < = template-jinja2-base
179 filename = instance-mariadb.cfg
180 md5sum = 867bd8e3c4f56db2aab2fcad59f2efd8
181 extra-context =
182     key coreutils_location coreutils:location
183     key dcron_location dcron:location
184     key gettext_location gettext:location
185     key grep_location grep:location
186     key gzip_location gzip:location
187     key logrotate_location logrotate:location
188     key mariadb_location mariadb:location
189     key perl_location perl:location
190     key perl_siteprefix perl:siteprefix
191     key sed_location sed:location
192     key xtrabackup_location xtrabackup:location
193
194 [template-zope]
195 recipe = slapos.recipe.build:download
196 url = ${:_profile_base_location_}/instance-zope.cfg.in
197 md5sum = d5981dbe595004c707dd1744be1fe753
198 mode = 640
199
200 [template-kumofs]
201 < = template-jinja2-base
202 filename = instance-kumofs.cfg
203 md5sum = 7e13d689de7163dcab64e8df4711cdd7
204 extra-context =
205     key dash_location dash:location
206     key dcron_location dcron:location
207     key gzip_location gzip:location
208     key kumo_location kumo:location
209     key logrotate_location logrotate:location
210
211 [template-tidstorage]
212 recipe = slapos.recipe.build:download
213 url = ${:_profile_base_location_}/instance-tidstorage.cfg.in
214 md5sum = 5e0c5de5bc17947c152de73b329a5a02
215 mode = 640
216
217 [template-cloudooo]
218 recipe = slapos.recipe.build:download
219 url = ${:_profile_base_location_}/instance-cloudoo.cfg.in
220 md5sum = 53492e520be57f4c6a9eacd107c8d446
221 mode = 640
222
223 [template-zope-conf]
224 recipe = slapos.recipe.build:download
225 url = ${:_profile_base_location_}/zope.conf.in
226 md5sum = bc2154161a1d5baddc4ed4dfaaf94fbe
227 mode = 640
228
229 [template]
230 < = template-jinja2-base
231 # XXX: "template.cfg" is hardcoded in instanciation recipe
232 filename = template.cfg
233 template = ${:_profile_base_location_}/instance.cfg.in
234 md5sum = bee6c2b640efee53e3b6e209127cb0bc
235 extra-context =
236     key apache_location apache:location
237     key aspell_location aspell:location
238     key buildout_bin_directory buildout:bin-directory
239     key coreutils_location coreutils:location
240     key curl_location curl:location
241     key dash_location dash:location
242     key dcron_location dcron:location
243     key dmtx_utils_location dmtx-utils:location
244     key erp5_location erp5:location
245     key file_location file:location
246     key fontconfig_location fontconfig:location
247     key fonts_location fonts:location
248     key freetype_location freetype:location
249     key git_location git:location
250     key graphviz_location graphviz:location
251     key grep_location grep:location
252     key gzip_location gzip:location
253     key haproxy_location haproxy:location
254     key imagemagick_location imagemagick:location
255     key libICE_location libICE:location
256     key libSM_location libSM:location
257     key libX11_location libX11:location
258     key libXau_location libXau:location
259     key libXdmcp_location libXdmcp:location
260     key libXext_location libXext:location
261     key libXrender_location libXrender:location
262     key libpng12_location libpng12:location
263     key libreoffice_bin_location libreoffice-bin:location
264     key librsvg_location librsvg:location
265     key libxcb_location libxcb:location
266     key local_bt5_repository local-bt5-repository:list
267     key logrotate_location logrotate:location
268     key mariadb_location mariadb:location
269     key openssl_location openssl:location
270     key pdftk_location pdftk:location
271     key poppler_location poppler:location
272     key sed_location sed:location
273     key template_cloudooo template-cloudooo:target
274     key template_erp5_single template-erp5-single:target
275     key template_erp5_cluster template-erp5-cluster:target
276     key template_kumofs template-kumofs:rendered
277     key template_mariadb template-mariadb:rendered
278     key template_memcached template-memcached:rendered
279     key template_tidstorage template-tidstorage:target
280     key template_varnish template-varnish:target
281     key template_zope template-zope:target
282     key template_zope_conf template-zope-conf:target
283     key tesseract_location tesseract:location
284     key varnish_location varnish-3.0:location
285     key w3m_location w3m:location
286     key wget_location wget:location
287     key zlib_location zlib:location
288
289 [template-memcached]
290 < = template-jinja2-base
291 filename = instance-memcached.cfg
292 md5sum = 44c507e9eec1003beb99f9063b5e09be
293 extra-context =
294     key dash_location dash:location
295     key memcached_location memcached:location
296
297 [template-erp5-single]
298 recipe = slapos.recipe.build:download
299 url = ${:_profile_base_location_}/instance-erp5-single.cfg.in
300 md5sum = 2a4312202a3160f874c4fa3ee9155a1d
301 mode = 640
302
303 [template-erp5-cluster]
304 recipe = slapos.recipe.build:download
305 url = ${:_profile_base_location_}/instance-erp5-cluster.cfg.in
306 md5sum = eecde68b9a266d8883042540ac077839
307 mode = 640
308
309 [template-varnish]
310 recipe = slapos.recipe.build:download
311 url = ${:_profile_base_location_}/instance-varnish.cfg.in
312 md5sum = 17aee2df57b121343b1fd65f4b51ce80
313 mode = 640
314
315 [bt5-repository]
316 # Format:
317 #   <url or path> [...]
318 #
319 # Use absolute paths for local repositories, and URLs for non-local otherwise.
320 #
321 list = ${local-bt5-repository:list}
322
323 [local-bt5-repository]
324 # Same as bt5-repository, but only local repository.
325 # Used to generate bt5lists.
326 list = ${erp5:location}/bt5 ${erp5:location}/product/ERP5/bootstrap
327
328 [genbt5list]
329 recipe = plone.recipe.command
330 stop-on-error = true
331 genbt5list = ${erp5:location}/product/ERP5/bin/genbt5list
332 command =
333   ${buildout:executable} ${:genbt5list} ${local-bt5-repository:list}
334 update-command = ${:command}
335
336 [bootstrap2.6]
337 python = python2.6
338
339 [erp5_repository_list]
340 repository_id_list = erp5
341
342 [erp5]
343 recipe = slapos.recipe.build:gitclone
344 repository = http://git.erp5.org/repos/erp5.git
345 branch = master
346 git-executable = ${git:location}/bin/git
347
348 [fix-products-paths]
349 recipe = plone.recipe.command
350 stop-on-error = true
351 dir = ${erp5:location}
352 command =
353   rm -f "${:dir}/Products" && ln -s product "${:dir}/Products" && touch "${:dir}/product/__init__.py"
354 update-command = ${:command}
355
356 [testrunner]
357 # XXX: Workaround for fact ERP5Type is not an distribution and does not
358 #      expose entry point for test runner
359 recipe = zc.recipe.egg
360 python = python2.6
361 eggs = ${eggs:eggs}
362 extra-paths = ${eggs:extra-paths}
363 entry-points =
364   runUnitTest=runUnitTest:main
365 scripts = runUnitTest
366 initialization =
367   import glob, imp, os, sys
368   import App # prevent Testing from importing Zope2.App instead of App
369   import Products
370   Products.__path__[:0] = filter(None,
371     os.getenv('INSERT_PRODUCTS_PATH', '').split(os.pathsep))
372   os.environ['SOFTWARE_HOME'] = os.path.abspath(imp.find_module('Zope2')[1])
373   os.environ['ZOPE_SCRIPTS'] = ''
374   parts_directory = '''${buildout:parts-directory}'''
375   repository_id_list = \
376     '''${erp5_repository_list:repository_id_list}'''.split()[::-1]
377   os.environ['erp5_tests_bt5_path'] = ','.join(sum((
378     [bt5_path, os.path.join(bt5_path, '*')]
379     for bt5_path in (os.path.join(parts_directory, x, 'bt5')
380                      for x in repository_id_list)), []))
381   extra_path_list = '''${:extra-paths}'''.split()
382   sys.path[:0] = sum((
383     glob.glob(os.path.join(x, 'tests'))
384     for x in extra_path_list), [])
385   sys.path[:0] = sum((
386     glob.glob(os.path.join(x, 'Products', '*', 'tests'))
387     for x in extra_path_list), [])
388
389 [test_suite_runner]
390 # XXX: Workaround for fact ERP5Type is not an distribution and does not
391 #      expose entry point for test runner
392 recipe = zc.recipe.egg
393 python = python2.6
394 eggs = ${eggs:eggs}
395 extra-paths = ${eggs:extra-paths}
396 entry-points =
397   runTestSuite=Products.ERP5Type.tests.runTestSuite:main
398 scripts = runTestSuite
399 initialization =
400   import os
401   import sys
402   import Products
403   [Products.__path__.insert(0, p) for p in reversed(os.environ.get('INSERT_PRODUCTS_PATH', '').split(':')) if p]
404   import Zope2
405   os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
406   os.environ['ZOPE_SCRIPTS'] = ''
407   repository_id_list = list(reversed('''${erp5_repository_list:repository_id_list}'''.split()))
408   sys.path[0:0] = ['/'.join(['''${buildout:parts-directory}''', x]) for x in repository_id_list]
409
410 [eggs]
411 recipe = zc.recipe.egg
412 python = python2.6
413 eggs =
414   ${mysql-python:egg}
415   ${lxml-python:egg}
416   ${pil-python:egg}
417   ${python-ldap-python:egg}
418   ${pysvn-python:egg}
419   ${pycrypto-python:egg}
420   PyXML
421   SOAPpy
422   cElementTree
423   chardet
424   coverage
425   elementtree
426   erp5diff
427   inotifyx
428   ipdb
429   mechanize
430   numpy
431   ordereddict
432   paramiko
433   ply
434   python-magic
435   python-memcached
436   pytz
437   requests
438   threadframe
439   timerserver
440   urlnorm
441   uuid
442   xml_marshaller
443   xupdate_processor
444   feedparser
445   argparse
446   validictory
447   erp5.util
448   huBarcode
449   qrcode
450   spyne
451
452 # Zope
453   ZODB3
454   Zope2
455 # Zope acquisition patch
456   Acquisition
457
458 # Other Zope 2 packages
459   Products.PluggableAuthService
460   Products.PluginRegistry
461
462 # CMF 2.2
463   Products.CMFActionIcons
464   Products.CMFCalendar
465   Products.CMFCore
466   Products.CMFDefault
467   Products.CMFTopic
468   Products.CMFUid
469   Products.DCWorkflow
470   Products.GenericSetup
471   five.localsitemanager
472
473 # Other products
474   Products.DCWorkflowGraph
475   Products.MimetypesRegistry
476   Products.ExternalEditor
477   Products.TIDStorage
478   Products.LongRequestLogger
479
480 # Currently forked in our repository
481 #    Products.PortalTransforms
482 # Dependency for our fork of PortalTransforms
483   StructuredText
484
485 # Needed for parsing .po files from our Localizer subset
486   polib
487
488 # parameterizing the version of the generated python interpreter name by the
489 # python section version causes dependency between this egg section and the
490 # installation of python, which we don't want on an instance
491 interpreter = python2.6
492 scripts =
493   repozo
494   runzope
495   runzeo
496   tidstoraged
497   tidstorage_repozo
498   web_checker_utility = erp5.util.webchecker:web_checker_utility
499
500 extra-paths =
501   ${erp5:location}
502
503 [cloudooo-repository]
504 branch = master
505 revision = 6629837c96ae58e96cac019044ce95d19cb7a659
506
507 [mysql-python]
508 python = python2.6
509
510 [lxml-python]
511 python = python2.6
512
513 [pil-python]
514 python = python2.6
515
516 [python-ldap-python]
517 python = python2.6
518
519 [pysvn-python]
520 python = python2.6
521
522 [slapos-toolbox]
523 recipe = zc.recipe.egg
524 python = ${eggs:python}
525 eggs =
526   ${lxml-python:egg}
527   slapos.toolbox
528   slapos.toolbox[zodbpack]
529
530 scripts =
531   killpidfromfile
532   onetimedownload
533   zodbpack
534
535 [versions]
536 # pin Acquisition and Products.DCWorkflow to Nexedi flavour of eggs
537 Acquisition = 2.13.7nxd001
538 Products.DCWorkflow = 2.2.3nxd002
539
540 # Known version with works
541 numpy = 1.6.2
542 # Patched version which support python 2.6
543 PyXML = 0.8.4nxd001
544 # modified version that works fine for buildout installation
545 SOAPpy = 0.12.0nxd001
546 # we are still using this old stable version.
547 rdiff-backup = 1.0.5
548
549 # official pysvn egg does not supports --include-dirs and
550 # --library-dirs, so we use our modified version
551 pysvn = 1.7.4nxd006
552
553 # CMF 2.3 requries Zope 2.13.
554 Products.CMFCalendar = 2.2.2
555 Products.CMFCore = 2.2.6
556 Products.CMFDefault = 2.2.2
557 Products.CMFTopic = 2.2.1
558 Products.CMFUid = 2.2.1
559
560 # Unpined locally developed egg
561 slapos.cookbook =
562
563 # Pinned versions
564 Flask = 0.9
565 GitPython = 0.3.2.RC1
566 MySQL-python = 1.2.3
567 PIL = 1.1.7
568 Paste = 1.7.5.1
569 PasteDeploy = 1.5.0
570 PasteScript = 1.7.5
571 Products.CMFActionIcons = 2.1.3
572 Products.DCWorkflowGraph = 0.4.1
573 Products.ExternalEditor = 1.1.0
574 Products.GenericSetup = 1.7.2
575 Products.MimetypesRegistry = 2.0.3
576 Products.PluggableAuthService = 1.8.0
577 Products.PluginRegistry = 1.3
578 Products.TIDStorage = 5.4.8
579 Products.Zelenium = 1.0.3
580 StructuredText = 2.11.1
581 WSGIUtils = 0.7
582 Werkzeug = 0.8.3
583 apache-libcloud = 0.11.1
584 argparse = 1.2.1
585 async = 0.6.1
586 atomize = 0.1.1
587 buildout-versions = 1.7
588 cElementTree = 1.0.5-20051216
589 chardet = 1.1
590 coverage = 3.5.2
591 csp-eventlet = 0.7.0
592 elementtree = 1.2.7-20070827-preview
593 erp5.recipe.cmmiforcei686 = 0.1.3
594 erp5.util = 0.4.22
595 erp5diff = 0.8.1.5
596 eventlet = 0.9.17
597 feedparser = 5.1.2
598 five.localsitemanager = 2.0.5
599 fpconst = 0.7.2
600 gitdb = 0.5.4
601 greenlet = 0.4.0
602 hexagonit.recipe.cmmi = 1.6
603 http-parser = 0.7.8
604 huBarcode = 0.63
605 inotifyx = 0.2.0
606 ipdb = 0.7
607 ipython = 0.13
608 meld3 = 0.6.8
609 netaddr = 0.7.9
610 netifaces = 0.8
611 ordereddict = 1.1
612 paramiko = 1.7.7.2
613 plone.recipe.command = 1.1
614 ply = 3.4
615 polib = 1.0.0
616 psutil = 0.6.1
617 python-ldap = 2.4.10
618 python-magic = 0.4.3
619 python-memcached = 1.47
620 restkit = 4.2.0
621 rtjp-eventlet = 0.3.2
622 setuptools = 0.6c12dev-r88846
623 slapos.core = 0.28
624 slapos.libnetworkcache = 0.13.2
625 slapos.recipe.build = 0.11.4
626 slapos.recipe.template = 2.4.2
627 slapos.toolbox = 0.29
628 smmap = 0.8.2
629 socketpool = 0.5.2
630 supervisor = 3.0a12
631 threadframe = 0.2
632 timerserver = 2.0.2
633 urlnorm = 1.1.2
634 uuid = 1.30
635 validictory = 0.8.3
636 xml-marshaller = 0.9.7
637 xupdate-processor = 0.4
638 mr.developer = 1.21
639 qrcode = 2.4.1
640 requests = 0.13.2
641 cloudooo = 1.2.5-dev