forked from arnehilmann/netkraken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.py
35 lines (26 loc) · 1.06 KB
/
build.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from pybuilder.core import use_plugin, init, Author
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.install_dependencies")
use_plugin("python.flake8")
use_plugin("python.frosted")
use_plugin("python.coverage")
use_plugin("python.distutils")
use_plugin("copy_resources")
name = "netkraken-minion"
description = """records network connections: source host, protocol, target host"""
summary = description
authors = [Author("Arne Hilmann", "[email protected]")]
url = "https://github.com/netkraken/minion"
version = "0.2"
default_task = ["clean", "analyze", "package"]
@init
def set_properties(project):
project.build_depends_on("mock")
project.depends_on("psutil>=2.1.0")
project.depends_on("countdb")
project.set_property("flake8_verbose_output", True)
project.set_property("flake8_break_build", True)
project.set_property('copy_resources_target', '$dir_dist')
project.get_property('copy_resources_glob').extend(['docroot/etc/init.d/netconns'])
project.install_file('/etc/init.d/', 'docroot/etc/init.d/netconns')