File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def pip_compile(
47
47
48
48
It also generates two targets for running pip-compile:
49
49
50
- - validate with `bazel test [name]_test `
50
+ - validate with `bazel test [name].test `
51
51
- update with `bazel run [name].update`
52
52
53
53
If you are using a version control system, the requirements.txt generated by this rule should
@@ -166,7 +166,7 @@ def pip_compile(
166
166
timeout = kwargs .pop ("timeout" , "short" )
167
167
168
168
py_test (
169
- name = name + "_test " ,
169
+ name = name + ".test " ,
170
170
timeout = timeout ,
171
171
# setuptools (the default python build tool) attempts to find user
172
172
# configuration in the user's home direcotory. This seems to work fine on
@@ -180,3 +180,9 @@ def pip_compile(
180
180
# kwargs could contain test-specific attributes like size
181
181
** dict (attrs , ** kwargs )
182
182
)
183
+
184
+ alias (
185
+ name = "{}_test" .format (name ),
186
+ actual = ":{}.test" .format (name ),
187
+ deprecation = "Use '{}.test' instead. The '*_test' target will be removed in the next major release." .format (name ),
188
+ )
You can’t perform that action at this time.
0 commit comments