2020-11-02 07:28:31 +01:00
|
|
|
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
|
|
|
|
load("@py_deps//:requirements.bzl", "requirement")
|
|
|
|
|
|
|
|
py_binary(
|
2021-02-01 06:47:25 +01:00
|
|
|
name = "protoc-gen-mypy",
|
|
|
|
srcs = ["protoc-gen-mypy.py"],
|
2020-11-02 07:28:31 +01:00
|
|
|
visibility = [
|
|
|
|
"//visibility:public",
|
|
|
|
],
|
|
|
|
deps = [requirement("mypy-protobuf")],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_binary(
|
|
|
|
name = "protoc_wrapper",
|
|
|
|
srcs = ["protoc_wrapper.py"],
|
|
|
|
visibility = [
|
|
|
|
"//visibility:public",
|
|
|
|
],
|
|
|
|
deps = [
|
2021-02-01 06:47:25 +01:00
|
|
|
":protoc-gen-mypy",
|
2020-11-02 07:28:31 +01:00
|
|
|
"@rules_python//python/runfiles",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_library(
|
|
|
|
name = "hookslib",
|
|
|
|
srcs = ["hookslib.py"],
|
|
|
|
imports = ["."],
|
|
|
|
visibility = [
|
|
|
|
"//pylib:__subpackages__",
|
|
|
|
"//qt:__pkg__",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_binary(
|
|
|
|
name = "genhooks",
|
|
|
|
srcs = [
|
|
|
|
"genhooks.py",
|
|
|
|
"hookslib.py",
|
|
|
|
],
|
|
|
|
imports = ["."],
|
|
|
|
visibility = ["//pylib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
requirement("black"),
|
2021-10-21 06:54:50 +02:00
|
|
|
"//pylib/anki/_vendor:stringcase",
|
2020-11-02 07:28:31 +01:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-03-26 03:37:18 +01:00
|
|
|
py_binary(
|
|
|
|
name = "rewrite_tr",
|
|
|
|
srcs = [
|
|
|
|
"rewrite_tr.py",
|
|
|
|
],
|
|
|
|
tags = ["manual"],
|
|
|
|
deps = [
|
2021-10-21 06:54:50 +02:00
|
|
|
"//pylib/anki/_vendor:stringcase",
|
2021-03-26 03:37:18 +01:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-11-02 07:28:31 +01:00
|
|
|
filegroup(
|
2020-11-11 12:06:51 +01:00
|
|
|
name = "py_source_files",
|
2020-11-02 07:28:31 +01:00
|
|
|
srcs = glob(["*.py"]),
|
|
|
|
visibility = ["//pylib:__subpackages__"],
|
|
|
|
)
|