Damien Martin-Guillerez | a8628bf | 2015-04-17 15:31:02 +0000 | [diff] [blame] | 1 | filegroup( |
| 2 | name = "srcs", |
Damien Martin-Guillerez | 18eed30 | 2016-02-10 15:11:20 +0000 | [diff] [blame] | 3 | srcs = glob(["*.py"]) + [ |
| 4 | "BUILD", |
| 5 | "//examples/py_native/fibonacci:srcs", |
| 6 | ], |
Damien Martin-Guillerez | a8628bf | 2015-04-17 15:31:02 +0000 | [diff] [blame] | 7 | visibility = ["//examples:__pkg__"], |
| 8 | ) |
| 9 | |
Lukacs Berki | f5e23c6 | 2015-03-27 14:08:38 +0000 | [diff] [blame] | 10 | py_binary( |
| 11 | name = "bin", |
| 12 | srcs = ["bin.py"], |
David Chen | ea02b8a | 2016-02-10 12:52:11 +0000 | [diff] [blame] | 13 | deps = [ |
| 14 | ":lib", |
| 15 | "//examples/py_native/fibonacci", |
| 16 | ], |
Lukacs Berki | f5e23c6 | 2015-03-27 14:08:38 +0000 | [diff] [blame] | 17 | ) |
| 18 | |
| 19 | py_library( |
| 20 | name = "lib", |
| 21 | srcs = ["lib.py"], |
| 22 | ) |
Damien Martin-Guillerez | a8628bf | 2015-04-17 15:31:02 +0000 | [diff] [blame] | 23 | |
| 24 | py_test( |
| 25 | name = "test", |
| 26 | srcs = ["test.py"], |
David Chen | ea02b8a | 2016-02-10 12:52:11 +0000 | [diff] [blame] | 27 | deps = [ |
| 28 | ":lib", |
| 29 | "//examples/py_native/fibonacci", |
| 30 | ], |
Damien Martin-Guillerez | a8628bf | 2015-04-17 15:31:02 +0000 | [diff] [blame] | 31 | ) |
| 32 | |
| 33 | py_test( |
| 34 | name = "fail", |
| 35 | srcs = ["fail.py"], |
| 36 | deps = [":lib"], |
| 37 | ) |