Skip to content

Commit

Permalink
Possible fix for #65 (#66)
Browse files Browse the repository at this point in the history
* Attempt fix

* Attempt fix

* Remove prelude, broken in 0.10
  • Loading branch information
flaub authored and benley committed May 19, 2018
1 parent e2746c5 commit 7e6890f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 20 deletions.
5 changes: 5 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
load(
"@io_bazel_skydoc//skylark:skylark.bzl",
"skylark_doc",
)

genrule(
name = "README",
srcs = [":docs"],
Expand Down
4 changes: 3 additions & 1 deletion examples/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("//pex:pex_rules.bzl", "pex_binary", "pex_library", "pex_pytest")

pex_binary(
name = "foo",
srcs = ["foo.py"],
Expand All @@ -14,8 +16,8 @@ pex_library(

pex_pytest(
name = "foo_test",
size = "small",
srcs = ["foo_test.py"],
args = ["--strict"],
deps = [":libfoo"],
size = "small",
)
4 changes: 3 additions & 1 deletion tests/BUILD
Original file line number Diff line number Diff line change
@@ -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"],
)
6 changes: 4 additions & 2 deletions third_party/example/BUILD
Original file line number Diff line number Diff line change
@@ -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"],
)
Empty file removed tools/build_rules/BUILD
Empty file.
16 changes: 0 additions & 16 deletions tools/build_rules/prelude_bazel

This file was deleted.

0 comments on commit 7e6890f

Please sign in to comment.