def lava(request): try: instance_name = os.environ["LAVA_INSTANCE"] except KeyError: try: instance_name = os.path.basename(os.environ["VIRTUAL_ENV"]) except KeyError: instance_name = None from lava_server.settings.config_file import ConfigFile instance_path = "/etc/lava-server/instance.conf" if os.path.exists(instance_path): instance_config = ConfigFile.load(instance_path) instance_name = instance_config.LAVA_INSTANCE return { 'lava': { 'extension_list': loader.extensions, 'instance_name': instance_name, 'version': versiontools.format_version(lava_server.__version__, hint=lava_server) } }
def invoke(self): self.say("version details:") for framework in self._get_frameworks(): self.say(" - {framework}: {version}", framework=framework.__name__, version=versiontools.format_version( framework.__version__, framework))
def lava(request): menu_list = [ Menu("Home", reverse('lava.home')), ] for extension in loader.extensions: menu = extension.get_menu() if menu: menu_list.append(menu) menu_list.extend([ Menu("API", reverse("lava.api_help"), [ Menu("Available Methods", reverse("lava.api_help")), Menu("Authentication Tokens", reverse("linaro_django_xmlrpc.views.tokens")), ]), Menu("Documentation", "/static/docs/"), ]) try: instance_name = os.environ["LAVA_INSTANCE"] except KeyError: try: instance_name = os.path.basename(os.environ["VIRTUAL_ENV"]) except KeyError: instance_name = None return { 'lava': { 'menu_list': menu_list, 'extension_list': loader.extensions, 'instance_name': instance_name, 'version': versiontools.format_version( lava_server.__version__, hint=lava_server)}}
def run(self): import logcabin import versiontools import subprocess version = versiontools.format_version(logcabin.__version__) ret = subprocess.call(['git', 'tag', '-a', version, '-m', version]) if ret: raise SystemExit("git tag failed") ret = subprocess.call(['git', 'push', '--tags']) if ret: raise SystemExit("git push --tags failed")
def lava(request): menu_list = [ Menu("Home", reverse('lava.home')), ] for extension in loader.extensions: menu = extension.get_menu() if menu: menu_list.append(menu) menu_list.extend([ Menu("API", reverse("lava.api_help"), [ Menu("Available Methods", reverse("lava.api_help")), Menu("Authentication Tokens", reverse("linaro_django_xmlrpc.views.tokens")), ]), Menu("Documentation", "/static/docs/"), ]) try: instance_name = os.environ["LAVA_INSTANCE"] except KeyError: try: instance_name = os.path.basename(os.environ["VIRTUAL_ENV"]) except KeyError: instance_name = None return { 'lava': { 'menu_list': menu_list, 'extension_list': loader.extensions, 'instance_name': instance_name, 'version': versiontools.format_version(lava_server.__version__, hint=lava_server) } }
# The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = 'django-whatever' copyright = '2011, coagulant' # 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 = format_version(django_any.__version__, hint=django_any) # The full version, including alpha/beta/rc tags. release = version # 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.
master_doc = 'index' # General information about the project. project = u'Linaro Django Pagination' copyright = u'2010-2011, Linaro Limited' # 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 versiontools import linaro_django_pagination version = "%d.%d" % linaro_django_pagination.__version__[0:2] # The full version, including alpha/beta/rc tags. release = versiontools.format_version(linaro_django_pagination.__version__) # 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 documents that shouldn't be included in the build. #unused_docs = [] # List of directories, relative to source directory, that shouldn't be searched
master_doc = 'index' # General information about the project. project = u'LAVA Android Test' copyright = u'2010-2012, Linaro Limited' # 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 versiontools import lava_android_test version = "%d.%d" % lava_android_test.__version__[0:2] # The full version, including alpha/beta/rc tags. release = versiontools.format_version(lava_android_test.__version__) # 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 documents that shouldn't be included in the build. #unused_docs = [] # List of directories, relative to source directory, that shouldn't be
master_doc = 'index' # General information about the project. project = u'LAVA Server' copyright = u'2010-2014, Linaro Limited' # 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 versiontools import lava_server version = "%d.%d" % lava_server.__version__[0:2] # The full version, including alpha/beta/rc tags. release = versiontools.format_version(lava_server.__version__) # 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 documents that shouldn't be included in the build. #unused_docs = [] # List of directories, relative to source directory, that shouldn't be searched
# The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'django-kvisits' copyright = u'2012, Jesús Espino' # 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 = versiontools.format_version(kvisits.__version__) # The full version, including alpha/beta/rc tags. release = versiontools.format_version(kvisits.__version__) # 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.
# General information about the project. project = u'JSON Document' copyright = u'2010-2012, Zygmunt Krynicki' # 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. import versiontools import json_document # The short X.Y version. version = "{v.major}.{v.minor}".format( v=versiontools.Version.from_tuple(versiontools.__version__)) # The full version, including alpha/beta/rc tags. release = versiontools.format_version(json_document.__version__, json_document) # 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. exclude_patterns = ['_build']
# General information about the project. project = u'LAVA Server' copyright = u'2010-2014, Linaro Limited' # 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 versiontools import lava_server version = "%d.%d" % lava_server.__version__[0:2] # The full version, including alpha/beta/rc tags. release = versiontools.format_version(lava_server.__version__) # 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 documents that shouldn't be included in the build. #unused_docs = [] # List of directories, relative to source directory, that shouldn't be searched
# The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'appregister' copyright = u'2011, Dougal Matthews' # 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 = format_version(__version__) # The full version, including alpha/beta/rc tags. release = format_version(__version__) # 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.
# The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'django-modelsubscription' copyright = u'2012, Jesús Espino' # 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 = versiontools.format_version(modelsubscription.__version__) # The full version, including alpha/beta/rc tags. release = versiontools.format_version(modelsubscription.__version__) # 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.
master_doc = 'index' # General information about the project. project = u'JSON Document' copyright = u'2010-2012, Zygmunt Krynicki' # 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. import versiontools import json_document # The short X.Y version. version = "{v.major}.{v.minor}".format(v=versiontools.Version.from_tuple(versiontools.__version__)) # The full version, including alpha/beta/rc tags. release = versiontools.format_version(json_document.__version__, json_document) # 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. exclude_patterns = ['_build']
# General information about the project. project = u'Linaro Django Pagination' copyright = u'2010-2011, Linaro Limited' # 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 versiontools import linaro_django_pagination version = "%d.%d" % linaro_django_pagination.__version__[0:2] # The full version, including alpha/beta/rc tags. release = versiontools.format_version(linaro_django_pagination.__version__) # 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 documents that shouldn't be included in the build. #unused_docs = [] # List of directories, relative to source directory, that shouldn't be searched
def version(self): return versiontools.format_version(demo_app.__version__)
# The encoding of source files. # source_encoding = 'utf-8-sig' # The master toctree document. master_doc = "index" # General information about the project. project = u"django-whatever" copyright = u"2011, coagulant" # 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 = format_version(django_any.__version__, hint=django_any) # The full version, including alpha/beta/rc tags. release = version # 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.
# General information about the project. project = u"JSON Schema Validator" copyright = u"2010, 2011 Linaro Limited" # 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 json_schema_validator import versiontools version = "%d.%d" % json_schema_validator.__version__[0:2] # The full version, including alpha/beta/rc tags. release = versiontools.format_version(json_schema_validator.__version__) # 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 documents that shouldn't be included in the build. # unused_docs = [] # List of directories, relative to source directory, that shouldn't be searched
def version(self): import versiontools import lava_scheduler_app return versiontools.format_version( lava_scheduler_app.__version__, lava_scheduler_app)
master_doc = 'index' # General information about the project. project = u'Linaro Dashboard Bundle' copyright = u'2010 - 2011, Linaro Limited' # 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 linaro_dashboard_bundle import versiontools version = "%d.%d" % linaro_dashboard_bundle.__version__[0:2] # The full version, including alpha/beta/rc tags. release = versiontools.format_version(linaro_dashboard_bundle.__version__) # 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 documents that shouldn't be included in the build. #unused_docs = [] # List of directories, relative to source directory, that shouldn't be searched
def version(self): import dashboard_app import versiontools return versiontools.format_version(dashboard_app.__version__, hint=dashboard_app)
def version(self): import versiontools import lava_scheduler_app return versiontools.format_version(lava_scheduler_app.__version__, lava_scheduler_app)
master_doc = 'index' # General information about the project. project = u'JSON Schema Validator' copyright = u'2010, 2011 Linaro Limited' # 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 json_schema_validator import versiontools version = "%d.%d" % json_schema_validator.__version__[0:2] # The full version, including alpha/beta/rc tags. release = versiontools.format_version(json_schema_validator.__version__) # 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 documents that shouldn't be included in the build. #unused_docs = [] # List of directories, relative to source directory, that shouldn't be searched
# The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'django-viter' copyright = u'2012, Jesús Espino' # 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 = versiontools.format_version(viter.__version__) # The full version, including alpha/beta/rc tags. release = versiontools.format_version(viter.__version__) # 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.