def parse(args): cfg.CONF(args=args, project="quantum", version="%%prog %s" % version_string()) # Validate that the base_mac is of the correct format msg = attributes._validate_regex(cfg.CONF.base_mac, attributes.MAC_PATTERN) if msg: msg = "Base MAC: %s" % msg raise Exception(msg)
def parse(args): cfg.CONF(args=args, project='quantum', version='%%prog %s' % version_string()) # Validate that the base_mac is of the correct format msg = attributes._validate_regex(cfg.CONF.base_mac, attributes.MAC_PATTERN) if msg: msg = "Base MAC: %s" % msg raise Exception(msg)
def main(): oparser = optparse.OptionParser(version='%prog ' + version_string()) create_options(oparser) (options, args) = config.parse_options(oparser) try: quantum_service = service.serve_wsgi(service.QuantumApiService, options=options, args=args) quantum_service.wait() except RuntimeError, e: sys.exit("ERROR: %s" % e)
#source_encoding = 'utf-8' # The master toctree document. master_doc = 'index' # General information about the project. project = u'Quantum' copyright = u'2011-present, OpenStack, LLC.' # 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. # # Version info from quantum import version as quantum_version release = quantum_version.version_string() # The short X.Y version. version = quantum_version.canonical_version_string() # 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 = []
try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages import os import sys from quantum import version Name = 'quantum-server' Url = "https://launchpad.net/quantum" Version = version.version_string() License = 'Apache License 2.0' Author = 'Netstatck' AuthorEmail = '*****@*****.**' Maintainer = '' Summary = 'Server functionalities for Quantum' ShortDescription = Summary Description = Summary requires = ['quantum-common'] EagerResources = [ 'quantum', ] ProjectScripts = [] PackageData = {}
try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages import os import sys from quantum import version Name = 'quantum-server' Url = "https://launchpad.net/quantum" Version = version.version_string() License = 'Apache License 2.0' Author = 'Netstatck' AuthorEmail = '*****@*****.**' Maintainer = '' Summary = 'Server functionalities for Quantum' ShortDescription = Summary Description = Summary requires = [ 'quantum-common' ] EagerResources = [ 'quantum', ] ProjectScripts = [
def parse(args): cfg.CONF(args=args, project='quantum', version='%%prog %s' % version_string())