blob: 80739d9a3fa7c634ab13918869b45dbbf19ed048 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
load("@rules_python//python:defs.bzl", "py_library", "py_test")
py_library(
name = "has_test",
srcs = ["python/my_module.py"],
imports = ["../.."],
visibility = ["//:__subpackages__"],
)
py_test(
name = "has_test_test",
srcs = ["__test__.py"],
imports = ["../.."],
main = "__test__.py",
deps = [":has_test"],
)
|