Module Import alias Import alias ImportFrom alias TryExcept body Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore BoolOpOr Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp NameLoad comprehension NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad BinOpMod Str NameLoad Str Assign NameStore BoolOpOr UnaryOpNot NameLoad CompareEq Call AttributeLoad NameLoad attr Str Return IfExp NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body TryExcept body Assign NameStore Call NameLoad handlers ExceptHandler type NameLoad body Expr Call NameLoad Str Return Num Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad Str Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Return Num decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Return Num decorator_list FunctionDef arguments args defaults body Assign NameStore Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call NameLoad Str Str Assign NameStore BoolOpOr UnaryOpNot NameLoad CompareEq Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Return Expr Call AttributeLoad NameLoad attr Str With Call NameLoad Str Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Str Assign AttributeStore NameLoad attr ListLoad Str Str Str Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad Str attr ListComp BinOpMod Str NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body For NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str AugAssignAdd NameStore Call AttributeLoad Str attr ListComp Call AttributeLoad Str attr NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad If UnaryOpNot NameLoad body AugAssignAdd NameStore Str Return NameLoad decorator_list NameLoad decorator_list
N/A N/A os N/A string pybuilder.terminal print_text_line N/A N/A N/A _input raw_input N/A N/A N/A NameError N/A N/A _input input N/A DEFAULT_SOURCE_DIRECTORY src/main/python N/A DEFAULT_UNITTEST_DIRECTORY src/unittest/python N/A DEFAULT_SCRIPTS_DIRECTORY src/main/scripts N/A DEFAULT_DOCS_DIRECTORY docs N/A PLUGINS_TO_SUGGEST N/A python.flake8 python.coverage python.distutils prompt_user N/A N/A description default N/A N/A N/A message N/A N/A {0} (default: '{1}') :  format description default N/A N/A _input message N/A collect_project_information N/A N/A N/A N/A N/A default_project_name N/A N/A N/A os path basename N/A N/A os getcwd N/A project_name N/A N/A prompt_user Project name default_project_name default_project_name N/A scaffolding N/A PythonProjectScaffolding project_name N/A dir_source_main_python N/A prompt_user Source directory DEFAULT_SOURCE_DIRECTORY N/A dir_docs N/A prompt_user Docs directory DEFAULT_DOCS_DIRECTORY N/A dir_source_unittest_python N/A prompt_user Unittest directory DEFAULT_UNITTEST_DIRECTORY N/A dir_source_main_scripts N/A prompt_user Scripts directory DEFAULT_SCRIPTS_DIRECTORY N/A plugins N/A suggest_plugins PLUGINS_TO_SUGGEST N/A N/A N/A scaffolding add_plugins plugins N/A dir_source_main_python N/A N/A N/A scaffolding dir_source_main_python dir_source_main_python N/A dir_source_unittest_python N/A N/A N/A scaffolding dir_source_unittest_python dir_source_unittest_python N/A dir_source_main_scripts N/A N/A N/A scaffolding dir_source_main_scripts dir_source_main_scripts N/A dir_docs N/A N/A N/A scaffolding dir_docs dir_docs N/A scaffolding N/A suggest_plugins N/A N/A plugins N/A N/A N/A chosen_plugins N/A plugin N/A plugin N/A N/A suggest plugin N/A plugin plugins plugin N/A chosen_plugins N/A suggest N/A N/A plugin N/A N/A N/A choice N/A prompt_user N/A Use plugin %s (Y/n)? plugin y N/A plugin_enabled N/A N/A choice N/A N/A N/A choice lower y N/A N/A plugin_enabled plugin None N/A start_project N/A N/A N/A N/A N/A N/A N/A scaffolding N/A collect_project_information N/A N/A N/A KeyboardInterrupt N/A N/A N/A print_text_line 
Canceled. N/A 1 N/A descriptor N/A N/A scaffolding render_build_descriptor N/A N/A open build.py w build_descriptor_file N/A N/A N/A N/A build_descriptor_file write descriptor N/A N/A N/A scaffolding set_up_project N/A N/A _create_setup_file N/A 0 N/A update_project N/A N/A N/A N/A N/A N/A _create_setup_file N/A 0 N/A _create_setup_file N/A N/A N/A N/A N/A setup_py_file_contents #!/usr/bin/env python
#

#   -*- coding: utf-8 -*-
#
#   This file is part of PyBuilder
#
#   Copyright 2011-2015 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.

#
# This script allows to support installation via:
#   pip install git+git://<project>@<branch>
#
# This script is designed to be used in combination with `pip install` ONLY
#
# DO NOT RUN MANUALLY
#

import os
import subprocess
import sys
import glob
import shutil

from sys import version_info
py3 = version_info[0] == 3
py2 = not py3
if py2:
    FileNotFoundError = OSError

script_dir = os.path.dirname(os.path.realpath(__file__))
exit_code = 0
try:
    subprocess.check_call(["pyb", "--version"])
except FileNotFoundError as e:
    if py3 or py2 and e.errno == 2:
        try:
            subprocess.check_call([sys.executable, "-m", "pip.__main__", "install", "pybuilder"])
        except subprocess.CalledProcessError as e:
            sys.exit(e.returncode)
    else:
        raise
except subprocess.CalledProcessError as e:
        sys.exit(e.returncode)

try:
    subprocess.check_call(["pyb", "clean", "install_build_dependencies", "package", "-o"])
    dist_dir = glob.glob(os.path.join(script_dir, "target", "dist", "*"))[0]
    for src_file in glob.glob(os.path.join(dist_dir, "*")):
        file_name = os.path.basename(src_file)
        target_file_name = os.path.join(script_dir, file_name)
        if os.path.exists(target_file_name):
            if os.path.isdir(target_file_name):
                os.removedirs(target_file_name)
            else:
                os.remove(target_file_name)
        shutil.move(src_file, script_dir)
    setup_args = sys.argv[1:]
    subprocess.check_call([sys.executable, "setup.py"] + setup_args, cwd=script_dir)
except subprocess.CalledProcessError as e:
    exit_code = e.returncode
sys.exit(exit_code)
 N/A N/A N/A N/A os path exists setup.py N/A N/A choice N/A prompt_user Overwrite 'setup.py' (y/N)? n N/A overwrite N/A N/A choice N/A N/A N/A choice lower y N/A N/A overwrite N/A N/A N/A N/A N/A os unlink setup.py N/A N/A open setup.py w setup_descriptor_file N/A N/A N/A N/A setup_descriptor_file write setup_py_file_contents N/A N/A print_text_line 
Created 'setup.py'. N/A PythonProjectScaffolding N/A object N/A N/A DESCRIPTOR_TEMPLATE N/A N/A string Template from pybuilder.core import $core_imports

$activated_plugins


name = "${project_name}"
default_task = "publish"


$initializer
 N/A INITIALIZER_HEAD @init
def set_properties(project):
 __init__ N/A N/A self project_name N/A N/A N/A N/A self project_name project_name N/A N/A self dir_source_main_python DEFAULT_SOURCE_DIRECTORY N/A N/A self dir_source_unittest_python DEFAULT_UNITTEST_DIRECTORY N/A N/A self dir_source_main_scripts DEFAULT_SCRIPTS_DIRECTORY N/A N/A self dir_docs DEFAULT_DOCS_DIRECTORY N/A N/A self core_imports N/A use_plugin N/A N/A self plugins N/A python.core python.unittest python.install_dependencies N/A N/A self initializer N/A add_plugins N/A N/A self plugins N/A N/A N/A N/A N/A N/A self plugins extend plugins N/A render_build_descriptor N/A N/A self N/A N/A N/A N/A N/A self build_initializer N/A N/A N/A self build_imports N/A N/A self core_imports N/A N/A ,  join N/A self core_imports N/A N/A N/A N/A self DESCRIPTOR_TEMPLATE substitute N/A self __dict__ N/A build_imports N/A N/A self N/A N/A N/A N/A self activated_plugins N/A N/A join N/A N/A use_plugin("%s") plugin N/A plugin N/A self plugins N/A build_initializer N/A N/A self N/A N/A N/A N/A N/A N/A self core_imports append init N/A properties_to_set N/A N/A N/A N/A self is_default_source_main_python N/A N/A N/A N/A properties_to_set append N/A dir_source_main_python N/A self dir_source_main_python N/A N/A N/A self is_default_source_unittest_python N/A N/A N/A N/A properties_to_set append N/A dir_source_unittest_python N/A self dir_source_unittest_python N/A N/A N/A self is_default_source_main_scripts N/A N/A N/A N/A properties_to_set append N/A dir_source_main_scripts N/A self dir_source_main_scripts N/A N/A N/A self is_default_docs N/A N/A N/A N/A properties_to_set append N/A dir_docs N/A self dir_docs N/A initializer_body N/A N/A self _build_initializer_body_with_properties properties_to_set N/A N/A self initializer N/A N/A self INITIALIZER_HEAD initializer_body N/A is_default_source_main_python N/A N/A self N/A N/A N/A N/A N/A self dir_source_main_python DEFAULT_SOURCE_DIRECTORY N/A property is_default_source_unittest_python N/A N/A self N/A N/A N/A N/A N/A self dir_source_unittest_python DEFAULT_UNITTEST_DIRECTORY N/A property is_default_docs N/A N/A self N/A N/A N/A N/A N/A self dir_docs DEFAULT_DOCS_DIRECTORY N/A property is_default_source_main_scripts N/A N/A self N/A N/A N/A N/A N/A self dir_source_main_scripts DEFAULT_SCRIPTS_DIRECTORY N/A property set_up_project N/A N/A self N/A N/A N/A needed_directory N/A N/A self dir_source_main_python N/A self dir_source_unittest_python N/A self dir_docs N/A self dir_source_main_scripts N/A N/A N/A N/A N/A N/A os path exists needed_directory N/A N/A N/A N/A os makedirs needed_directory N/A _build_initializer_body_with_properties N/A N/A properties_to_set N/A N/A N/A initializer_body N/A initializer_body N/A N/A join N/A N/A N/A     project.set_property("{0}", "{1}") format k v N/A N/A k v properties_to_set N/A N/A initializer_body N/A N/A initializer_body     pass N/A initializer_body N/A staticmethod N/A