Commits

Dmitri Lebedev committed e523db4

updated yuic & pinned packages' versions

Comments (0)

Files changed (2)

 	cleanup
 	sass
 	yuic
-	unzip_yuic
 
-versions = versions
 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
+	ipython >= 0.13 			# advanced interactive Python shell
+	ipdb 						# IPython debugger
+	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
+	werkzeug 					# WSGI debug post-mortem shell in the page
+#	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
+	djaml 						# hamlpy loader
 
 
 [sass]
 project = ${buildout:project}
 settings = dev
 wsgi = true
-eggs =
-#	mock                  # useful for mocking some objects in unit tests
-#	django-reversion      # useful for keeping revisions of objects
-	ipython               # advanced interactive Python shell
-	django_extensions     # shell_plus
-	django-annoying       # a set of decorators and middleware to simplify coding
-	django-debug-toolbar  # cool debugging
-	werkzeug              # WSGI debug post-mortem shell in the page
-#	django-tastypie       # RESTful API for models
-#	Pillow				  # replacement of PIL
-	pudb                  # console debugging IDE
-	django_compressor     # js/css compressor/compiler
-	BeautifulSoup         # required by compressor
-	html5lib              # required by compressor
-	lxml                  # required by compressor
-	django-appconf        # required by compressor
-#	versiontools          # required by reversion
-	hamlpy                # HAML templates. Before a pull request is done, culebron-hamlpy is used.
-	djaml                 # hamlpy loader
+eggs = ${buildout:eggs}
 
 
 [prod]
 project = ${buildout:project}
 settings = prod
 wsgi = true
-eggs = ${django:eggs}
-
-
-[versions]
-# change these versions when you are sure they will be compatible with your project
-django = 1.4.0
-django-annoying = 0.7.6
-django_compressor = 1.1
-django_extensions = 1.7.1
-django-reversion = 1.5.1
-django-tastypie = 0.9.9
-ipython = 0.13
+eggs = ${buildout:eggs}
 
 
 [cleanup]
 
 
 [yuic]
-# downloads the yui compressor
-version = 2.4.7
-recipe = hexagonit.recipe.download
-md5sum = 885657c68ed617737e730b4c2ce52dda
-url = http://yui.zenfs.com/releases/yuicompressor/yuicompressor-${yuic:version}.zip
-download-only = true
-
-
-[unzip_yuic]
-# unpacks yui compressor jar file
-recipe = collective.recipe.cmd
-on_install = true
-on_update = true
-zipname = ${buildout:directory}/parts/yuic/yuicompressor-${yuic:version}.zip
-jarname = yuicompressor-${yuic:version}/build/yuicompressor-${yuic:version}.jar
-cmds =
-	unzip -jo ${unzip_yuic:zipname} ${unzip_yuic:jarname} -d ${buildout:directory}/parts/yuic
-
+# YUI compressor. Minifies JS files.
+recipe = zc.recipe.egg
+eggs = yuicompressor

project/settings.py

 	)
 
 # turn this on to enable YUI compressor
-# also add yuic in buildout.cfg
 COMPRESS_ENABLED = False
 COMPRESS_JS_FILTERS = ['compressor.filters.yui.YUIJSFilter']
 COMPRESS_CSS_FILTERS = ['compressor.filters.yui.YUICSSFilter']
-COMPRESS_YUI_BINARY = os.path.join(PROJECT_ROOT, '..', 'parts', 'yuic', 'yuicompressor-2.4.7.jar')
+COMPRESS_YUI_BINARY = os.path.join(PROJECT_ROOT, '..', 'bin', 'yuicompressor')