Mercurial > hg > buttercup
view buttercup/__init__.py @ 47:0274d9d9fcd4
add dev requirements from lemur box
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 12 Nov 2013 10:29:30 -0800 |
parents | 86c3c0d4d434 |
children |
line wrap: on
line source
from paste.script import templates var = templates.var class buttercup(templates.Template): _template_dir = 'template' summary = 'paste template for creating instances of the buttercup flower website pattern' vars = [ var('description', 'One-line description of the package'), var('author', 'Author name'), var('author_email', 'Author email'), var('url', 'URL of homepage'), ] def pre(self, command, output_dir, vars): """ called before the template is applied """ # XXX broken for now # src = sources() # vars['install_requires'] = '\n'.join([repr(s[0])+',' # for s in src]) def post(self, command, output_dir, vars): """ called after the template is applied """