comparison buildout.cfg @ 205:fd572809cb18

Add local configuration file as arguments to user scripts. * * * Example configuration file.
author Daniele Nicolodi <daniele@grinta.net>
date Wed, 16 Nov 2011 19:10:28 +0100
parents d6b205e8c1f9
children ca6999a5b402
comparison
equal deleted inserted replaced
204:d6b205e8c1f9 205:fd572809cb18
1 [buildout] 1 [buildout]
2 include-site-packages = false 2 include-site-packages = false
3 parts = flask wsgi 3 parts = install instance wsgi
4 develop = src 4 develop = src
5 5
6 [flask] 6 # install software
7 [install]
7 recipe = zc.recipe.egg 8 recipe = zc.recipe.egg
8 eggs = 9 eggs =
9 distribute 10 distribute
10 Flask 11 Flask
11 WTForms 12 WTForms
13 argparse 14 argparse
14 itsdangerous 15 itsdangerous
15 python-dateutil < 2.0 16 python-dateutil < 2.0
16 ltpdarepo 17 ltpdarepo
17 interpreter = python 18 interpreter = python
19 scripts =
20
21 # generate scripts pointing to the right configuration file
22 [instance]
23 recipe = zc.recipe.egg:script
24 eggs = ${install:eggs}
18 scripts = run admin 25 scripts = run admin
26 arguments = '${buildout:directory}/etc/ltpdarepo'
19 27
28 # generate wsgi application
20 [wsgi] 29 [wsgi]
21 recipe = zc.recipe.egg:script 30 recipe = zc.recipe.egg:script
22 eggs = ${flask:eggs} 31 eggs = ${install:eggs}
23 scripts = wsgi 32 scripts = wsgi
24 entry-points = 33 entry-points =
25 wsgi=ltpdarepo:main 34 wsgi=ltpdarepo:main
26 initialization = 35 initialization =
27 from ltpdarepo import Application 36 from ltpdarepo import Application
28 application = Application() 37 application = Application('${buildout:directory}/etc/ltpdarepo')