aboutsummaryrefslogtreecommitdiff
path: root/python/pip_install/private/test/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'python/pip_install/private/test/BUILD.bazel')
-rw-r--r--python/pip_install/private/test/BUILD.bazel20
1 files changed, 20 insertions, 0 deletions
diff --git a/python/pip_install/private/test/BUILD.bazel b/python/pip_install/private/test/BUILD.bazel
new file mode 100644
index 0000000..d4978f3
--- /dev/null
+++ b/python/pip_install/private/test/BUILD.bazel
@@ -0,0 +1,20 @@
+load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
+load(":requirements_parser_tests.bzl", parse_requirements_tests = "parse_tests")
+
+diff_test(
+ name = "srcs_diff_test",
+ failure_message = (
+ "Please run 'bazel run //python/pip_install/private:srcs_module.update' " +
+ "to update the 'srcs.bzl' module found in the same package."
+ ),
+ file1 = "//python/pip_install/private:srcs_module",
+ file2 = "//python/pip_install/private:srcs.bzl",
+ # TODO: The diff_test here fails on Windows. As does the
+ # install script. This should be fixed.
+ target_compatible_with = select({
+ "@platforms//os:windows": ["@platforms//:incompatible"],
+ "//conditions:default": [],
+ }),
+)
+
+parse_requirements_tests(name = "test_parse_requirements")