示例#1
0
文件: config.py 项目: nttmcl/neutron
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)
示例#2
0
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)
示例#3
0
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)
示例#4
0
#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 = []
示例#5
0
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 = {}
示例#6
0
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 = [
示例#7
0
def parse(args):
    cfg.CONF(args=args, project='quantum',
             version='%%prog %s' % version_string())
示例#8
0
文件: config.py 项目: hongbin/quantum
def parse(args):
    cfg.CONF(args=args,
             project='quantum',
             version='%%prog %s' % version_string())
示例#9
0
文件: conf.py 项目: Blackspan/quantum
#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 = []