Skip to content

Commit bddd317

Browse files
committed
Merge branch 'main' of https://github.com/bazelbuild/rules_python into docs.patch.release.steps
2 parents 4413d94 + 5f28550 commit bddd317

File tree

28 files changed

+224
-214
lines changed

28 files changed

+224
-214
lines changed

.bazelci/presubmit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ buildifier:
9494
bazel: "7.x"
9595
environment:
9696
RULES_PYTHON_ENABLE_PYSTAR: "1"
97+
build_flags:
98+
- "--config=bazel7.x"
9799
test_flags:
98100
# The doc check tests fail because the Starlark implementation makes the
99101
# PyInfo and PyRuntimeInfo symbols become documented.

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ build:rtd --stamp
3333
# Some bzl files contain repos only available under bzlmod
3434
build:rtd --enable_bzlmod
3535

36+
common:bazel7.x --incompatible_python_disallow_native_rules
37+
3638
build --lockfile_mode=update

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ A brief description of the categories of changes:
3131

3232
{#v0-0-0-fixed}
3333
### Fixed
34-
- Nothing yet
34+
* (rules) Setting `--incompatible_python_disallow_native_rules` no longer
35+
causes rules_python rules to fail.
36+
([#2326](https://github.com/bazelbuild/rules_python/issues/2326).
3537

3638
{#v0-0-0-added}
3739
### Added

docs/precompiling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Note that any execution requirements values can be specified in the flag.
8383
* Mixing rules_python PyInfo with Bazel builtin PyInfo will result in pyc files
8484
being dropped.
8585
* Precompiled files may not be used in certain cases prior to Python 3.11. This
86-
occurs due Python adding the directory of the binary's main `.py` file, which
86+
occurs due to Python adding the directory of the binary's main `.py` file, which
8787
causes the module to be found in the workspace source directory instead of
8888
within the binary's runfiles directory (where the pyc files are). This can
8989
usually be worked around by removing `sys.path[0]` (or otherwise ensuring the

examples/build_file_generation/.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ build --enable_runfiles
66
# The bzlmod version of this example is in examples/bzlmod_build_file_generation
77
# Once WORKSPACE support is dropped, this example can be entirely deleted.
88
build --experimental_enable_bzlmod=false
9+
10+
common:bazel7.x --incompatible_python_disallow_native_rules

examples/bzlmod/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ test --test_output=errors --enable_runfiles
77

88
# Windows requires these for multi-python support:
99
build --enable_runfiles
10+
common:bazel7.x --incompatible_python_disallow_native_rules

examples/bzlmod/MODULE.bazel.lock

Lines changed: 123 additions & 123 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/bzlmod_build_file_generation/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ build --enable_runfiles
66
common --experimental_enable_bzlmod
77

88
coverage --java_runtime_version=remotejdk_11
9+
common:bazel7.x --incompatible_python_disallow_native_rules

examples/multi_python_versions/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ test --test_output=errors
44
build --enable_runfiles
55

66
coverage --java_runtime_version=remotejdk_11
7+
common:bazel7.x --incompatible_python_disallow_native_rules

examples/pip_parse/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# https://docs.bazel.build/versions/main/best-practices.html#using-the-bazelrc-file
22
try-import %workspace%/user.bazelrc
3+
common:bazel7.x --incompatible_python_disallow_native_rules

0 commit comments

Comments
 (0)