Skip to content

Commit

Permalink
Merge proto registry (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaldengeki authored Feb 27, 2024
1 parent 8b8f122 commit 1e12248
Show file tree
Hide file tree
Showing 32 changed files with 4,958 additions and 1,053 deletions.
44 changes: 37 additions & 7 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,15 +1,45 @@
bazel_dep(name = "rules_python", version = "0.31.0")
bazel_dep(name = "aspect_bazel_lib", version = "2.0.0-rc1")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "aspect_rules_py", version = "0.4.0")
bazel_dep(name = "rules_python", version = "0.21.0")
bazel_dep(name = "rules_oci", version = "1.7.2")
bazel_dep(name = "platforms", version = "0.0.7")

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python = use_extension("@rules_python//python:extensions.bzl", "python")
python.toolchain(
name = "python3_11",
python_version = "3.11",
)
use_repo(python, "python3_11")
use_repo(python, "python3_11_toolchains")

register_toolchains("@python3_11_toolchains//:all")

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip = use_extension("@rules_python//python:extensions.bzl", "pip")
pip.parse(
python_version = "3.11",
requirements_lock = "//src/python:requirements.txt",
name = "py_deps",
requirements_lock = "//src/python:requirements.lock.txt",
)
use_repo(pip, "py_proto_deps")
use_repo(pip, "py_deps")

bazel_dep(name = "bazel_skylib", version = "1.5.0")
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
oci.pull(
name = "ubuntu_image",
digest = "sha256:67211c14fa74f070d27cc59d69a7fa9aeff8e28ea118ef3babc295a0428a6d21",
image = "ubuntu",
platforms = [
"linux/arm64/v8",
"linux/amd64",
],
)
use_repo(oci, "ubuntu_image")
oci.pull(
name = "python3_image",
image = "python",
platforms = [
"linux/arm64/v8",
"linux/amd64",
],
tag = "3-slim",
)
use_repo(oci, "python3_image")
Loading

0 comments on commit 1e12248

Please sign in to comment.