[buildout]
parts = sysegg scripts docker_images cxx_algorithms django node bower help
extensions = mr.developer
index = https://pypi.org/simple
auto-checkout = *
eggs = beat.core
       beat.cmdline
       beat.backend.python
       beat.web
       ipdb
       coverage
       pip
       autopep8
newest = false
develop = .
versions = versions

[versions]
django = >=1.11,<2.0
django-rest-swagger = >2.1
django-guardian = >=1.3
djangorestframework = >3.7
django-activity-stream = >= 0.6.5
django-jsonield = >= 1.0.1

[sysegg]
recipe = syseggrecipe
;force-sysegg = true
eggs = alabaster
       babel
       backports.shutil-get-terminal-size
       colorlog
       coverage
       cycler
       decorator
       django
       django-activity-stream
       django-guardian
       djangorestframework
       django-rest-swagger
       django-jsonfield
       django-jsonfield-compat
       docopt
       docutils
       funcsigs
       functools32
       graphviz
       ipdb
       ipython
       ipython-genutils
       imagesize
       Jinja2
       jsonschema
       MarkupSafe
       matplotlib
       mock
       numpy
       oset
       pathlib2
       pbr
       pexpect
       pickleshare
       pillow
       pip
       psutil
       ptyprocess
       psycopg2-binary
       Pygments
       pyparsing
       python-archive
       python-dateutil
       pytz
       PyYAML
       pyzmq
       simplegeneric
       simplejson
       six
       snowballstemmer
       Sphinx
       sphinxcontrib-ansi
       sphinxcontrib-httpdomain
       sphinxcontrib-mscgen
       sphinxcontrib-programoutput
       sphinx-rtd-theme
       termcolor
       traitlets
       uwsgi

[sources]
beat.core = git git@gitlab.idiap.ch:beat/beat.core branch=1.6.x
beat.cmdline = git git@gitlab.idiap.ch:beat/beat.cmdline branch=1.4.x
beat.backend.python = git git@gitlab.idiap.ch:beat/beat.backend.python branch=1.5.x
beat.examples = git git@gitlab.idiap.ch:beat/beat.examples egg=false

[scripts]
recipe = bob.buildout:scripts

[docker_images]
recipe = collective.recipe.cmd
cmds = ./src/beat.core/buildout_pull_images.sh
uninstall_cmds =
on_install = true
on_update = true

[cxx_algorithms]
recipe = collective.recipe.cmd
cmds = ./src/beat.core/buildout_compile_cxx_algorithm.sh build
uninstall_cmds = ./src/beat.core/buildout_compile_cxx_algorithm.sh cleanup
on_install = true
on_update = true

[django]
recipe = djangorecipe
project = beat
settings = web.settings.settings
eggs = ${buildout:eggs}
       django

[node]
recipe = gp.recipe.node
npms = bower protractor
scripts = bower protractor webdriver-manager

[bower]
recipe = bowerrecipe
packages = jquery#~1.11.3
           jquery-dateFormat#~1.0.2
           jquery-ui#~1.10.4
           jquery.cookie#~1.4.1
           jquery-file-upload#~9.14.0
           fontawesome#~4.5.0
           codemirror#~5.10.0
           bootstrap#~3.3.6
           bootstrap3-dialog#~1.34.9
           bootstrap3-typeahead#~4.0.0
           bootstrap-datepicker#~1.5.1
           mousetrap#~1.5.3
           mustache#2.3.0
           raphael#~2.1.4
           spectrum#~1.7.1
           https://github.com/joshaven/string_score.git#~0.1.22
           chosen-bootstrap#~1.1.0
           angularjs#~1.6.4
           angular-ui-router#~0.2.15
           chartjs#~1.0.2
           underscore#~1.8.3
           datatables#~1.10.10
           angular-ui-sortable#~0.14
           angular-ui-codemirror
executable = ${buildout:bin-directory}/bower
base-directory = beat/web
downloads = static

[help]
recipe = collective.recipe.cmd
cmds = ${buildout:bin-directory}/sphinx-build doc/user beat/web/static/guide
uninstall_cmds = rm -rf beat/web/static/guide
on_install = true
on_update = true