forked from facebook/buck
/
__python_common.soy
76 lines (70 loc) · 2.17 KB
/
__python_common.soy
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
70
71
72
73
74
75
76
{namespace python_common}
/***/
{template .srcs_arg}
{call buck.arg}
{param name: 'srcs' /}
{param default : '[]' /}
{param desc}
The set of <code>.py</code> files included in this library.
{/param}
{/call}
{/template}
/***/
{template .platform_srcs_arg}
{call buck.arg}
{param name : 'platform_srcs' /}
{param default : '[]' /}
{param desc}
Python-platform-specific source files. These should be specified as a list of pairs where the first
element is an un-anchored regex (in java.util.regex.Pattern syntax) against which the platform name
is matched (as defined in the `python#name` section of `.buckconfig`), and the second element is
a list of source files.
{/param}
{/call}
{/template}
/***/
{template .resources_arg}
{call buck.arg}
{param name: 'resources' /}
{param default : '[]' /}
{param desc}
Static files to be packaged along with the python sources. These resources can be
accessed at runtime using the <a href="https://pythonhosted.org/setuptools/pkg_resources.html">pkg_resources</a> API.
{/param}
{/call}
{/template}
/***/
{template .platform_resources_arg}
{call buck.arg}
{param name : 'platform_resources' /}
{param default : '[]' /}
{param desc}
Python-platform-specific resource files. These should be specified as a list of pairs where the first
element is an un-anchored regex (in java.util.regex.Pattern syntax) against which the platform name
is matched (as defined in the `python#name` section of `.buckconfig`), and the second element is a
list of resource files.
{/param}
{/call}
{/template}
/***/
{template .base_module_arg}
{call buck.arg}
{param name: 'base_module' /}
{param default : 'None' /}
{param desc}
The package for which the given specified sources and resources should reside in their final
location in the top-level binary. If unset, the project relative directory that houses the
BUCK file is used.
{/param}
{/call}
{/template}
/***/
{template .platform_arg}
{call buck.arg}
{param name : 'platform' /}
{param default : 'None' /}
{param desc}
The name of the Python platform to build against by default (as defined in the `python#name` section of `.buckconfig`).
{/param}
{/call}
{/template}