Skip to content

Commit

Permalink
bazel: Update to use rules_python 1.0.0 (#2504)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax authored Dec 8, 2024
1 parent 577b522 commit a2a03a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions bazel/packages.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
load("@python3_12//:defs.bzl", "interpreter")
load("@rules_python//python:pip.bzl", "pip_parse")
load("//:versions.bzl", "VERSIONS")

Expand All @@ -7,13 +6,13 @@ def load_packages():
pip_parse(
name = "toolshed_pip3",
requirements_lock = "@envoy_toolshed//:requirements.txt",
python_interpreter_target = interpreter,
python_interpreter_target = "@python3_12_host//:python",
)

def load_website_packages():
# Only call this if you wish to use the website functionality
pip_parse(
name = "website_pip3",
requirements_lock = "@envoy_toolshed//website:requirements.txt",
python_interpreter_target = interpreter,
python_interpreter_target = "@python3_12_host//:python",
)
4 changes: 2 additions & 2 deletions bazel/versions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ VERSIONS = {
"rules_python": {
"type": "github_archive",
"repo": "bazelbuild/rules_python",
"version": "0.37.2",
"sha256": "c6fb25d0ba0246f6d5bd820dd0b2e66b339ccc510242fd4956b9a639b548d113",
"version": "1.0.0",
"sha256": "4f7e2aa1eb9aa722d96498f5ef514f426c1f55161c3c9ae628c857a7128ceb07",
"url": "https://github.com/{repo}/releases/download/{version}/{name}-{version}.tar.gz",
"strip_prefix": "{name}-{version}",
},
Expand Down

0 comments on commit a2a03a3

Please sign in to comment.