diff --git a/BUILD b/BUILD index e30923ad..5ebc2155 100644 --- a/BUILD +++ b/BUILD @@ -1,3 +1,8 @@ +load( + "@io_bazel_skydoc//skylark:skylark.bzl", + "skylark_doc", +) + genrule( name = "README", srcs = [":docs"], diff --git a/examples/BUILD b/examples/BUILD index 3814730c..72f9f65b 100644 --- a/examples/BUILD +++ b/examples/BUILD @@ -1,3 +1,5 @@ +load("//pex:pex_rules.bzl", "pex_binary", "pex_library", "pex_pytest") + pex_binary( name = "foo", srcs = ["foo.py"], @@ -14,8 +16,8 @@ pex_library( pex_pytest( name = "foo_test", + size = "small", srcs = ["foo_test.py"], args = ["--strict"], deps = [":libfoo"], - size = "small", ) diff --git a/tests/BUILD b/tests/BUILD index da7e870f..8655d4b5 100644 --- a/tests/BUILD +++ b/tests/BUILD @@ -1,5 +1,7 @@ +load("//pex:pex_rules.bzl", "pex_pytest") + pex_pytest( name = "third_party_test", srcs = ["third_party_test.py"], - deps = ["//third_party/example:example"], + deps = ["//third_party/example"], ) diff --git a/third_party/example/BUILD b/third_party/example/BUILD index 0de7fde8..65845006 100644 --- a/third_party/example/BUILD +++ b/third_party/example/BUILD @@ -1,15 +1,17 @@ +load("//pex:pex_rules.bzl", "pex_library", "pex_pytest") + # targets in third_party sub-directories must have license by default see: # https://github.com/bazelbuild/bazel/issues/188 pex_library( name = "example", srcs = ["example.py"], - visibility = ["//visibility:public"], licenses = ["notice"], # makes bazel's default --check-licenses happy + visibility = ["//visibility:public"], ) pex_pytest( name = "example_test", srcs = ["example_test.py"], - deps = [":example"], licenses = ["notice"], # makes bazel's default --check-licenses happy + deps = [":example"], ) diff --git a/tools/build_rules/BUILD b/tools/build_rules/BUILD deleted file mode 100644 index e69de29b..00000000 diff --git a/tools/build_rules/prelude_bazel b/tools/build_rules/prelude_bazel deleted file mode 100644 index d88ffd24..00000000 --- a/tools/build_rules/prelude_bazel +++ /dev/null @@ -1,16 +0,0 @@ -# vim: set ft=bzl - -load( - "@io_bazel_skydoc//skylark:skylark.bzl", - "skydoc_repositories", - "skylark_library", - "skylark_doc", -) - -load( - "@//pex:pex_rules.bzl", - "pex_binary", - "pex_library", - "pex_test", - "pex_pytest", -)