[Checkins] SVN: buildout-website/trunk/source/docs/recipe.rst Sidebar about default recipe

Baiju M baiju.m.mail at gmail.com
Sat May 23 07:02:39 EDT 2009


Log message for revision 100289:
  Sidebar about default recipe
  

Changed:
  U   buildout-website/trunk/source/docs/recipe.rst

-=-
Modified: buildout-website/trunk/source/docs/recipe.rst
===================================================================
--- buildout-website/trunk/source/docs/recipe.rst	2009-05-23 10:42:13 UTC (rev 100288)
+++ buildout-website/trunk/source/docs/recipe.rst	2009-05-23 11:02:38 UTC (rev 100289)
@@ -138,17 +138,32 @@
       entry_points = {'zc.buildout': ['mkdir = mkdir:Mkdir']},
       )
 
+.. sidebar:: Default Recipe
+
+   If your package is providing only one recipe, the name of entry
+   point can be given as `default`.  So, the user of recipe need not
+   to explicitly mention it in the parts.
+
+   Eg:- ``entry_points = {'zc.buildout': ['default = mkdir:Mkdir']}``
+
+   Usage::
+ 
+     [partname]
+     recipe = mkdir_recipe
+     path = mystuff
+
 Our setup script defines an entry point.  Entry points provide a way
 for an egg to define the services it provides.  Here we've said that
-we define a zc.buildout entry point named mkdir.  Recipe classes must
-be exposed as entry points in the zc.buildout group.  we give entry
-points names within the group.
+we define a zc.buildout entry point named `mkdir`.  Recipe classes
+must be exposed as entry points in the zc.buildout group.  we give
+entry points names within the group.
 
 We also need a README.txt for our recipes to avoid an annoying warning
 from distutils, on which setuptools and zc.buildout are based::
 
     $ touch README.txt
 
+The above command will create an empty `README.txt` file.
 
 Using recipes
 -------------
@@ -286,6 +301,7 @@
 documentation
 <http://peak.telecommunity.com/DevCenter/setuptools#upload-upload-source-and-or-egg-distributions-to-pypi>`_.
 
+
 Conclusion
 ----------
 



More information about the Checkins mailing list