Beispiel #1
0
def handle_global_arguments(args):
    global _pdb, _quiet
    enable_debug(args.debug)
    _pdb = args.pdb
    _quiet = args.quiet
    if args.no_color:
        disable_ANSI_colors()
Beispiel #2
0
def handle_global_arguments(args):
    global _pdb, _quiet
    enable_debug(args.debug or 'DEBUG' in os.environ)
    _pdb = args.pdb
    _quiet = args.quiet
    if args.no_color:
        disable_ANSI_colors()
    disable_git_clone(args.unsafe or 'BLOOM_UNSAFE' in os.environ)
Beispiel #3
0
def handle_global_arguments(args):
    global _pdb, _quiet
    enable_debug(args.debug or 'DEBUG' in os.environ)
    _pdb = args.pdb
    _quiet = args.quiet
    if args.no_color:
        disable_ANSI_colors()
    disable_git_clone(args.unsafe or 'BLOOM_UNSAFE' in os.environ)
    quiet_git_clone_warning('BLOOM_UNSAFE_QUIET' in os.environ)
Beispiel #4
0
def handle_global_arguments(args):
    global _pdb, _quiet
    enable_debug(args.debug)
    _pdb = args.pdb
    _quiet = args.quiet
    if args.no_color:
        disable_ANSI_colors()
    if args.version:
        from bloom import __version__
        print(__version__)
        sys.exit(code.OK)
Beispiel #5
0
import shutil
import sys

this_dir = os.path.dirname(os.path.abspath(__file__))
setup_py = os.path.join(this_dir, '..', 'setup.py')
cmd = setup_py + ' build'
print("### Running '" + cmd + "'")
os.system(cmd)

sys.path.append(os.path.abspath(os.path.join(this_dir, '..')))

from bloom import __version__ as ver

from bloom.logging import warning
from bloom.logging import enable_debug
enable_debug(True)

from bloom.git import GitClone
from bloom.git import inbranch
from bloom.git import has_changes

from bloom.util import execute_command
from bloom.util import maybe_continue

print("Generating github pages documentation for version '{0}'...".format(ver))

execute_command('make clean', cwd='doc')
execute_command('python setup.py build_sphinx')
execute_command('sphinxtogithub doc/build/html --verbose')
orig_cwd = os.getcwd()