Top

Module pybuilder

#  This file is part of PyBuilder
#
#  Copyright 2011-2014 PyBuilder Team
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.

__version__ = "${version}"

from pybuilder.errors import BuildFailedException


def bootstrap():
    import sys
    import inspect
    try:
        current_frame = inspect.currentframe()
        previous_frame = current_frame.f_back
        name_of_previous_frame = previous_frame.f_globals['__name__']
        if name_of_previous_frame == '__main__':
            import pybuilder.cli
            sys.exit(pybuilder.cli.main(*sys.argv[1:]))
    except BuildFailedException:
        sys.exit(1)

Index

Functions

def bootstrap(

)

def bootstrap():
    import sys
    import inspect
    try:
        current_frame = inspect.currentframe()
        previous_frame = current_frame.f_back
        name_of_previous_frame = previous_frame.f_globals['__name__']
        if name_of_previous_frame == '__main__':
            import pybuilder.cli
            sys.exit(pybuilder.cli.main(*sys.argv[1:]))
    except BuildFailedException:
        sys.exit(1)

Sub-modules

pybuilder.ci_server_interaction

pybuilder.cli

The PyBuilder cli module. Contains the PyBuilder command-line entrypoint.

pybuilder.core

The PyBuilder core module. Contains the most important classes and syntax used in a build.py project descriptor.

pybuilder.errors

The PyBuilder error module. Defines all possible errors that can arise during the execution of PyBuilder.

pybuilder.execution

The PyBuilder execution module. Deals with the execution of a PyBuilder process by running tasks, actions and initializers in the correct order regarding dependencies.

pybuilder.pluginhelper

pybuilder.pluginloader

The PyBuilder pluginloader module. Provides a mechanism to load PyBuilder plugins.

pybuilder.plugins

The PyBuilder plugins package. This package contains all plugins that are included with the PyBuilder distribution. Note that plugins directly in this package should be language-agnostic, since python-related plugins are located in the python subpackage.

pybuilder.reactor

The PyBuilder reactor module. Operates a build process by instrumenting an ExecutionManager from the execution module.

pybuilder.scaffolding

pybuilder.terminal

The PyBuilder terminal module. Python module providing easy to use text styling for terminals being able to understand standard escape sequences.

Sample usages:

print styled_text("spam", fg(RED))
print styled_text("spam", fg(BLACK), bg(GREY))

print bold("eggs")
print underline(bol...

pybuilder.utils

The PyBuilder utils module. Provides generic utilities that can be used by plugins.


Documentation generated by pdoc 0.2.3. pdoc is in the public domain with the UNLICENSE.