Skip to content

Commit 43beacc

Browse files
authored
chore: upgrade rules_python near HEAD (#245)
We need Matt's upstream fix which isn't released yet --- ### Type of change - Bug fix (change which fixes an issue) ### Test plan - Covered by existing test cases
1 parent e988ed4 commit 43beacc

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

MODULE.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ module(
1111
bazel_dep(name = "aspect_bazel_lib", version = "1.38.1")
1212
bazel_dep(name = "bazel_skylib", version = "1.4.2")
1313
bazel_dep(name = "rules_python", version = "0.27.1")
14+
15+
archive_override(
16+
module_name = "rules_python",
17+
urls = "https://github.com/bazelbuild/rules_python/archive/52381415be9d3618130f02a821aef50de1e3af09.tar.gz",
18+
integrity = "sha256-pYfEFNWqygSEElDYgJsuIeDYn9oll/rZB0GcR+6rirA=",
19+
strip_prefix = "rules_python-52381415be9d3618130f02a821aef50de1e3af09",
20+
)

e2e/smoke/MODULE.bazel

+8-6
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ local_path_override(
99
#---SNIP--- Below here is re-used in the snippet published on releases
1010
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.27.1")
1111

12+
# NB: users need this as well, until a new version of rules_python is released
13+
archive_override(
14+
module_name = "rules_python",
15+
urls = "https://github.com/bazelbuild/rules_python/archive/52381415be9d3618130f02a821aef50de1e3af09.tar.gz",
16+
integrity = "sha256-pYfEFNWqygSEElDYgJsuIeDYn9oll/rZB0GcR+6rirA=",
17+
strip_prefix = "rules_python-52381415be9d3618130f02a821aef50de1e3af09",
18+
)
19+
1220
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
1321
python.toolchain(
14-
name = "python3",
1522
configure_coverage_tool = True,
1623
python_version = "3.11",
1724
)
18-
use_repo(python, "python3_toolchains")
19-
20-
register_toolchains(
21-
"@python3_toolchains//:all",
22-
)

py/repositories.bzl

+4-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ def rules_py_dependencies():
3636
url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.38.1.tar.gz",
3737
)
3838

39+
# We require #1671 which isn't in a release as of 19 Jan 2024
3940
http_archive(
4041
name = "rules_python",
41-
sha256 = "cff4c0ac0873ce089557b72828f34b82e67f35e9accfe414b5c3230907104a87",
42-
strip_prefix = "rules_python-9facc3e3341f156377c61afbaa1dfb79a3843b78",
43-
url = "https://github.com/bazelbuild/rules_python/archive/9facc3e3341f156377c61afbaa1dfb79a3843b78.tar.gz",
42+
sha256 = "a587c414d5aaca04841250d8809b2e21e0d89fda2597fad907419c47eeab8ab0",
43+
strip_prefix = "rules_python-52381415be9d3618130f02a821aef50de1e3af09",
44+
url = "https://github.com/bazelbuild/rules_python/archive/52381415be9d3618130f02a821aef50de1e3af09.tar.gz",
4445
)

0 commit comments

Comments
 (0)