Skip to content

Commit a2a03a3

Browse files
authored
bazel: Update to use rules_python 1.0.0 (#2504)
Signed-off-by: Ryan Northey <[email protected]>
1 parent 577b522 commit a2a03a3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

bazel/packages.bzl

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
load("@python3_12//:defs.bzl", "interpreter")
21
load("@rules_python//python:pip.bzl", "pip_parse")
32
load("//:versions.bzl", "VERSIONS")
43

@@ -7,13 +6,13 @@ def load_packages():
76
pip_parse(
87
name = "toolshed_pip3",
98
requirements_lock = "@envoy_toolshed//:requirements.txt",
10-
python_interpreter_target = interpreter,
9+
python_interpreter_target = "@python3_12_host//:python",
1110
)
1211

1312
def load_website_packages():
1413
# Only call this if you wish to use the website functionality
1514
pip_parse(
1615
name = "website_pip3",
1716
requirements_lock = "@envoy_toolshed//website:requirements.txt",
18-
python_interpreter_target = interpreter,
17+
python_interpreter_target = "@python3_12_host//:python",
1918
)

bazel/versions.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ VERSIONS = {
1313
"rules_python": {
1414
"type": "github_archive",
1515
"repo": "bazelbuild/rules_python",
16-
"version": "0.37.2",
17-
"sha256": "c6fb25d0ba0246f6d5bd820dd0b2e66b339ccc510242fd4956b9a639b548d113",
16+
"version": "1.0.0",
17+
"sha256": "4f7e2aa1eb9aa722d96498f5ef514f426c1f55161c3c9ae628c857a7128ceb07",
1818
"url": "https://github.com/{repo}/releases/download/{version}/{name}-{version}.tar.gz",
1919
"strip_prefix": "{name}-{version}",
2020
},

0 commit comments

Comments
 (0)