Esempio n. 1
0
def build(args, unknown=None):
    _activate_venv()
    if getattr(args, 'client', False):
        try:
            import build_webclient
        except ImportError:
            print(
                "Please supply the '--dev' argument if you want to build the webclient"
            )
            sys.exit(1)

        print("Building webclient")
        build_webclient.main(unknown)

    if getattr(args, 'docs', False):
        try:
            import build_docs
        except ImportError:
            print(
                "Please supply the '--dev' argument if you want to build the docs"
            )
            sys.exit(1)

        print("Building docs")
        build_docs.main()

    print(
        "\nLast build requiring a db rebuild: {}\nPlease use the accompanying script 'HPtoHPX.py' to rebuild your database just once if you've surpassed this build"
        .format(dev_options['build_db']))
Esempio n. 2
0
def build(args):
    _activate_venv()

    if getattr(args, 'client', False):
        try:
            import build_webclient
        except ImportError:
            print(
                "Please supply the '--dev' argument if you want to build the webclient"
            )
            sys.exit()

        print("Building webclient")
        build_webclient.main()

    if getattr(args, 'docs', False):
        try:
            import build_docs
        except ImportError:
            print(
                "Please supply the '--dev' argument if you want to build the docs"
            )
            sys.exit()

        print("Building docs")
        build_docs.main()

    if dev_options['build_db']:
        print(
            "\n# IMPORTANT # A database rebuild is required for this build, please use the accompanying script 'HPtoHPX.py' to rebuild your database if you've just updated"
        )
Esempio n. 3
0
    def ruleDocs(self):
        log.info('Running ruleDocs')
        build_utils.copyFile('../Kits/readme.txt', self.BUILD_BEMACS_DOC_DIR,
                             0o444)
        build_utils.copyFile(
            '../Editor/PyQtBEmacs/org.barrys-emacs.editor.png',
            self.BUILD_BEMACS_DOC_DIR, 0o444)

        import build_docs
        if build_docs.main(['build', self.BUILD_BEMACS_DOC_DIR]) != 0:
            raise BuildError('HTML docs build failed')
Esempio n. 4
0
def main() -> None:
    """ create and update travis python projects """
    create_init_config_file()

    # copy files from template folder to current project
    if not is_in_own_project_folder(
    ):  # we dont want to copy if we run this in the template project itself
        copy_project_files()
        copy_template_files()

    # create travis file
    create_travis_file()

    # create readme.rst
    create_commandline_help_file()
    import build_docs
    build_docs_args = dict()
    build_docs_args['<TRAVIS_REPO_SLUG>'] = '{}/{}'.format(
        project_conf.github_account, project_conf.package_name)
    build_docs.main(build_docs_args)
Esempio n. 5
0
def main(docopt_args: Dict[str, Union[bool, str]]) -> None:

    if docopt_args['--get_registered_shell_command']:
        print(project_conf.shell_command)
    else:
        create_init_config_file()

        # copy files from template folder to current project
        if not is_in_own_project_folder():  # we dont want to copy if we run this in the template project itself
            copy_project_files()
            copy_template_files()

        # create travis file
        create_travis_file()

        # create readme.rst
        create_commandline_help_file()
        import build_docs
        build_docs_args = dict()
        build_docs_args['<TRAVIS_REPO_SLUG>'] = '{}/{}'.format(project_conf.github_account, project_conf.package_name)
        build_docs.main(build_docs_args)