forked from twitter-archive/commons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pants.ini
188 lines (143 loc) · 4.79 KB
/
pants.ini
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
; All of the following are seeded with defaults in the config
; user: the current user
; homedir: the current user's home directory
; buildroot: the root of this repo
; pants_bootstrapdir: the global pants scratch space primarily used for caches
; pants_supportdir: pants support files for this repo go here; for example: ivysettings.xml
; pants_distdir: user visible artifacts for this repo go here
; pants_workdir: the scratch space used to for live builds in this repo
[GLOBAL]
pants_version: 1.4.0rc0
plugins: [
'pantsbuild.pants.contrib.scrooge==%(pants_version)s',
'pantsbuild.pants.contrib.python.checks==%(pants_version)s',
]
# Enable our own custom loose-source plugins.
pythonpath: [
"%(buildroot)s/pants-plugins/src/python",
]
backend_packages: +[
'twitter.common.pants.python.commons',
]
; Mixed into all cache keys. Bump this to invalidate all existing artifacts.
; Note: If you want to experiment with this locally without affecting artifacts
; read by all, change it to some other string, e.g., <number>-<your username>.
cache_key_gen_version: '100'
; Maps OSX 10.14 to 10.13. Can be removed once pants is bumped past `1.13.x`.
binaries_path_by_id: +{(u'darwin', u'18'): (u'mac', u'10.13')}
[DEFAULT]
checkstyle_suppression_files = [
'%(pants_supportdir)s/commons/checkstyle/checkstyle_suppressions.xml'
]
jvm_options: ['-Xmx1g', '-XX:MaxPermSize=256m']
# For [idea] and [eclipse] sections
python_source_paths: ['src/python']
python_test_paths: ['tests/python']
python_lib_paths: ['3rdparty/python']
[ivy]
ivy_profile: %(pants_supportdir)s/ivy/ivy.xml
ivy_settings: %(pants_supportdir)s/ivy/ivysettings.xml
cache_dir: %(homedir)s/.ivy2/twitter-commons
[gen.scrooge]
service_deps: {
'java': [
'3rdparty/jvm/commons-lang',
'3rdparty/jvm/com/twitter:finagle-thrift',
'3rdparty/jvm/org/slf4j:slf4j-api',
'3rdparty/jvm/com/twitter:util-core',
],
'scala': [
'3rdparty/jvm/com/twitter:scrooge-core',
'3rdparty/jvm/com/twitter:finagle-thrift',
'3rdparty/jvm/com/twitter:util-core',
]
}
structs_deps: {
'java': [
'3rdparty/jvm/commons-lang',
'3rdparty/jvm/org/apache/thrift',
],
'scala': [
'3rdparty/jvm/com/twitter:scrooge-core',
'3rdparty/jvm/org/apache/thrift',
]
}
strict: False
verbose: True
[thrift-binary]
version: 0.5.0-finagle
[gen.thrift-java]
gen_options_map: {'hashcode': ''}
deps: ['3rdparty/jvm/org/apache/thrift:thrift-0.5.0']
service_deps: ['3rdparty/jvm/org/apache/thrift:thrift-0.5.0-finagle']
[gen.protoc]
version: 2.4.1
javadeps: ['3rdparty/jvm/com/google/protobuf:protobuf-%(version)s']
[lint.checkstyle]
configuration: %(pants_supportdir)s/checkstyle/coding_style.xml
properties: {
'checkstyle.suppression.files': ','.join(%(checkstyle_suppression_files)s)
}
[lint.scalastyle]
config: %(buildroot)s/build-support/scalastyle/scalastyle_config.xml
; TODO(John Sirois): The excludes are currently global for all scala files but
; they should be trimmed back or eliminated when scalastyle is restricted to
; non code-gen targets: https://jira.twitter.biz/browse/AWESOME-6870
excludes: %(buildroot)s/build-support/scalastyle/excludes.txt
[lint.scalafmt]
skip: True
[compile.zinc]
jvm_options: [
'-Xmx2g', '-XX:MaxPermSize=256m', '-XX:+UseConcMarkSweepGC', '-XX:ParallelGCThreads=4',
'-Dzinc.analysis.cache.limit=100',
]
args: [
'-C-encoding', '-CUTF-8',
'-S-encoding', '-SUTF-8',
'-S-g:vars',
]
warning_args: [
'-S-deprecation',
'-S-unchecked',
# request warnings for http://www.scala-lang.org/api/2.10.4/index.html#scala.language$
'-S-feature',
]
no_warning_args: [
'-S-nowarn',
]
unused_deps: ignore
[jvm-platform]
platforms: {
'java7': {
'target': 7
},
}
default_platform: java7
[jvm-distributions]
minimum_version: 1.8.0
maximum_version: 1.8.999
[jvm.repl.scala]
options: ['-Xmx1g', '-XX:MaxPermSize=256m', '-Dscala.usejavacp=true']
[jvm.test.junit]
options: [
'-Djava.awt.headless=true', '-Xmx1g', '-XX:MaxPermSize=256m',
# Needed for emma instrumenter to work against classfiles generated by java 7 compilers
'-XX:-UseSplitVerifier'
]
[scala-platform]
version: 2.10
[python-setup]
# We only support commons python code running under 2.7 for now with 3.3+ support to be added later.
interpreter_constraints: ['CPython>=2.7,<3']
resolver_allow_prereleases: True
[python-repos]
# The custom repo is only needed for antlr-python-runtime.
repos: ['https://raw.github.com/twitter/commons/binaries/pants/third_party/python/index.html']
[lint.python-eval]
# TODO: Fix undeclared dependencies and then re-enable.
skip: True
[lint.pythonstyle]
suppress: %(pants_supportdir)s/pythonstyle/suppression.txt
[lint.scalafix]
# TODO: Run `./pants fmt src/scala::` to fix ProcedureSyntax, and then re-enable.
skip: True