anki/pip/BUILD.bazel
2021-04-13 21:21:30 +10:00

35 lines
599 B
Python

load("@rules_python//python:defs.bzl", "py_binary")
load("@py_deps//:requirements.bzl", "requirement")
load(":binary.bzl", "pip_binary")
pip_binary(name = "black")
pip_binary(name = "isort")
pip_binary(name = "mypy")
pip_binary(name = "pylint")
pip_binary(
name = "protoc-gen-mypy",
pkg = "mypy-protobuf",
)
py_binary(
name = "update",
srcs = ["update.py"],
data = [
"requirements.in",
"requirements.txt",
],
tags = ["manual"],
deps = [
requirement("pip-tools"),
],
)
exports_files([
"requirements.txt",
"licenses.json",
])