mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	svn+ssh://pythondev@svn.python.org/python/trunk ........ r64119 | andrew.kuchling | 2008-06-11 14:53:14 +0200 (mer., 11 juin 2008) | 1 line Note PEP 371 section ........ r64147 | benjamin.peterson | 2008-06-11 22:04:30 +0200 (mer., 11 juin 2008) | 2 lines update ACKS and NEWs for multiprocessing ........ r64150 | georg.brandl | 2008-06-11 22:28:06 +0200 (mer., 11 juin 2008) | 2 lines Can we agree to put dots at entry ends? Thanks. ........ r64165 | armin.rigo | 2008-06-12 11:50:58 +0200 (jeu., 12 juin 2008) | 3 lines Sounds obvious, but I didn't even realize that you can put non-string keys in type dictionaries without using this locals() hack. ........ r64219 | neal.norwitz | 2008-06-13 08:00:46 +0200 (ven., 13 juin 2008) | 1 line Check for memory alloc failure ........ r64220 | neal.norwitz | 2008-06-13 08:02:26 +0200 (ven., 13 juin 2008) | 3 lines Fix some memory dealloc problems when exceptions occur. It caused: "Fatal Python error: UNREF invalid object" in the DoubleTest. ........ r64221 | neal.norwitz | 2008-06-13 08:03:25 +0200 (ven., 13 juin 2008) | 3 lines Fix typo in method name. The LT class implemented less than. The LE class should implement less than or equal to (as the code does). ........ r64229 | georg.brandl | 2008-06-13 15:26:54 +0200 (ven., 13 juin 2008) | 2 lines Clarification. ........ r64230 | robert.schuppenies | 2008-06-13 15:29:37 +0200 (ven., 13 juin 2008) | 2 lines Fixed: sys.getsizeof does not take the actual length of the tuples into account. ........ r64233 | benjamin.peterson | 2008-06-13 17:11:50 +0200 (ven., 13 juin 2008) | 2 lines platform.uname now tries to fill empty values even when os.uname is present ........ r64235 | benjamin.peterson | 2008-06-13 17:41:09 +0200 (ven., 13 juin 2008) | 1 line set svn:ignore on multiprocessing ........ r64253 | andrew.kuchling | 2008-06-13 21:38:18 +0200 (ven., 13 juin 2008) | 1 line Typo fixes ........ r64278 | martin.v.loewis | 2008-06-14 16:24:47 +0200 (sam., 14 juin 2008) | 2 lines Disable UAC by default. ........ r64280 | gregory.p.smith | 2008-06-14 19:34:09 +0200 (sam., 14 juin 2008) | 3 lines silence the test when it is skipped on some platforms. should fix a buildbot. ........ r64301 | georg.brandl | 2008-06-15 21:54:36 +0200 (dim., 15 juin 2008) | 2 lines Forward-port new test from r64300. ........ r64303 | raymond.hettinger | 2008-06-16 03:42:40 +0200 (lun., 16 juin 2008) | 1 line Issue 3116: fix quadratic behavior in marshal.dumps(). ........ r64320 | georg.brandl | 2008-06-16 23:00:47 +0200 (lun., 16 juin 2008) | 2 lines Add Jesse Noller to the developers list. ........ r64328 | georg.brandl | 2008-06-17 11:01:35 +0200 (mar., 17 juin 2008) | 2 lines Split the HTML index. ........ r64338 | vinay.sajip | 2008-06-17 13:02:14 +0200 (mar., 17 juin 2008) | 1 line Bug #3126: StreamHandler and FileHandler check before calling "flush" and "close" that the stream object has these, using hasattr (thanks to bobf for the patch). ........ r64339 | vinay.sajip | 2008-06-17 13:04:02 +0200 (mar., 17 juin 2008) | 1 line Updated with fix for #3126. ........
		
			
				
	
	
		
			187 lines
		
	
	
	
		
			5.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			187 lines
		
	
	
	
		
			5.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
# -*- coding: utf-8 -*-
 | 
						|
#
 | 
						|
# Python documentation build configuration file
 | 
						|
#
 | 
						|
# This file is execfile()d with the current directory set to its containing dir.
 | 
						|
#
 | 
						|
# 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(os.path.abspath('tools/sphinxext'))
 | 
						|
 | 
						|
# General configuration
 | 
						|
# ---------------------
 | 
						|
 | 
						|
extensions = ['sphinx.ext.refcounting', 'sphinx.ext.coverage',
 | 
						|
              'sphinx.ext.doctest', 'pyspecific']
 | 
						|
templates_path = ['tools/sphinxext']
 | 
						|
 | 
						|
# General substitutions.
 | 
						|
project = 'Python'
 | 
						|
copyright = '1990-%s, Python Software Foundation' % time.strftime('%Y')
 | 
						|
 | 
						|
# The default replacements for |version| and |release|.
 | 
						|
#
 | 
						|
# The short X.Y version.
 | 
						|
# version = '2.6'
 | 
						|
# The full version, including alpha/beta/rc tags.
 | 
						|
# release = '2.6a0'
 | 
						|
 | 
						|
# 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:
 | 
						|
today = ''
 | 
						|
# Else, today_fmt is used as the format for a strftime call.
 | 
						|
today_fmt = '%B %d, %Y'
 | 
						|
 | 
						|
# List of files that shouldn't be included in the build.
 | 
						|
unused_docs = [
 | 
						|
    'whatsnew/2.0',
 | 
						|
    'whatsnew/2.1',
 | 
						|
    'whatsnew/2.2',
 | 
						|
    'whatsnew/2.3',
 | 
						|
    'whatsnew/2.4',
 | 
						|
    'whatsnew/2.5',
 | 
						|
    'whatsnew/2.6',
 | 
						|
    'maclib/scrap',
 | 
						|
    'library/xmllib',
 | 
						|
    'library/xml.etree',
 | 
						|
]
 | 
						|
 | 
						|
# Relative filename of the reference count data file.
 | 
						|
refcount_file = 'data/refcounts.dat'
 | 
						|
 | 
						|
# If true, '()' will be appended to :func: etc. cross-reference text.
 | 
						|
add_function_parentheses = True
 | 
						|
 | 
						|
# If true, the current module name will be prepended to all description
 | 
						|
# unit titles (such as .. function::).
 | 
						|
add_module_names = True
 | 
						|
 | 
						|
 | 
						|
# Options for HTML output
 | 
						|
# -----------------------
 | 
						|
 | 
						|
# 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'
 | 
						|
 | 
						|
# If true, SmartyPants will be used to convert quotes and dashes to
 | 
						|
# typographically correct entities.
 | 
						|
html_use_smartypants = True
 | 
						|
 | 
						|
# Custom sidebar templates, filenames relative to this file.
 | 
						|
html_sidebars = {
 | 
						|
    'index': 'indexsidebar.html',
 | 
						|
}
 | 
						|
 | 
						|
# Additional templates that should be rendered to pages.
 | 
						|
html_additional_pages = {
 | 
						|
    'download': 'download.html',
 | 
						|
    'index': 'indexcontent.html',
 | 
						|
}
 | 
						|
 | 
						|
# Output an OpenSearch description file.
 | 
						|
html_use_opensearch = 'http://docs.python.org/dev/3.0'
 | 
						|
 | 
						|
# Additional static files.
 | 
						|
html_static_path = ['tools/sphinxext/static']
 | 
						|
 | 
						|
# Output file base name for HTML help builder.
 | 
						|
htmlhelp_basename = 'python' + release.replace('.', '')
 | 
						|
 | 
						|
# Split the index
 | 
						|
html_split_index = True
 | 
						|
 | 
						|
 | 
						|
# Options for LaTeX output
 | 
						|
# ------------------------
 | 
						|
 | 
						|
# The paper size ('letter' or 'a4').
 | 
						|
latex_paper_size = 'a4'
 | 
						|
 | 
						|
# The font size ('10pt', '11pt' or '12pt').
 | 
						|
latex_font_size = '10pt'
 | 
						|
 | 
						|
# Grouping the document tree into LaTeX files. List of tuples
 | 
						|
# (source start file, target name, title, author, document class [howto/manual]).
 | 
						|
_stdauthor = r'Guido van Rossum\\Fred L. Drake, Jr., editor'
 | 
						|
latex_documents = [
 | 
						|
    ('c-api/index', 'c-api.tex',
 | 
						|
     'The Python/C API', _stdauthor, 'manual'),
 | 
						|
    ('distutils/index', 'distutils.tex',
 | 
						|
     'Distributing Python Modules', _stdauthor, 'manual'),
 | 
						|
    ('documenting/index', 'documenting.tex',
 | 
						|
     'Documenting Python', 'Georg Brandl', 'manual'),
 | 
						|
    ('extending/index', 'extending.tex',
 | 
						|
     'Extending and Embedding Python', _stdauthor, 'manual'),
 | 
						|
    ('install/index', 'install.tex',
 | 
						|
     'Installing Python Modules', _stdauthor, 'manual'),
 | 
						|
    ('library/index', 'library.tex',
 | 
						|
     'The Python Library Reference', _stdauthor, 'manual'),
 | 
						|
    ('reference/index', 'reference.tex',
 | 
						|
     'The Python Language Reference', _stdauthor, 'manual'),
 | 
						|
    ('tutorial/index', 'tutorial.tex',
 | 
						|
     'Python Tutorial', _stdauthor, 'manual'),
 | 
						|
    ('using/index', 'using.tex',
 | 
						|
     'Using Python', _stdauthor, 'manual'),
 | 
						|
    ('whatsnew/' + version, 'whatsnew.tex',
 | 
						|
     'What\'s New in Python', 'A. M. Kuchling', 'howto'),
 | 
						|
]
 | 
						|
# Collect all HOWTOs individually
 | 
						|
latex_documents.extend(('howto/' + fn[:-4], 'howto-' + fn[:-4] + '.tex',
 | 
						|
                        'HOWTO', _stdauthor, 'howto')
 | 
						|
                       for fn in os.listdir('howto')
 | 
						|
                       if fn.endswith('.rst') and fn != 'index.rst')
 | 
						|
 | 
						|
# Additional stuff for the LaTeX preamble.
 | 
						|
latex_preamble = r'''
 | 
						|
\authoraddress{
 | 
						|
  \strong{Python Software Foundation}\\
 | 
						|
  Email: \email{docs@python.org}
 | 
						|
}
 | 
						|
'''
 | 
						|
 | 
						|
# Documents to append as an appendix to all manuals.
 | 
						|
latex_appendices = ['glossary', 'about', 'license', 'copyright']
 | 
						|
 | 
						|
# Options for the coverage checker
 | 
						|
# --------------------------------
 | 
						|
 | 
						|
# The coverage checker will ignore all modules/functions/classes whose names
 | 
						|
# match any of the following regexes (using re.match).
 | 
						|
coverage_ignore_modules = [
 | 
						|
    r'[T|t][k|K]',
 | 
						|
    r'Tix',
 | 
						|
    r'distutils.*',
 | 
						|
]
 | 
						|
 | 
						|
coverage_ignore_functions = [
 | 
						|
    'test($|_)',
 | 
						|
]
 | 
						|
 | 
						|
coverage_ignore_classes = [
 | 
						|
]
 | 
						|
 | 
						|
# Glob patterns for C source files for C API coverage, relative to this directory.
 | 
						|
coverage_c_path = [
 | 
						|
    '../Include/*.h',
 | 
						|
]
 | 
						|
 | 
						|
# Regexes to find C items in the source files.
 | 
						|
coverage_c_regexes = {
 | 
						|
    'cfunction': (r'^PyAPI_FUNC\(.*\)\s+([^_][\w_]+)'),
 | 
						|
    'data': (r'^PyAPI_DATA\(.*\)\s+([^_][\w_]+)'),
 | 
						|
    'macro': (r'^#define ([^_][\w_]+)\(.*\)[\s|\\]'),
 | 
						|
}
 | 
						|
 | 
						|
# The coverage checker will ignore all C items whose names match these regexes
 | 
						|
# (using re.match) -- the keys must be the same as in coverage_c_regexes.
 | 
						|
coverage_ignore_c_items = {
 | 
						|
#    'cfunction': [...]
 | 
						|
}
 |