-
Notifications
You must be signed in to change notification settings - Fork 17
/
.plzconfig
149 lines (121 loc) · 3.84 KB
/
.plzconfig
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[Please]
Version = >=17.12.2
[Build]
hashcheckers = sha256
[Parse]
PreloadBuildDefs = test/build_defs/test.build_defs
[Plugin "go"]
Target = //plugins:go
ImportPath = github.com/please-build/python-rules
gotool = //third_party/go:toolchain|go
Stdlib = //third_party/go:std
[Plugin "python"]
DisableVendorFlags = true
[Plugin "shell"]
Target = //plugins:shell
[PluginDefinition]
name = python
[PluginConfig "default_interpreter"]
ConfigKey = DefaultInterpreter
DefaultValue = python3
Inherit = true
Help = The Python interpreter to use for any case where one is not explicitly specified
[PluginConfig "default_shebang"]
Inherit = true
Optional = true
Help = The shebang to set on binaries / tests where one is not explicitly specified
[PluginConfig "pex_tool"]
ConfigKey = PexTool
DefaultValue = //tools:please_pex
Inherit = true
Help = A path or build label for the pex tool, which is used to create .pex files from python sources
[PluginConfig "interpreter_options"]
ConfigKey = InterpreterOptions
DefaultValue = ""
Help = Any additional flags to pass to the python interpreter
[PluginConfig "test_runner"]
ConfigKey = TestRunner
DefaultValue = unittest
Help = The test runner to use e.g. unittest or pytest
[PluginConfig "testrunner_deps"]
ConfigKey = TestrunnerDeps
DefaultValue = //third_party/python:unittest_bootstrap
Help = A label for a build target containting the dependencies of the test runner
[PluginConfig "test_runner_bootstrap"]
ConfigKey = TestrunnerBootstrap
DefaultValue = ""
[PluginConfig "debugger"]
ConfigKey = Debugger
DefaultValue = pdb
Inherit = true
Help = The debugger to use when debugging python binaries
[PluginConfig "module_dir"]
ConfigKey = ModuleDir
DefaultValue = third_party.python
Help = The path to the third party python directory, in python import path format e.g. third_party.py3 for //third_party/py3
[PluginConfig "pip_tool"]
ConfigKey = PipTool
DefaultValue = ""
Optional = true
Inherit = true
Help = The tool to use for pip. Defaults to using python -m pip
[PluginConfig "default_pip_repo"]
ConfigKey = DefaultPipRepo
DefaultValue = ""
Optional = true
Help = The default repository to look for pip dependencies in
[PluginConfig "use_pypi"]
ConfigKey = UsePypi
DefaultValue = true
Type = bool
Help = Whether to use PyPi as a repository for python_wheel
[PluginConfig "pip_flags"]
ConfigKey = PipFlags
DefaultValue = ""
Optional = true
Help = Any additional flags to pass to pip
[PluginConfig "disable_vendor_flags"]
ConfigKey = DisableVendorFlags
DefaultValue = false
Inherit = true
Type = bool
Help = Disables any vendor specific flags e.g. the --system flag passed to debians fork of pip
[PluginConfig "pip_compile_flags"]
ConfigKey = PipCompileFlags
DefaultValue = ""
Optional = true
Inherit = true
Help = Flags to pass to pip when compiling
[PluginConfig "wheel_repo"]
ConfigKey = WheelRepo
Optional = true
Help = The root URL for the wheel repo
[PluginConfig "wheel_name_scheme"]
ConfigKey = WheelNameScheme
Optional = true
Repeatable = true
Help = A format string for the wheel repo URL. Format fields url_base, package_name, initial, and version. Initial is the first character of the package name.
[PluginConfig "wheel_tool"]
ConfigKey = WheelTool
Optional = true
Inherit = true
Help = The tool used to resolve wheels with using the pypi API.
[PluginConfig "prereleases"]
DefaultValue = false
Type = bool
Help = Allow prereleased versions in python_wheel targets
[PluginConfig "require_licences"]
DefaultValue = false
Type = bool
Inherit = true
Help = If set, the licences field on pip_library and python_wheel will be mandatory
[PluginConfig "verbosity"]
DefaultValue = "info"
Help = Passes verbosity level to wheel_tool, for example: wheel_tool --verbosity info
Optional = true
[PluginConfig "feature_flags"]
DefaultValue = ""
Repeatable = true
Optional = true
Inherit = true
Help = Flags to enable in-development features, or toggle breaking changes