Skip to content

Commit 8109da1

Browse files
oprypincopybara-github
authored andcommitted
Modernize Bazel setup
PiperOrigin-RevId: 782923804
1 parent 3bf45d0 commit 8109da1

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

.bazelversion

Lines changed: 0 additions & 1 deletion
This file was deleted.

MODULE.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module(name = "io_abseil_py")
2+
3+
bazel_dep(name = "rules_cc", version = "0.1.2")
4+
bazel_dep(name = "rules_python", version = "1.5.1")
5+
6+
register_toolchains("@rules_python//python/runtime_env_toolchains:all")

WORKSPACE

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@ workspace(name = "io_abseil_py")
1515

1616
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1717

18+
http_archive(
19+
name = "rules_cc",
20+
sha256 = "d62624b45e0912713dcd3b8e30ba6ae55418ed6bf99e6d135cd61b8addae312b",
21+
strip_prefix = "rules_cc-0.1.2",
22+
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.1.2/rules_cc-0.1.2.tar.gz"],
23+
)
24+
1825
http_archive(
1926
name = "rules_python",
20-
sha256 = "863ba0fa944319f7e3d695711427d9ad80ba92c6edd0b7c7443b84e904689539",
21-
strip_prefix = "rules_python-0.22.0",
22-
url = "https://github.com/bazelbuild/rules_python/releases/download/0.22.0/rules_python-0.22.0.tar.gz",
27+
sha256 = "fa532d635f29c038a64c8062724af700c30cf6b31174dd4fac120bc561a1a560",
28+
strip_prefix = "rules_python-1.5.1",
29+
url = "https://github.com/bazel-contrib/rules_python/releases/download/1.5.1/rules_python-1.5.1.tar.gz",
2330
)
2431

2532
load("@rules_python//python:repositories.bzl", "py_repositories")

absl/flags/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
12
load("@rules_python//python:py_binary.bzl", "py_binary")
23
load("@rules_python//python:py_library.bzl", "py_library")
34
load("@rules_python//python:py_test.bzl", "py_test")

0 commit comments

Comments
 (0)