[Checkins] SVN: z3c.recipe.sphinxdoc/trunk/ - Feature: Added new option `doc-eggs` which specifies the list of eggs for
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Feb 19 21:26:53 EST 2009
Log message for revision 96805:
- Feature: Added new option `doc-eggs` which specifies the list of eggs for
which to create documentation explicitely.
- Feature: Changed building behavior so that the documentation for each
package is built in it sown sub-directory.
Changed:
U z3c.recipe.sphinxdoc/trunk/CHANGES.txt
U z3c.recipe.sphinxdoc/trunk/src/z3c/recipe/sphinxdoc/__init__.py
-=-
Modified: z3c.recipe.sphinxdoc/trunk/CHANGES.txt
===================================================================
--- z3c.recipe.sphinxdoc/trunk/CHANGES.txt 2009-02-19 23:27:43 UTC (rev 96804)
+++ z3c.recipe.sphinxdoc/trunk/CHANGES.txt 2009-02-20 02:26:53 UTC (rev 96805)
@@ -5,8 +5,13 @@
0.0.8 (unreleased)
------------------
-- ...
+- Feature: Added new option `doc-eggs` which specifies the list of eggs for
+ which to create documentation explicitely.
+- Feature: Changed building behavior so that the documentation for each
+ package is built in it sown sub-directory.
+
+
0.0.7 (2009-02-15)
------------------
Modified: z3c.recipe.sphinxdoc/trunk/src/z3c/recipe/sphinxdoc/__init__.py
===================================================================
--- z3c.recipe.sphinxdoc/trunk/src/z3c/recipe/sphinxdoc/__init__.py 2009-02-19 23:27:43 UTC (rev 96804)
+++ z3c.recipe.sphinxdoc/trunk/src/z3c/recipe/sphinxdoc/__init__.py 2009-02-20 02:26:53 UTC (rev 96805)
@@ -58,11 +58,14 @@
def install(self):
installed = []
eggs, workingSet = self.egg.working_set()
+ if 'doc-eggs' in self.options:
+ eggs = self.options['doc-eggs'].split()
docs = [workingSet.find(pkg_resources.Requirement.parse(spec))
for spec in eggs]
# Create parts directory for configuration files.
- installDir = join(self.buildout['buildout']['parts-directory'], self.name)
+ installDir = join(
+ self.buildout['buildout']['parts-directory'], self.name)
if not isdir(installDir):
os.mkdir(installDir)
@@ -129,12 +132,16 @@
if not isdir(buildDir):
os.mkdir(buildDir)
+ buildDir = os.path.join(buildDir, doc.project_name)
+ if not isdir(buildDir):
+ os.mkdir(buildDir)
+
srcDir = join(doc.location, srcDirs.get(doc.project_name,
self.options.get('src-dir', doc.project_name.replace('.','/'))))
# fix bad path on windows (e.g. //foo\bar)
srcDir = normpath(srcDir)
- projectsData[doc.project_name] = ['-q','-c',partDir,
+ projectsData[doc.project_name] = ['-q','-c', partDir,
srcDir, buildDir]
installed.extend(zc.buildout.easy_install.scripts(
More information about the Checkins
mailing list