gerrit/tools/BUCK
David Ostrovsky 0ff53a4a42 Update Buck
New buck version added native support for python_test() rule, so that
our home made java_test() wrapper around python unittest framework is
not needed any more.

Change-Id: If7bae742b7f22a994c5237fb161a35f3f33aaa80
2014-09-01 02:57:52 +00:00

47 lines
779 B
Python

python_binary(
name = 'download_file',
main = 'download_file.py',
deps = [':util'],
visibility = ['PUBLIC'],
)
python_binary(
name = 'pack_war',
main = 'pack_war.py',
deps = [':util'],
visibility = ['PUBLIC'],
)
python_library(
name = 'util',
srcs = [
'util.py',
'__init__.py'
],
visibility = ['PUBLIC'],
)
python_test(
name = 'util_test',
srcs = ['util_test.py'],
deps = [':util'],
visibility = ['PUBLIC'],
)
def shquote(s):
return s.replace("'", "'\\''")
def os_path():
from os import environ
return environ.get('PATH')
genrule(
name = 'buck.properties',
cmd = 'echo buck=`which buck`>$OUT;' +
("echo PATH=\''%s'\' >>$OUT;" % shquote(os_path())),
deps = [],
out = 'buck.properties',
visibility = ['PUBLIC'],
)