Changes between Version 9 and Version 10 of Build Recipes
- Timestamp:
- Oct 4, 2005, 5:27:03 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Build Recipes
v9 v10 24 24 <step id="test" description="Run unit tests"> 25 25 <python:distutils command="unittest"/> 26 <python:unittest file="build/test-results.xml"/> 27 <python:trace summary="build/test-coverage.txt" 28 coverdir="build/coverage" include="trac*" exclude="*.tests.*"/> 26 <reports> 27 <python:unittest file="build/test-results.xml"/> 28 <python:trace summary="build/test-coverage.txt" 29 coverdir="build/coverage" include="trac*" exclude="*.tests.*"/> 29 30 </reports> 30 31 </step> … … 35 36 == Recipe Command Binding == 36 37 37 Recipe commands and report generators are mapped to Python functions using [http://peak.telecommunity.com/DevCenter/PkgResources#entry-points entry points]. Bitten itself comes with a number of entry points that provide recipe commands, but third-party packages can provide additional commands by declaring their own `bitten.recipe_commands` 38 Recipe commands and report generators are mapped to Python functions using [http://peak.telecommunity.com/DevCenter/PkgResources#entry-points entry points]. Bitten itself comes with a number of entry points that provide recipe commands, but third-party packages can provide additional commands by declaring their own `bitten.recipe_commands` entry points. 38 39 39 40 The values of attributes on recipe command elements are passed to the function as keyword arguments. Special care must be taken with names that are either not valid Python identifiers, or that conflict with Python keywords or built-in functions. Dashes in names are replaced with underscores, and names that conflict with keywords or built-in functions get an underscore appended.