google-nomulus/python/google/registry/scripts/BUILD
jianglai 2c2b1da836 Split py_binary into py_binary and py_library to avoid having py_binary in deps.
Having py_binary in deps is deprecated and will break in 19Q1.
[] for more details.

If this CL broke you, please fix forward by manually running
[]/devtools/python/janitor:lib_split_binary []

Tested:
    TAP --sample for global presubmit queue
    []

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=230359276
2019-01-24 19:55:35 -05:00

26 lines
700 B
Text

package(default_visibility = ["//java/google/registry:registry_project"])
licenses(["notice"]) # Apache 2.0
py_binary(
name = "xml_to_index_yaml_translator",
srcs = ["xml_to_index_yaml_translator.py"],
deps = [":xml_to_index_yaml_translator_lib"],
)
py_library(
name = "xml_to_index_yaml_translator_lib",
srcs = ["xml_to_index_yaml_translator.py"],
deps = ["//python:python_directory_import"],
)
py_test(
name = "xml_to_index_yaml_translator_test",
size = "small",
srcs = ["xml_to_index_yaml_translator_test.py"],
data = [
"testdata/datastore-indexes.xml",
"testdata/index.yaml",
],
deps = [":xml_to_index_yaml_translator_lib"],
)