2021-01-08 21:08:47 +01:00
|
|
|
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
|
2021-01-29 09:18:22 +01:00
|
|
|
load("@pip_modules//:requirements.bzl", "requirement")
|
2021-01-08 21:08:47 +01:00
|
|
|
|
|
|
|
py_library(
|
|
|
|
name = "pylon",
|
|
|
|
srcs = glob(["**/*.py"]),
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
requirement("aiodns"),
|
|
|
|
requirement("aiohttp"),
|
|
|
|
requirement("aiohttp_socks"),
|
|
|
|
requirement("brotli"),
|
|
|
|
requirement("cchardet"),
|
|
|
|
requirement("orjson"),
|
|
|
|
requirement("python-socks"),
|
|
|
|
requirement("tenacity"),
|
|
|
|
requirement("aiokit"),
|
|
|
|
"//library/logging",
|
|
|
|
"//nexus/pylon/proto:pylon_proto_py",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_binary(
|
|
|
|
name = "cli",
|
|
|
|
srcs = ["cli.py"],
|
|
|
|
main = "cli.py",
|
|
|
|
srcs_version = "PY3",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
requirement("fire"),
|
|
|
|
":pylon",
|
|
|
|
],
|
|
|
|
)
|