# Path: build_scripts/version.py
# def get_git_version(abbrev=4):
#     """get the current git version."""
#     # Read in the version that's currently in RELEASE-VERSION.
# 
#     release_version = read_release_version()
# 
#     # First try to get the current version using “git describe”.
# 
#     version = call_git_describe(abbrev)
# 
#     # If that doesn't work, fall back on the value that's in
#     # RELEASE-VERSION.
# 
#     if version is None:
#         version = release_version
# 
#     # If we still don't have anything, that's an error.
# 
#     if version is None:
#         raise ValueError("Cannot find the version number!")
# 
#     # If the current version is different from what's in the
#     # RELEASE-VERSION file, update the file to be current.
# 
#     if version != release_version:
#         write_release_version(version)
# 
#     # Finally, return the current version.
# 
#     return version


import sys, os
import sys
from build_scripts.version import get_git_version
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc',
              'sphinx.ext.todo',
              'sphinx.ext.viewcode',
              'sphinx.ext.autosummary', ]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix of source filenames.
source_suffix = '.rst'

# The encoding of source files.
#source_encoding = 'utf-8-sig'

# include TODOs
todo_include_todos = True

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'dipplanner'
copyright = u'2011-2012, Thomas Chiroux'

# 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.

# Path: build_scripts/version.py
# def get_git_version(abbrev=4):
#     """get the current git version."""
#     # Read in the version that's currently in RELEASE-VERSION.
# 
#     release_version = read_release_version()
# 
#     # First try to get the current version using “git describe”.
# 
#     version = call_git_describe(abbrev)
# 
#     # If that doesn't work, fall back on the value that's in
#     # RELEASE-VERSION.
# 
#     if version is None:
#         version = release_version
# 
#     # If we still don't have anything, that's an error.
# 
#     if version is None:
#         raise ValueError("Cannot find the version number!")
# 
#     # If the current version is different from what's in the
#     # RELEASE-VERSION file, update the file to be current.
# 
#     if version != release_version:
#         write_release_version(version)
# 
#     # Finally, return the current version.
# 
#     return version


# Path: docs/conf.py
import sys, os
import sys
from build_scripts.version import get_git_version

# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc',
              'sphinx.ext.todo',
              'sphinx.ext.viewcode',
              'sphinx.ext.autosummary', ]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix of source filenames.
source_suffix = '.rst'

# The encoding of source files.
#source_encoding = 'utf-8-sig'

# include TODOs
todo_include_todos = True

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'dipplanner'
copyright = u'2011-2012, Thomas Chiroux'

# 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 = get_git_version()