# -*- coding: utf-8 -*-

from __future__ import print_function

import os
import subprocess
import sys
import time

# Import parameters from the setup file.
sys.path.append('.')
from setup import (
    setup_dict, get_project_files, print_success_message,
    print_failure_message, _lint, _test, _test_all,
    CODE_DIRECTORY, DOCS_DIRECTORY, TESTS_DIRECTORY, PYTEST_FLAGS)  # noqa

from paver.easy import options, task, needs, consume_args  # noqa
from paver.setuputils import install_distutils_tasks  # noqa

options(setup=setup_dict)

install_distutils_tasks()


# Miscellaneous helper functions


def print_passed():
    # generated on http://patorjk.com/software/taag/#p=display&f=Small&t=PASSED
    print_success_message(r'''  ___  _   ___ ___ ___ ___
 | _ \/_\ / __/ __| __|   \
 |  _/ _ \\__ \__ \ _|| |) |
 |_|/_/ \_\___/___/___|___/