erp5.cfg 12.8 KB
Newer Older
1 2
[buildout]
extensions =
3
  slapos.rebootstrap
4
  slapos.zcbworkarounds
5
  buildout-versions
6
  mr.developer
7 8 9

find-links =
    http://www.nexedi.org/static/packages/source/slapos.buildout/
10
    http://www.nexedi.org/static/packages/source/hexagonit.recipe.download/
11 12
    http://dist.repoze.org
    http://www.nexedi.org/static/packages/source/
13
    http://www.owlfish.com/software/wsgiutils/download.html
14

15 16 17 18 19
# Separate from site eggs
allowed-eggs-from-site-packages =
include-site-packages = false
exec-sitecustomize = false

20 21 22 23 24
# Use only quite well working sites.
allow-hosts =
  *.nexedi.org
  *.python.org
  *.sourceforge.net
25
  alastairs-place.net
26 27
  dist.repoze.org
  effbot.org
28
  github.com
29
  peak.telecommunity.com
30
  psutil.googlecode.com
31
  www.dabeaz.com
32
  www.owlfish.com
33
  launchpad.net
34
  bitbucket.org
35

36 37
extends =
# Exact version of Zope
38
  http://svn.zope.org/repos/main/Zope/tags/2.12.23/versions.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
39 40 41 42 43 44 45
  ../component/logrotate/buildout.cfg
  ../component/dcron/buildout.cfg
  ../component/file/buildout.cfg
  ../component/fonts/buildout.cfg
  ../component/ghostscript/buildout.cfg
  ../component/git/buildout.cfg
  ../component/graphviz/buildout.cfg
46
  ../component/gzip/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
47 48
  ../component/haproxy/buildout.cfg
  ../component/hookbox/buildout.cfg
49
  ../component/librsvg/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
50 51
  ../component/imagemagick/buildout.cfg
  ../component/kumo/buildout.cfg
52
  ../component/libdmtx/buildout.cfg
53
  ../component/libpng/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
54 55
  ../component/libreoffice-bin/buildout.cfg
  ../component/lxml-python/buildout.cfg
56
  ../component/percona-toolkit/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
57 58 59 60
  ../component/mariadb/buildout.cfg
  ../component/memcached/buildout.cfg
  ../component/mysql-python/buildout.cfg
  ../component/pdftk/buildout.cfg
61
  ../component/pil-python/buildout.cfg
62
  ../component/pycrypto-python/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
63 64 65 66 67
  ../component/pysvn-python/buildout.cfg
  ../component/python-2.6/buildout.cfg
  ../component/python-2.7/buildout.cfg
  ../component/python-ldap-python/buildout.cfg
  ../component/rdiff-backup/buildout.cfg
68
  ../component/sphinx/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
69 70 71 72 73 74
  ../component/stunnel/buildout.cfg
  ../component/subversion/buildout.cfg
  ../component/tesseract/buildout.cfg
  ../component/varnish/buildout.cfg
  ../component/w3-validator/buildout.cfg
  ../component/w3m/buildout.cfg
Rafael Monnerat's avatar
Rafael Monnerat committed
75
  ../component/6tunnel/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
76
  ../component/xorg/buildout.cfg
77
  ../component/poppler/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
78 79 80 81 82
  ../component/xtrabackup/buildout.cfg
  ../component/zabbix/buildout.cfg
  ../component/sed/buildout.cfg
  ../component/coreutils/buildout.cfg
  ../component/grep/buildout.cfg
Romain Courteaud's avatar
Romain Courteaud committed
83
  ../component/dash/buildout.cfg
84
  ../component/wget/buildout.cfg
85
  ../component/aspell/buildout.cfg
86
  ../component/cloudooo/buildout.cfg
87
  ../component/squid/buildout.cfg
88 89 90 91 92

versions = versions

parts =
  rdiff-backup
93
  aspell
94
  aspell-en-dictionary
95 96 97 98 99 100
  apache
  apache-antiloris
  file
  graphviz
  memcached
  haproxy
101
  varnish-3.0
102 103
  stunnel
  w3m
Rafael Monnerat's avatar
Rafael Monnerat committed
104
  poppler
105
  libpng
106 107
  ghostscript
  mariadb
108
  mroonga-mariadb
109
  sphinx
110
  imagemagick
111 112
  libdmtx
  dmtx-utils
113 114 115
  kumo
  libreoffice-bin
  w3-validator
Rafael Monnerat's avatar
Rafael Monnerat committed
116
  6tunnel
117 118 119
  tesseract
  hookbox
  bootstrap2.6
120 121 122
  perl-DBD-mariadb
  perl-DBI
  percona-toolkit
123 124 125
  zabbix-agent
  pdftk
  dcron
Romain Courteaud's avatar
Romain Courteaud committed
126
  dash
127
  wget
128 129 130 131 132 133 134 135 136 137

# Buildoutish
  eggs
  testrunner
  test_suite_runner

# basic Xorg
  libXdmcp
  libXext
  libXau
138
  libSM
139
  libXrender
140 141 142 143 144 145 146 147 148 149

# fonts
  liberation-fonts
  ipaex-fonts

# Cloudooo specific part
  cloudooo

# get git repositories
  erp5
150 151
  genbt5list

152 153
# fix products path (Zeo needs ERP5 Products to be available for
# conflict resolution)
154
  fix-products-paths
155
  vifib-fix-products-paths
156 157
# some additional utils
  slapos-toolbox
158
  squid
159

160 161 162 163 164 165 166 167 168 169 170
[bt5-repository]
# Format:
#   <url or path> [...]
#
# Use absolute paths for local repositories, and URLs for non-local otherwise.
#
list = ${local-bt5-repository:list}

[local-bt5-repository]
# Same as bt5-repository, but only local repository.
# Used to generate bt5lists.
171
list = ${erp5:location}/bt5 ${erp5:location}/product/ERP5/bootstrap ${vifib:location}/master/bt5
172 173 174 175 176 177

[genbt5list]
recipe = plone.recipe.command
stop-on-error = true
genbt5list = ${erp5:location}/product/ERP5/bin/genbt5list
command =
Łukasz Nowak's avatar
Łukasz Nowak committed
178
  ${buildout:executable} ${:genbt5list} ${local-bt5-repository:list}
179
update-command = ${:command}
180 181 182 183 184

[bootstrap2.6]
python = python2.6

[rebootstrap]
185
version = 3
186
section = python2.7
187
eggs = slapos.libnetworkcache
188 189

[erp5_repository_list]
190
repository_id_list = erp5 vifib/master
191 192 193 194 195 196 197 198 199 200

[erp5]
# Recipe zerokspot.recipe.git is disabled, as is not possible to change its
# environment to use localy delivered git.
# plone.recipe.command can do same job, but it is controllable which binary
# will be used
recipe = plone.recipe.command
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
repository = http://git.erp5.org/repos/erp5.git
201
branch = interaction-drop
Romain Courteaud's avatar
Romain Courteaud committed
202
revision =
203 204
command = "${git:location}/bin/git" clone --quiet --branch "${:branch}" "${:repository}" "${:location}" && if [ -n "${:revision}" ]; then cd "${:location}" && "${git:location}/bin/git" reset --quiet --hard "${:revision}" ; fi
update-command = cd "${:location}" && "${git:location}/bin/git" fetch && if [ -n "${:revision}" ]; then "${git:location}/bin/git" reset --hard "${:revision}"; else "${git:location}/bin/git" reset --hard @{upstream} ; fi
205

206 207 208 209
[vifib]
<= erp5
branch = master
repository = http://git.erp5.org/repos/slapos.core.git
Romain Courteaud's avatar
Romain Courteaud committed
210
revision =
211

212
[fix-products-paths]
213 214 215 216 217
recipe = plone.recipe.command
stop-on-error = true
command =
  for DIR in "${erp5:location}"; do cd "$DIR"; rm -f Products ; ln -s product Products; touch product/__init__.py; done
update-command = ${:command}
218

219
[vifib-fix-products-paths]
Łukasz Nowak's avatar
Łukasz Nowak committed
220
<= fix-products-paths
221 222 223 224
command =
  for DIR in "${vifib:location}/master"; do cd "$DIR"; rm -f Products ; ln -s product Products; touch product/__init__.py; done
update-command = ${:command}

225 226 227 228 229 230 231 232
[testrunner]
# XXX: Workaround for fact ERP5Type is not an distribution and does not
#      expose entry point for test runner
recipe = zc.recipe.egg
python = python2.6
eggs = ${eggs:eggs}
extra-paths = ${eggs:extra-paths}
entry-points =
233
  runUnitTest=runUnitTest:main
234 235
scripts = runUnitTest
initialization =
236
  import glob, imp, os, sys
237
  import App # prevent Testing from importing Zope2.App instead of App
238
  import Products
239 240 241
  Products.__path__[:0] = filter(None,
    os.getenv('INSERT_PRODUCTS_PATH', '').split(os.pathsep))
  os.environ['SOFTWARE_HOME'] = os.path.abspath(imp.find_module('Zope2')[1])
242
  os.environ['ZOPE_SCRIPTS'] = ''
Vincent Pelletier's avatar
Vincent Pelletier committed
243
  parts_directory = '''${buildout:parts-directory}'''
244 245 246 247 248 249
  repository_id_list = \
    '''${erp5_repository_list:repository_id_list}'''.split()[::-1]
  os.environ['erp5_tests_bt5_path'] = ','.join(sum((
    [bt5_path, os.path.join(bt5_path, '*')]
    for bt5_path in (os.path.join(parts_directory, x, 'bt5')
                     for x in repository_id_list)), []))
250
  extra_path_list = '''${:extra-paths}'''.split()
251
  sys.path[:0] = sum((
252 253
    glob.glob(os.path.join(x, 'tests'))
    for x in extra_path_list), [])
254
  sys.path[:0] = sum((
255 256
    glob.glob(os.path.join(x, 'Products', '*', 'tests'))
    for x in extra_path_list), [])
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275

[test_suite_runner]
# XXX: Workaround for fact ERP5Type is not an distribution and does not
#      expose entry point for test runner
recipe = zc.recipe.egg
python = python2.6
eggs = ${eggs:eggs}
extra-paths = ${eggs:extra-paths}
entry-points =
  runTestSuite=Products.ERP5Type.tests.runTestSuite:main
scripts = runTestSuite
initialization =
  import os
  import sys
  import Products
  [Products.__path__.insert(0, p) for p in reversed(os.environ.get('INSERT_PRODUCTS_PATH', '').split(':')) if p]
  import Zope2
  os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
  os.environ['ZOPE_SCRIPTS'] = ''
276
  repository_id_list = list(reversed('''${erp5_repository_list:repository_id_list}'''.split()))
277
  sys.path[0:0] = ['/'.join(['''${buildout:parts-directory}''', x]) for x in repository_id_list]
278 279 280 281

[eggs]
recipe = zc.recipe.egg
python = python2.6
282 283
dummy =
  ${vifib:location}
284 285 286
eggs =
  ${mysql-python:egg}
  ${lxml-python:egg}
287
  ${pil-python:egg}
288 289
  ${python-ldap-python:egg}
  ${pysvn-python:egg}
290
  ${pycrypto-python:egg}
291 292 293 294
  PyXML
  SOAPpy
  cElementTree
  chardet
Aurel's avatar
Aurel committed
295
  coverage
296 297
  elementtree
  erp5diff
298
  inotifyx
299 300 301 302 303 304 305 306 307
  ipdb
  mechanize
  numpy
  ordereddict
  paramiko
  ply
  python-magic
  python-memcached
  pytz
308
  requests
309 310 311 312 313 314 315 316
  threadframe
  timerserver
  urlnorm
  uuid
  xml_marshaller
  xupdate_processor
  feedparser
  argparse
317
  validictory
318
  erp5.util
319
  huBarcode
320
  qrcode
321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351

# Zope 2.12 with patched acquisition
  ZODB3
  Zope2
  Acquisition

# Other Zope 2 packages
  Products.PluggableAuthService
  Products.PluginRegistry

# CMF 2.2
  Products.CMFActionIcons
  Products.CMFCalendar
  Products.CMFCore
  Products.CMFDefault
  Products.CMFTopic
  Products.CMFUid
  Products.DCWorkflow
  Products.GenericSetup
  five.localsitemanager

# Other products
  Products.DCWorkflowGraph
  Products.MimetypesRegistry
  Products.ExternalEditor
  Products.TIDStorage

# Currently forked in our repository
#    Products.PortalTransforms
# Dependency for our fork of PortalTransforms
  StructuredText
352
  suds
Łukasz Nowak's avatar
Łukasz Nowak committed
353
  facebook-sdk
Łukasz Nowak's avatar
Łukasz Nowak committed
354
  google-api-python-client
Łukasz Nowak's avatar
Łukasz Nowak committed
355
  spyne
356
  slapos.core
357

358 359 360
# Needed for parsing .po files from our Localizer subset
  polib

361 362 363 364 365 366 367 368 369 370
# parameterizing the version of the generated python interpreter name by the
# python section version causes dependency between this egg section and the
# installation of python, which we don't want on an instance
interpreter = python2.6
scripts =
  repozo
  runzope
  runzeo
  tidstoraged
  tidstorage_repozo
371
  web_checker_utility = erp5.util.webchecker:web_checker_utility
372 373

extra-paths =
374
  ${erp5:location}
375
  ${vifib:location}/master
376

377 378 379 380
[cloudooo-repository]
branch = master
revision = 4cdfffb3f81a0fdbb7b372d92de664e716f12d4b

381 382 383 384 385 386
[mysql-python]
python = python2.6

[lxml-python]
python = python2.6

387 388 389
[pil-python]
python = python2.6

390 391 392 393 394 395
[python-ldap-python]
python = python2.6

[pysvn-python]
python = python2.6

396 397 398 399 400 401
[slapos-toolbox]
recipe = zc.recipe.egg
python = ${eggs:python}
eggs =
  ${lxml-python:egg}
  slapos.toolbox
Łukasz Nowak's avatar
Łukasz Nowak committed
402
  slapos.toolbox[zodbpack]
403 404

scripts =
Łukasz Nowak's avatar
Łukasz Nowak committed
405 406
  killpidfromfile
  onetimedownload
Łukasz Nowak's avatar
Łukasz Nowak committed
407
  zodbpack
408

409 410
[versions]
# Use SlapOS patched zc.buildout
411
zc.buildout = 1.6.0-dev-SlapOS-006
412

413 414 415 416
# stick to Zope 2.12.22 because Zope 2.12.23's
# ObjectManager.__getitem__ is much slower for a module having lots of
# sub objects.
Zope2 = 2.12.22
417

418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433
# pin Acquisition and Products.DCWorkflow to Nexedi flavour of eggs
Acquisition = 2.13.7nxd001
Products.DCWorkflow = 2.2.3nxd002

# Known version with works
numpy = 1.3.0
# Patched version which support python 2.6
PyXML = 0.8.4nxd001
# modified version that works fine for buildout installation
SOAPpy = 0.12.0nxd001
# we are still using this old stable version.
rdiff-backup = 1.0.5

# official pysvn egg does not supports --include-dirs and
# --library-dirs, so we use our modified version
pysvn = 1.7.4nxd006
434 435 436 437 438 439 440

# CMF 2.3 requries Zope 2.13.
Products.CMFCalendar = 2.2.2
Products.CMFCore = 2.2.5
Products.CMFDefault = 2.2.2
Products.CMFTopic = 2.2.1
Products.CMFUid = 2.2.1
441 442 443 444 445

# Unpined locally developed egg
slapos.cookbook =

# Pinned versions
446 447
Flask = 0.8
GitPython = 0.3.2.RC1
448
MySQL-python = 1.2.3
449
PIL = 1.1.7
450
Paste = 1.7.5.1
451
PasteDeploy = 1.5.0
452 453 454 455 456 457 458 459 460
PasteScript = 1.7.5
Products.CMFActionIcons = 2.1.3
Products.CMFCalendar = 2.2.2
Products.CMFCore = 2.2.5
Products.CMFDefault = 2.2.2
Products.CMFTopic = 2.2.1
Products.CMFUid = 2.2.1
Products.DCWorkflowGraph = 0.4.1
Products.ExternalEditor = 1.1.0
461
Products.GenericSetup = 1.7.1
462
Products.MimetypesRegistry = 2.0.3
463
Products.PluggableAuthService = 1.7.7
464 465 466 467 468 469 470
Products.PluginRegistry = 1.3b1
Products.TIDStorage = 5.4.7.dev-r45842
Products.Zelenium = 1.0.3
StructuredText = 2.11.1
WSGIUtils = 0.7
Werkzeug = 0.8.3
apache-libcloud = 0.9.1
471
argparse = 1.1
472
async = 0.6.1
473
atomize = 0.1.1
474 475 476 477 478 479 480 481 482 483
buildout-versions = 1.7
cElementTree = 1.0.5-20051216
chardet = 1.0.1
coverage = 3.5.1
csp-eventlet = 0.7.0
elementtree = 1.2.7-20070827-preview
erp5.recipe.cmmiforcei686 = 0.1.3
erp5.util = 0.4.1
erp5diff = 0.8.1.5
eventlet = 0.9.16
484
feedparser = 5.1.1
485
five.localsitemanager = 2.0.5
486
fpconst = 0.7.2
487 488 489
gitdb = 0.5.4
greenlet = 0.3.4
hexagonit.recipe.cmmi = 1.5.0
490 491 492
# Use patched hexagonit.recipe.download from
# https://github.com/SlapOS/hexagonit.recipe.download
hexagonit.recipe.download = 1.5.1-dev-slapos-001
493 494
http-parser = 0.7.5
huBarcode = 0.63
495
inotifyx = 0.2.0
496 497 498
ipdb = 0.6.1
ipython = 0.12
meld3 = 0.6.8
499 500
netaddr = 0.7.6
netifaces = 0.8
501
ordereddict = 1.1
502
paramiko = 1.7.7.1
503 504
plone.recipe.command = 1.1
ply = 3.4
505
polib = 1.0.0
506
psutil = 0.4.1
507
python-ldap = 2.4.9
508
python-magic = 0.4.2
509 510 511
python-memcached = 1.47
restkit = 4.1.2
rtjp-eventlet = 0.3.2
512
setuptools = 0.6c12dev-r88846
513
slapos.core = 
514
slapos.recipe.build = 0.7
515
slapos.recipe.template = 2.4
Łukasz Nowak's avatar
Łukasz Nowak committed
516
slapos.toolbox = 0.23
517
smmap = 0.8.2
518 519
socketpool = 0.3.0
supervisor = 3.0a12
520 521 522 523 524 525
threadframe = 0.2
timerserver = 2.0.2
urlnorm = 1.1.2
uuid = 1.30
validictory = 0.8.3
xml-marshaller = 0.9.7
526
xupdate-processor = 0.4
527
suds = 0.4
Łukasz Nowak's avatar
Łukasz Nowak committed
528
facebook-sdk = 0.3.1
Łukasz Nowak's avatar
Łukasz Nowak committed
529 530 531
google-api-python-client = 1.0c2
httplib2 = 0.7.4
qrcode = 2.4.1
532
python-gflags = 2.0
Łukasz Nowak's avatar
Łukasz Nowak committed
533 534
mr.developer = 1.21
requests = 0.13.5
535
spyne = 2.8.0-rc
Łukasz Nowak's avatar
Łukasz Nowak committed
536
lxml = 2.3.5