Source

fastdev-django / buildout.common.cfg

# Prerequisites

# sudo apt-get install libxslt-dev python-dev libpq-dev rubygems make
# sudo apt-get install openjdk-6-jre-headless --no-install-recommends

# Django compressor requires lxml
# lxml requires libxslt-dev and python-dev installed in system


[buildout]
# add local subrepos that have setup.py to develop eggs in 'develop =' section.
# gp.recipe.node works only from the repo, not from pypi
develop =
role = dev

domain = localhost
# name your site here
sitename = fastdev-django


# do not use custom python packages installed in the system
include-site-packages = false

# hamlpy needs a patch that this subrepo has
parts =
	django
	cleanup
	sass
	yuic_hamlpy


project = project
eggs =
	django >= 1.4, <1.5
#	mock 						# useful for mocking some objects in unit tests
#	django-reversion == 1.5.1	# useful for keeping revisions of objects
	django_extensions == 0.9 	# shell_plus
	django-annoying == 0.7.6 	# a set of decorators and middleware to simplify coding
	django-debug-toolbar 		# cool debugging
#	django-tastypie == 0.9.11 	# RESTful API for models
#	Pillow 						# replacement of PIL
#	pudb 						# console debugging IDE
	django_compressor == 1.2	# js/css compressor/compiler
	BeautifulSoup 				# required by compressor
	html5lib 					# required by compressor
	lxml 						# required by compressor
#	versiontools 				# required by reversion
	hamlpy 						# HAML templates


[sass]
project = ${buildout:project}
recipe = rubygemsrecipe
gems =
	sass


[coffee]
recipe = gp.recipe.node
npms =
	coffee-script
scripts =
	coffee
	npm


[django]
recipe = djangorecipe
project = ${buildout:project}
settings = ${buildout:role}
wsgi = true
eggs = ${buildout:eggs}


[cleanup]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds =
	find ${buildout:project} -name '*.py[co]' -delete


[yuic_hamlpy]
# YUI compressor. Minifies JS files.
recipe = zc.recipe.egg
eggs =
	yuicompressor
	hamlpy
scripts =
	hamlpy
	yuicompressor


[uwsgi]
recipe = collective.recipe.template
on_install = true
on_update = true

host = 127.0.0.1
port = 27001
connection = ${uwsgi:host}:${uwsgi:port}
# or a unix socket for slightly better performance

input = deploy/uwsgi.ini.tpl
output = deploy/uwsgi.ini

[nginx]
<= uwsgi
input = deploy/nginx.conf.tpl
output = deploy/nginx.conf