-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.py
69 lines (57 loc) · 1.67 KB
/
package.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# pylint: skip-file
name = "silex_client"
timestamp = 0
version = "deadline-0.0.1"
authors = ["ArtFx TD gang"]
description = """
Set of modules used to execute actions on client's side
Part of the Silex ecosystem
"""
requires = [
"python-3.7",
"aiogazu",
"PyYAML",
"logzero",
"python_socketio",
"aiohttp",
"jsondiff",
"dacite",
"python_dotenv",
"setuptools",
"deadline",
"Fileseq",
]
vcs = "git"
tests = {
"unit": {
"command": "python -m pytest {root}/test",
"requires": ["pytest", "aiohttp"],
"run_on": ["default", "pre_release"],
},
"linting": {
"command": "pylint --rcfile={root}/.pylintrc --fail-under=8 {root}/silex_client",
"requires": ["pylint"],
"run_on": ["default", "pre_release"],
},
"typing": {
"command": "mypy --install-types --non-interactive --disallow-untyped-defs {root}/silex_client --ignore-missing-imports",
"requires": ["mypy"],
"run_on": ["default", "pre_release"],
},
}
build_command = "python {root}/script/build.py {install}"
def commands():
"""
Set the environment variables for silex_client
"""
import os
env.DEADLINE_HOST.set("deadline")
env.DEADLINE_PORT.set("8081")
env.PATH.append("{root}/silex_client")
env.PATH.append("{root}/tools")
env.PYTHONPATH.append("{root}")
env.SILEX_ACTION_CONFIG.prepend("{root}/silex_client/config")
parser_module = ".".join(["silex_client", "cli", "parser"])
alias("silex", f"python -m {parser_module}")
# CLI for deadline tests
alias("dltest", "python -m silex_client.utils.deadline.tests.batch_tests.batch_machine_tests")