diff --git a/CHANGELOG.md b/CHANGELOG.md index 299a43e1ff..47ccd2459a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -100,6 +100,8 @@ Unreleased changes template. * (toolchains) Ensure temporary `.pyc` and `.pyo` files are also excluded from the interpreters repository files. * (pypi) Run interpreter version call in isolated mode, to ensure it's not affected by userland environment variables, such as `PYTHONPATH`. * (packaging) An empty `requires_file` is treated as if it were omitted, resulting in a valid `METADATA` file. +* (rules) py_wheel and sphinxdocs rules now propagate `target_compatible_with` to all targets they create. + [PR #2788](https://github.com/bazel-contrib/rules_python/pull/2788). {#v0-0-0-added} ### Added diff --git a/python/private/util.bzl b/python/private/util.bzl index 33261befaf..4d2da57760 100644 --- a/python/private/util.bzl +++ b/python/private/util.bzl @@ -42,7 +42,7 @@ def copy_propagating_kwargs(from_kwargs, into_kwargs = None): into_kwargs = {} # Include tags because people generally expect tags to propagate. - for attr in ("testonly", "tags", "compatible_with", "restricted_to"): + for attr in ("testonly", "tags", "compatible_with", "restricted_to", "target_compatible_with"): if attr in from_kwargs and attr not in into_kwargs: into_kwargs[attr] = from_kwargs[attr] return into_kwargs