Exemple #1
0
# The short X.Y version.
version = subprocess.check_output(["git", "name-rev", "--name-only", "HEAD"])
# The full version, including alpha/beta/rc tags.
release = version

if not os.path.islink('xhive'):
    ehive_target_dir = os.path.join(os.environ["PWD"], os.path.pardir, "ehive")
    shutil.rmtree(ehive_target_dir, True)
    subprocess.check_call(['git', 'clone', '--branch', 'master', '--depth', '1', 'https://github.com/Ensembl/ensembl-hive.git', ehive_target_dir])
    os.symlink(os.path.join(ehive_target_dir, "docs", "xhive"), "xhive")
else:
    subprocess.check_call(['git', 'pull'], cwd = "xhive")
ehive_root_dir = os.path.join(os.path.realpath('xhive'), os.path.pardir, os.path.pardir)
os.environ.setdefault("ENSEMBL_CVS_ROOT_DIR", "")
from xhive import setup_if_needed
setup_if_needed(release, False)
os.environ["EHIVE_ROOT_DIR"] = ehive_root_dir
os.environ["PERL5LIB"] = os.path.join(os.environ["EHIVE_ROOT_DIR"], "modules") + os.path.pathsep + os.environ["PERL5LIB"]

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

# 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 patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Exemple #2
0
copyright_owner = u'EMBL-European Bioinformatics Institute'
copyright_dates = u'[2016-%d]' % datetime.datetime.now().year
copyright = copyright_dates + ' ' + copyright_owner

# 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.
import re
version = re.sub('^(heads|remotes/origin)/', '',
                 os.popen('git describe --all').read().strip())
# The full version, including alpha/beta/rc tags.
release = version + '/' + os.popen('git rev-parse --short HEAD').read().strip()

doxygen_target = setup_if_needed(release, True)
doxylink = {
    'doxehive': (os.path.join(doxygen_target, "ensembl-hive.tag"), 'perl/'),
}

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

# 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 patterns, relative to source directory, that match files and
Exemple #3
0
if not os.path.islink('xhive'):
    ehive_target_dir = os.path.join(os.environ["PWD"], os.path.pardir, "ehive")
    shutil.rmtree(ehive_target_dir, True)
    subprocess.check_call([
        'git', 'clone', '--branch', 'master', '--depth', '1',
        'https://github.com/Ensembl/ensembl-hive.git', ehive_target_dir
    ])
    os.symlink(os.path.join(ehive_target_dir, "docs", "xhive"), "xhive")
else:
    subprocess.check_call(['git', 'pull'], cwd="xhive")
ehive_root_dir = os.path.join(os.path.realpath('xhive'), os.path.pardir,
                              os.path.pardir)
os.environ.setdefault("ENSEMBL_CVS_ROOT_DIR", "")
from xhive import setup_if_needed
setup_if_needed(release, False)
os.environ["EHIVE_ROOT_DIR"] = ehive_root_dir
os.environ["PERL5LIB"] = os.path.join(
    os.environ["EHIVE_ROOT_DIR"],
    "modules") + os.path.pathsep + os.environ["PERL5LIB"]

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

# 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'
Exemple #4
0
copyright_owner = u'EMBL-European Bioinformatics Institute'
copyright_dates = u'[2016-%d]' % datetime.datetime.now().year
copyright = copyright_dates + ' ' + copyright_owner

# 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.
import re
version = re.sub('^(heads|remotes/origin)/', '', os.popen('git describe --all').read().strip())
# The full version, including alpha/beta/rc tags.
release = version + '/' + os.popen('git rev-parse --short HEAD').read().strip()


doxygen_target = setup_if_needed(release, True)
doxylink = {
    'doxehive': (os.path.join(doxygen_target, "ensembl-hive.tag"), 'perl/'),
}


# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

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