-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
43 lines (38 loc) · 1.18 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@pip//:requirements.bzl", "all_whl_requirements")
load("@rules_python//gazelle/manifest:defs.bzl", "gazelle_python_manifest")
load("@rules_python//gazelle/modules_mapping:def.bzl", "modules_mapping")
load("@rules_python//gazelle:def.bzl", "GAZELLE_PYTHON_RUNTIME_DEPS")
modules_mapping(
name = "modules_map",
wheels = all_whl_requirements,
)
gazelle_python_manifest(
name = "gazelle_python_manifest",
modules_mapping = ":modules_map",
pip_repository_incremental = True,
pip_repository_name = "pip",
requirements = "//:requirements.txt",
)
gazelle(
name = "gazelle",
data = GAZELLE_PYTHON_RUNTIME_DEPS,
gazelle = "@rules_python//gazelle:gazelle_python_binary",
)
py_library(
name = "boto3_delete_old_amis",
srcs = ["delete.py"],
visibility = ["//:__subpackages__"],
deps = [
"@pip_boto3//:pkg",
"@pip_python_dateutil//:pkg",
],
)
py_binary(
name = "boto3_delete_old_amis_bin",
srcs = ["__main__.py"],
main = "__main__.py",
visibility = ["//:__subpackages__"],
deps = [":boto3_delete_old_amis"],
)