Example #1
0
def generate_version(template=None, rootdir=None):
    if template is None:
        template = join(base, 'python/src/nnabla/_version.py.tmpl')
    if rootdir is None:
        rootdir = base
    version, short_version = get_version(rootdir)
    generated = render_with_template(filename=template, template_kwargs=dict(
        version=version, short_version=short_version))
    path_o = template.replace('.tmpl', '')
    check_update(path_o, generated, force=True)
Example #2
0
def generate_version(template=None, rootdir=None, suffix=None):
    if template is None:
        template = join(base, 'python/src/nnabla/_version.py.tmpl')
    if rootdir is None:
        rootdir = base
    version, short_version = get_version(rootdir)
    if suffix is not None:
        version = version + suffix
    generated = render_with_template(filename=template,
                                     template_kwargs=dict(
                                         version=version,
                                         short_version=short_version,
                                         build_number=time.strftime(
                                             '%y%m%d%H%M%S', time.gmtime())))
    path_o = template.replace('.tmpl', '')
    check_update(path_o, generated, force=True)
Example #3
0
def generate(info, template):
    version, short_version = get_version(
        os.path.join(os.path.dirname(__file__), '..', '..', '..'))
    return template.format(version="'" + version + "'",
                           short_version="'" + short_version + "'")
Example #4
0
master_doc = 'index'

# General information about the project.
project = u'Neural Network Libraries'
copyright = u'2017, Sony Corporation'
author = u'Sony Corporation'

################################################################################
import os
import sys
sys.path.append(
    os.path.join(os.path.dirname(os.path.realpath(__file__)), '..',
                 'build-tools', 'code_generator'))
from utils.common import get_version

version, release = get_version(os.path.join(os.path.dirname(__file__), '..'))
################################################################################

language = None

exclude_patterns = ['third_party']
pygments_style = 'sphinx'

todo_include_todos = True

html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
nitpicky = True

intersphinx_mapping = {
    'python': ('https://docs.python.org/3.4', None),
Example #5
0
templates_path = ['_templates']

master_doc = 'index'

# General information about the project.
project = u'Neural Network Libraries'
copyright = u'2017, Sony Corporation'
author = u'Sony Corporation'

################################################################################
import os
import sys
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'build-tools', 'code_generator'))
from utils.common import get_version

version, release = get_version(os.path.join(os.path.dirname(__file__), '..'))
################################################################################

language = None

exclude_patterns = ['third_party']
pygments_style = 'sphinx'

todo_include_todos = True

html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
nitpicky = True

intersphinx_mapping = {
    'python': ('https://docs.python.org/3.4', None),
def generate(info, template):
    version, short_version = get_version(os.path.join(os.path.dirname(__file__), '..', '..', '..'))
    return template.format(version="'"+version+"'", short_version="'"+short_version+"'")
Example #7
0
 def is_alive(self):
     if get_version() >= (3, 9, 0):
         is_alive = super().is_alive
     else:
         is_alive = super().isAlive
     return is_alive