fluent-syntax depends on six

This commit is contained in:
Damien Elmes 2020-11-22 16:20:21 +10:00
parent 5cd04f23f1
commit 8056ff0014

View File

@ -1,5 +1,11 @@
load("@py_deps//:requirements.bzl", "requirement") load("@py_deps//:requirements.bzl", "requirement")
fluent_syntax = [
requirement("fluent-syntax"),
# undeclared runtime dependency
requirement("six"),
]
filegroup( filegroup(
name = "ftl", name = "ftl",
srcs = [ srcs = [
@ -12,7 +18,7 @@ filegroup(
py_binary( py_binary(
name = "format", name = "format",
srcs = ["format.py"], srcs = ["format.py"],
deps = [requirement("fluent-syntax")], deps = fluent_syntax,
) )
py_test( py_test(
@ -24,7 +30,7 @@ py_test(
# so we can locate data files # so we can locate data files
args = ["$(location BUILD.bazel)"], args = ["$(location BUILD.bazel)"],
data = glob(["**/*.ftl"]) + ["BUILD.bazel"], data = glob(["**/*.ftl"]) + ["BUILD.bazel"],
deps = [requirement("fluent-syntax")], deps = fluent_syntax,
) )
py_binary( py_binary(
@ -37,14 +43,14 @@ py_binary(
name = "extract-strings", name = "extract-strings",
srcs = ["extract-strings.py"], srcs = ["extract-strings.py"],
tags = ["manual"], tags = ["manual"],
deps = [requirement("fluent-syntax")], deps = fluent_syntax,
) )
py_binary( py_binary(
name = "transform-string", name = "transform-string",
srcs = ["transform-string.py"], srcs = ["transform-string.py"],
tags = ["manual"], tags = ["manual"],
deps = [requirement("fluent-syntax")], deps = fluent_syntax,
) )
# export this file as a way of locating the top level folder in $(location ...) # export this file as a way of locating the top level folder in $(location ...)