load("@rules_python//python:py_binary.bzl", "py_binary") load("@rules_python//python:py_library.bzl", "py_library") load("@rules_python//python:py_test.bzl", "py_test") package(default_visibility = ["//visibility:public"]) py_library( name = "common", srcs = ["common.py"], ) py_binary( name = "reverse", srcs = ["reverse.py"], imports = ["."], deps = [":common"], ) py_binary( name = "extract_tofu_risk", srcs = ["extract_tofu_risk.py"], ) py_binary( name = "opencc_resources_zip", srcs = ["opencc_resources_zip.py"], ) py_binary( name = "opencc_resources_zip_diff", srcs = ["opencc_resources_zip_diff.py"], ) py_binary( name = "minify_json_to_inc", srcs = ["minify_json_to_inc.py"], ) py_binary( name = "generate_st_phrases_from_regional_phrases", srcs = ["generate_st_phrases_from_regional_phrases.py"], imports = ["."], deps = [":common"], ) py_binary( name = "convert_config_dict_format", srcs = ["convert_config_dict_format.py"], ) py_test( name = "common_test", size = "small", srcs = ["common_test.py"], imports = ["."], deps = [":common"], )