[Checkins] SVN: Products.CMFCore/trunk/ - fix up the buildout to create a working ``sphinx-build`` with

Jens Vagelpohl cvs-admin at zope.org
Wed Apr 4 08:26:26 UTC 2012


Log message for revision 124931:
  - fix up the buildout to create a working ``sphinx-build`` with 
    correct dependencies in place
  

Changed:
  U   Products.CMFCore/trunk/buildout.cfg
  _U  Products.CMFCore/trunk/docs/
  U   Products.CMFCore/trunk/docs/conf.py

-=-
Modified: Products.CMFCore/trunk/buildout.cfg
===================================================================
--- Products.CMFCore/trunk/buildout.cfg	2012-04-04 08:18:26 UTC (rev 124930)
+++ Products.CMFCore/trunk/buildout.cfg	2012-04-04 08:26:23 UTC (rev 124931)
@@ -1,5 +1,4 @@
 [buildout]
-extends = http://download.zope.org/Zope2/index/2.13.1/versions.cfg
 develop = .
 parts =
     test
@@ -26,7 +25,7 @@
 [sphinx]
 recipe = zc.recipe.egg
 eggs =
+    Products.CMFCore
     Sphinx
-    Zope2
-    five.localsitemanager
     repoze.sphinx.autointerface
+    pkginfo


Property changes on: Products.CMFCore/trunk/docs
___________________________________________________________________
Added: svn:ignore
   + _build


Modified: Products.CMFCore/trunk/docs/conf.py
===================================================================
--- Products.CMFCore/trunk/docs/conf.py	2012-04-04 08:18:26 UTC (rev 124930)
+++ Products.CMFCore/trunk/docs/conf.py	2012-04-04 08:26:23 UTC (rev 124931)
@@ -11,8 +11,10 @@
 # All configuration values have a default; values that are commented out
 # serve to show the default.
 
+import datetime
 import os
-#import sys
+import pkginfo
+import sys
 
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
@@ -46,17 +48,22 @@
 master_doc = 'index'
 
 # General information about the project.
-project = u'CMFCore'
-copyright = u'2010, CMF Developers'
+parent = os.path.dirname(os.path.dirname(__file__))
+parent_dir = os.path.abspath(parent)
+sys.path.append(parent_dir)
+pkg_info = pkginfo.Develop(parent_dir)
+year = datetime.datetime.now().year
+project = u'%s' % pkg_info.name
+copyright = u'2010-%s, CMF Developers' % year
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
 # built documents.
 #
 # The short X.Y version.
-version = '2.3'
+version = pkg_info.version.replace('dev', '')
 # The full version, including alpha/beta/rc tags.
-release = '2.3'
+release = pkg_info.version
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
@@ -133,7 +140,7 @@
 
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.
-#html_last_updated_fmt = '%b %d, %Y'
+html_last_updated_fmt = '%b %d, %Y'
 
 # If true, SmartyPants will be used to convert quotes and dashes to
 # typographically correct entities.



More information about the checkins mailing list