bin/BUILD
raw| 1 | package(default_visibility = ["//visibility:public"]) |
| 2 | |
| 3 | # Note: The genrule targets rename the scripts to .py generated files. |
| 4 | # Note: subpar does not yet support C extensions. |
| 5 | |
| 6 | genrule( |
| 7 | name = "bean_price_py", |
| 8 | srcs = ["bean-price"], |
| 9 | outs = ["bean_price.py"], |
| 10 | cmd = "cat $(locations :bean-price) > $@", |
| 11 | ) |
| 12 | |
| 13 | py_binary( |
| 14 | name = "bean_price", |
| 15 | srcs = ["bean_price.py"], |
| 16 | deps = [ |
| 17 | "//beancount/prices:price", |
| 18 | "//beancount:loader_with_plugins", |
| 19 | ], |
| 20 | ) |