Skip to content

Commit 3700f76

Browse files
committed
Update rules_python
Also moves to python 11, reverting 9335ff4.
1 parent b7cae14 commit 3700f76

6 files changed

+12
-12
lines changed

BUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ filegroup(
1717
srcs = glob(["**/*.bzl"]) + [
1818
"@bazel_tools//tools:bzl_srcs",
1919
"@hedron_compile_commands_pip//:requirements.bzl",
20-
"@python_3_10//:defs.bzl",
20+
"@python_3_11//:defs.bzl",
2121
"@rules_python//:bzl",
2222
],
2323
)

MODULE.bazel

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ ptt = use_extension("//:workspace_setup_transitive_transitive.bzl", "hedron_comp
66
pttt = use_extension("//:workspace_setup_transitive_transitive_transitive.bzl", "hedron_compile_commands_extension")
77

88

9-
bazel_dep(name = "rules_python", version = "0.27.1")
9+
bazel_dep(name = "rules_python", version = "0.28.0")
1010
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
1111
python.toolchain(
12-
python_version = "3.10",
12+
python_version = "3.11",
1313
)
14-
use_repo(python, "python_3_10")
14+
use_repo(python, "python_3_11")
1515
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
1616
pip.parse(
1717
hub_name = "hedron_compile_commands_pip",
1818
# Available versions are listed in @rules_python//python:versions.bzl.
19-
python_version = "3.10",
19+
python_version = "3.11",
2020
requirements_lock = "//:requirements.txt",
2121
)
2222
use_repo(pip, "hedron_compile_commands_pip")

refresh_compile_commands.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ refresh_compile_commands(
5858

5959
load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain")
6060
load("@hedron_compile_commands_pip//:requirements.bzl", "requirement")
61-
load("@python_3_10//:defs.bzl", "py_binary")
61+
load("@python_3_11//:defs.bzl", "py_binary")
6262

6363

6464
def refresh_compile_commands(

workspace_setup.bzl

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ def hedron_compile_commands_setup(module_ctx = None):
2121
maybe(
2222
http_archive,
2323
name = "rules_python",
24-
sha256 = "e85ae30de33625a63eca7fc40a94fea845e641888e52f32b6beea91e8b1b2793",
25-
strip_prefix = "rules_python-0.27.1",
26-
url = "https://github.com/bazelbuild/rules_python/releases/download/0.27.1/rules_python-0.27.1.tar.gz",
24+
sha256 = "d70cd72a7a4880f0000a6346253414825c19cdd40a28289bdf67b8e6480edff8",
25+
strip_prefix = "rules_python-0.28.0",
26+
url = "https://github.com/bazelbuild/rules_python/releases/download/0.28.0/rules_python-0.28.0.tar.gz",
2727
)
2828

2929

workspace_setup_transitive.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def hedron_compile_commands_setup_transitive(module_ctx = None):
2929
if not module_ctx:
3030
py_repositories()
3131
python_register_toolchains(
32-
name = "python_3_10",
32+
name = "python_3_11",
3333
# Available versions are listed in @rules_python//python:versions.bzl.
34-
python_version = "3.10",
34+
python_version = "3.11",
3535
)
3636

3737
hedron_compile_commands_extension = module_extension( # Note: Doesn't break loading from WORKSPACE as far back as Bazel 5.0.0

workspace_setup_transitive_transitive.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Do not change the filename; it is part of the user interface.
22

33

4-
load("@python_3_10//:defs.bzl", "interpreter")
4+
load("@python_3_11//:defs.bzl", "interpreter")
55
load("@rules_python//python:pip.bzl", "pip_parse")
66

77

0 commit comments

Comments
 (0)