[Buildbot-commits] buildbot/docs buildbot.texinfo,1.77,1.78
Brian Warner
warner at users.sourceforge.net
Fri Sep 15 14:50:11 UTC 2006
Update of /cvsroot/buildbot/buildbot/docs
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22052/docs
Modified Files:
buildbot.texinfo
Log Message:
[project @ add new python-specific steps: BuildEPYDoc and PyFlakes]
Original author: warner at lothar.com
Date: 2006-09-12 17:20:32
Index: buildbot.texinfo
===================================================================
RCS file: /cvsroot/buildbot/buildbot/docs/buildbot.texinfo,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- buildbot.texinfo 15 Sep 2006 14:49:46 -0000 1.77
+++ buildbot.texinfo 15 Sep 2006 14:50:09 -0000 1.78
@@ -165,6 +165,7 @@
* Source Checkout::
* ShellCommand::
* Simple ShellCommand Subclasses::
+* Python BuildSteps::
* Transferring Files::
* Writing New BuildSteps::
@@ -185,6 +186,11 @@
* Test::
* Build Properties::
+Python BuildSteps
+
+* BuildEPYDoc::
+* PyFlakes::
+
Writing New BuildSteps
* BuildStep LogFiles::
@@ -2860,6 +2866,7 @@
* Source Checkout::
* ShellCommand::
* Simple ShellCommand Subclasses::
+* Python BuildSteps::
* Transferring Files::
* Writing New BuildSteps::
@end menu
@@ -3500,7 +3507,7 @@
@end table
- at node Simple ShellCommand Subclasses, Transferring Files, ShellCommand, Build Steps
+ at node Simple ShellCommand Subclasses, Python BuildSteps, ShellCommand, Build Steps
@subsection Simple ShellCommand Subclasses
Several subclasses of ShellCommand are provided as starting points for
@@ -3694,7 +3701,83 @@
@end table
- at node Transferring Files, Writing New BuildSteps, Simple ShellCommand Subclasses, Build Steps
+ at node Python BuildSteps, Transferring Files, Simple ShellCommand Subclasses, Build Steps
+ at subsection Python BuildSteps
+
+Here are some BuildSteps that are specifcally useful for projects
+implemented in Python.
+
+ at menu
+* BuildEPYDoc::
+* PyFlakes::
+ at end menu
+
+ at node BuildEPYDoc, PyFlakes, Python BuildSteps, Python BuildSteps
+ at subsubsection BuildEPYDoc
+
+ at bsindex buildbot.steps.python.BuildEPYDoc
+
+ at url{http://epydoc.sourceforge.net/, epydoc} is a tool for generating
+API documentation for Python modules from their docstrings. It reads
+all the .py files from your source tree, processes the docstrings
+therein, and creates a large tree of .html files (or a single .pdf
+file).
+
+The @code{buildbot.steps.python.BuildEPYDoc} step will run
+ at command{epydoc} to produce this API documentation, and will count the
+errors and warnings from its output.
+
+You must supply the command line to be used. The default is
+ at command{make epydocs}, which assumes that your project has a Makefile
+with an ``epydocs'' target. You might wish to use something like
+ at command{epydoc -o apiref source/PKGNAME} instead. You might also want
+to add @command{--pdf} to generate a PDF file instead of a large tree
+of HTML files.
+
+The API docs are generated in-place in the build tree (under the
+workdir, in the subdirectory controlled by the ``-o'' argument). To
+make them useful, you will probably have to copy them to somewhere
+they can be read. A command like @command{rsync -ad apiref/
+dev.example.com:~public_html/current-apiref/} might be useful. You
+might instead want to bundle them into a tarball and publish it in the
+same place where the generated install tarball is placed.
+
+ at example
+from buildbot.steps.python import BuildEPYDoc
+
+...
+f.addStep(BuildEPYDoc, command=["epydoc", "-o", "apiref", "source/mypkg"])
+ at end example
+
+
+ at node PyFlakes, , BuildEPYDoc, Python BuildSteps
+ at subsubsection PyFlakes
+
+ at bsindex buildbot.steps.python.PyFlakes
+
+ at url{http://divmod.org/trac/wiki/DivmodPyflakes, PyFlakes} is a tool
+to perform basic static analysis of Python code to look for simple
+errors, like missing imports and references of undefined names. It is
+like a fast and simple form of the C ``lint'' program. Other tools
+(like pychecker) provide more detailed results but take longer to run.
+
+The @code{buildbot.steps.python.PyFlakes} step will run pyflakes and
+count the various kinds of errors and warnings it detects.
+
+You must supply the command line to be used. The default is
+ at command{make pyflakes}, which assumes you have a top-level Makefile
+with a ``pyflakes'' target. You might want to use something like
+ at command{pyflakes .} or @command{pyflakes src}.
+
+ at example
+from buildbot.steps.python import PyFlakes
+
+...
+f.addStep(PyFlakes, command=["pyflakes", "src"])
+ at end example
+
+
+ at node Transferring Files, Writing New BuildSteps, Python BuildSteps, Build Steps
@subsection Transferring Files
@cindex File Transfer
More information about the Commits
mailing list