Skip to content

Commit b0ae7bc

Browse files
morambrocopybara-github
authored andcommitted
Upgrade rules_python to 0.31.0
This is needed to enable Python 3.12 NOTE: Bazel users will now have to import tink-py in their WORKSPACE file as: ``` load("@tink_py//:tink_py_deps.bzl", "tink_py_deps") tink_py_deps() // New load("@rules_python//python:repositories.bzl", "py_repositories") // New py_repositories() load("@tink_py//:tink_py_deps_init.bzl", "tink_py_deps_init") tink_py_deps_init("tink_py") ``` #30 PiperOrigin-RevId: 625269235 Change-Id: I627af305dacfb8b1f052ca9571944fbaa21d9a1c
1 parent 683e454 commit b0ae7bc

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

WORKSPACE

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
workspace(name = "tink_py")
22

3-
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4-
53
load("@tink_py//:tink_py_deps.bzl", "tink_py_deps", "tink_py_testonly_deps")
64

75
tink_py_deps()
86

9-
tink_py_testonly_deps()
7+
load("@rules_python//python:repositories.bzl", "py_repositories")
8+
9+
py_repositories()
1010

1111
load("@tink_py//:tink_py_deps_init.bzl", "tink_py_deps_init")
1212

1313
tink_py_deps_init("tink_py")
1414

15-
load("@tink_py_pip_deps//:requirements.bzl", tink_py_install_pypi_deps="install_deps")
15+
tink_py_testonly_deps()
16+
17+
load("@tink_py_pip_deps//:requirements.bzl", tink_py_install_pypi_deps = "install_deps")
1618

1719
tink_py_install_pypi_deps()

examples/WORKSPACE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ load("@tink_py//:tink_py_deps.bzl", "tink_py_deps")
2020

2121
tink_py_deps()
2222

23+
load("@rules_python//python:repositories.bzl", "py_repositories")
24+
25+
py_repositories()
26+
2327
load("@tink_py//:tink_py_deps_init.bzl", "tink_py_deps_init")
2428

2529
tink_py_deps_init("tink_py")

tink_py_deps.bzl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def tink_py_deps():
1616
],
1717
)
1818

19-
# Release X.25.1 from 2023-11-15.
19+
# Release from 2023-11-15
2020
maybe(
2121
http_archive,
2222
name = "com_google_protobuf",
@@ -25,13 +25,13 @@ def tink_py_deps():
2525
urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protobuf-25.1.zip"],
2626
)
2727

28-
# Release from 2023-07-12
28+
# Release from 2024-02-13
2929
maybe(
3030
http_archive,
3131
name = "rules_python",
32-
sha256 = "0a8003b044294d7840ac7d9d73eef05d6ceb682d7516781a4ec62eeb34702578",
33-
strip_prefix = "rules_python-0.24.0",
34-
url = "https://github.com/bazelbuild/rules_python/releases/download/0.24.0/rules_python-0.24.0.tar.gz",
32+
sha256 = "c68bdc4fbec25de5b5493b8819cfc877c4ea299c0dcb15c244c5a00208cde311",
33+
strip_prefix = "rules_python-0.31.0",
34+
url = "https://github.com/bazelbuild/rules_python/releases/download/0.31.0/rules_python-0.31.0.tar.gz",
3535
)
3636

3737
# Release from 2023-07-17
@@ -53,7 +53,7 @@ def tink_py_deps():
5353
url = "https://github.com/pybind/pybind11_bazel/archive/refs/tags/v2.11.1.tar.gz",
5454
)
5555

56-
# Release from 2023-09-18.
56+
# Release from 2023-09-18
5757
maybe(
5858
http_archive,
5959
name = "com_google_absl",
@@ -62,7 +62,7 @@ def tink_py_deps():
6262
urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.1.zip"],
6363
)
6464

65-
# Release from 2024-04-05.
65+
# Release from 2024-04-05
6666
maybe(
6767
http_archive,
6868
name = "tink_cc",
@@ -82,7 +82,7 @@ def tink_py_testonly_deps():
8282
urls = ["https://pki.goog/roots.pem"],
8383
)
8484

85-
# Release from 2023-08-02.
85+
# Release from 2023-08-02
8686
maybe(
8787
http_archive,
8888
name = "com_google_googletest",

0 commit comments

Comments
 (0)