forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
141 lines (128 loc) · 3.61 KB
/
BUILD
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
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
python_library(
name='testutil_wheel',
dependencies=[
':int-test-for-export',
':test_base',
'src/python/pants/testutil/engine',
'src/python/pants/testutil/option',
'src/python/pants/testutil/subsystem',
],
provides=pants_setup_py(
name='pantsbuild.pants.testutil',
description='Test support for writing Pants plugins.',
namespace_packages=['pants.testutil'],
additional_classifiers=[
'Topic :: Software Development :: Testing',
]
)
)
python_library(
name = 'int-test-for-export',
sources = ['pants_run_integration_test.py'],
dependencies = [
'//:build_root',
'3rdparty/python:ansicolors',
'3rdparty/python:dataclasses',
'src/python/pants/base:build_environment',
'src/python/pants/base:exiter',
'src/python/pants/build_graph:address',
'src/python/pants/fs',
'src/python/pants/option',
'src/python/pants/pantsd:pants_daemon_client',
'src/python/pants/subsystem',
'src/python/pants/util:contextutil',
'src/python/pants/util:dirutil',
'src/python/pants/util:osutil',
'src/python/pants/util:process_handler',
'src/python/pants/util:strutil',
'src/python/pants:entry_point',
],
)
target(
name = 'int-test',
dependencies=[
':int-test-for-export',
# NB: 'pants_run_integration_test.py' runs ./pants in a subprocess, so test results will depend
# on the pants binary and all of its transitive dependencies. Adding the dependencies below is
# our best proxy for ensuring that any test target depending on this target will be invalidated
# on changes to those undeclared dependencies.
'src/python/pants/bin:pants_local_binary',
'src/rust/engine',
],
)
python_library(
name = 'test_base',
sources = ['test_base.py'],
dependencies = [
'src/python/pants/base:build_root',
'src/python/pants/base:cmd_line_spec_parser',
'src/python/pants/base:exceptions',
'src/python/pants/build_graph',
'src/python/pants/init',
'src/python/pants/option:global_options',
'src/python/pants/option:options_bootstrapper',
'src/python/pants/source',
'src/python/pants/subsystem',
'src/python/pants/testutil/engine',
'src/python/pants/testutil/option',
'src/python/pants/testutil/subsystem',
'src/python/pants/util:collections',
'src/python/pants/util:contextutil',
'src/python/pants/util:dirutil',
'src/python/pants/util:memo',
'src/python/pants/util:meta',
],
)
python_library(
name = 'external_tool_test_base',
sources = ['external_tool_test_base.py'],
dependencies = [
':test_base',
'src/python/pants/core/util_rules',
],
)
python_library(
name = 'goal_rule_test_base',
sources = ['goal_rule_test_base.py'],
dependencies = [
':test_base',
'3rdparty/python:dataclasses',
'src/python/pants/init',
'src/python/pants/testutil/option',
'src/python/pants/util:meta',
],
)
python_library(
name='git_util',
sources=['git_util.py'],
dependencies = [
'src/python/pants/base:revision',
'src/python/pants/scm',
'src/python/pants/util:contextutil',
],
)
python_library(
name='interpreter_selection_utils',
sources=['interpreter_selection_utils.py'],
)
python_library(
name='retry',
sources=['retry.py'],
)
python_library(
name='pexrc_util',
sources=['pexrc_util.py'],
dependencies = [
':git_util',
],
)
python_library(
name='process_test_util',
sources=['process_test_util.py'],
dependencies = [
'3rdparty/python:dataclasses',
'3rdparty/python:psutil',
],
)