-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtasks.py
More file actions
47 lines (43 loc) · 1.29 KB
/
tasks.py
File metadata and controls
47 lines (43 loc) · 1.29 KB
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
from __future__ import print_function
import os
from pathlib import Path
from compas_invocations2 import build
from compas_invocations2 import docs
from compas_invocations2 import mkdocs
from compas_invocations2 import style
from compas_invocations2 import tests
from compas_invocations2 import grasshopper
from invoke import Collection
import compas_pb
from compas_pb.invocations import generate_proto_classes
ns = Collection(
docs.help,
style.check,
style.lint,
style.format,
mkdocs.docs,
docs.linkcheck,
tests.test,
tests.testdocs,
build.build_cpython_ghuser_components,
build.prepare_changelog,
build.clean,
build.release,
grasshopper.yakerize,
grasshopper.publish_yak,
grasshopper.update_gh_header,
generate_proto_classes,
)
ns.configure(
{
"base_folder": os.path.dirname(__file__),
"ghuser_cpython": {
"prefix": "COMPAS EVE: ",
"source_dir": "src/compas_eve/ghpython/components",
"target_dir": "src/compas_eve/ghpython/components/ghuser",
},
"proto_folder": Path("./src") / "compas_eve" / "proto",
"proto_include_paths": [Path("./src") / "compas_eve" / "proto", compas_pb.PROTOBUF_DEFS],
"proto_out_folder": Path("./src") / "compas_eve" / "proto",
}
)