from pybuilder.core import use_plugin, init
from pybuilder.vcs import count_travis

use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.install_dependencies")
use_plugin("python.flake8")
use_plugin("python.coverage")
use_plugin("python.distutils")


name = "beehaiv"
default_task = "publish"
version = count_travis()


@init
def set_properties(project):
    project.depends_on('hug')
    project.depends_on('pony')
    project.depends_on('PyJWT')
    project.depends_on('docopt')
    project.set_property('coverage_exceptions', ['beehaiv.server'])
