summaryrefslogtreecommitdiffstats
path: root/Doc/conf.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-21 20:20:53 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-21 20:20:53 (GMT)
commitdd76e05dd91dbf948a5bf6561b7f5a8f2dfbbebe (patch)
tree8f5ccd41a698013c0c0deec56886854ca99a6670 /Doc/conf.py
parent4a11a06d12aa328164b3aa58860faec929ba60b0 (diff)
downloadcpython-dd76e05dd91dbf948a5bf6561b7f5a8f2dfbbebe.zip
cpython-dd76e05dd91dbf948a5bf6561b7f5a8f2dfbbebe.tar.gz
cpython-dd76e05dd91dbf948a5bf6561b7f5a8f2dfbbebe.tar.bz2
Adapt to latest doctools refactoring.
Diffstat (limited to 'Doc/conf.py')
-rw-r--r--Doc/conf.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/Doc/conf.py b/Doc/conf.py
index 7776332..7a4c271 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -7,23 +7,27 @@
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pickleable (module imports are okay, they're removed automatically).
+import sys, os, time
+sys.path.append('tools/sphinxext')
+
# General configuration
# ---------------------
# General substitutions.
project = 'Python'
-copyright = '1990-2007, Python Software Foundation'
+copyright = '1990-%s, Python Software Foundation' % time.strftime('%Y')
# The default replacements for |version| and |release|.
-# If '<auto>', Sphinx looks for the Include/patchlevel.h file in the current Python
-# source tree and replaces the values accordingly.
#
# The short X.Y version.
# version = '2.6'
-version = '<auto>'
# The full version, including alpha/beta/rc tags.
# release = '2.6a0'
-release = '<auto>'
+
+# We look for the Include/patchlevel.h file in the current Python source tree
+# and replace the values accordingly.
+import patchlevel
+version, release = patchlevel.get_version_info()
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
@@ -118,7 +122,6 @@ latex_documents = [
'What\'s New in Python', 'A. M. Kuchling', 'howto'),
]
# Collect all HOWTOs individually
-import os
latex_documents.extend(('howto/' + fn, 'howto-' + fn[:-4] + '.tex',
'HOWTO', _stdauthor, 'howto')
for fn in os.listdir('howto')