From dd32d18add81a4b211256d6f6a5429806beaaf9a Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Mon, 8 Sep 2025 23:19:08 -0700 Subject: [PATCH 1/2] docs: update changelog for config_settings attribute --- CHANGELOG.md | 9 ++++++++- ...ons.md => common-deps-with-multiple-pypi-versions.md} | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) rename docs/howto/{common-deps-with-multipe-pypi-versions.md => common-deps-with-multiple-pypi-versions.md} (98%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55d0d3fa2f..41186cbd17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -85,7 +85,14 @@ END_UNRELEASED_TEMPLATE * (bootstrap) {obj}`--bootstrap_impl=system_python` now supports the {obj}`main_module` attribute. * (bootstrap) {obj}`--bootstrap_impl=system_python` now supports the - {any}`RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGS` attribute. + {any}`RULES_PYTHON_ADDITIONAL_INTERPRIETER_ARGS` environment variable. +* (rules) The `py_binary`, `py_test`, and `py_wheel` rules now have a + {obj}`config_settings` attribute to control build flags within the build graph. + Custom settings can be added using {obj}`config.add_transition_setting` in + `MODULE.bazel` files, or {obj}`py_repositories(transition_settings=...)` in + `WORKSPACE` files. See the + {ref}`common-deps-with-multiple-pypi-versions` guide on using common + dependencies with multiple PyPI versions` for an example. {#v1-6-0} diff --git a/docs/howto/common-deps-with-multipe-pypi-versions.md b/docs/howto/common-deps-with-multiple-pypi-versions.md similarity index 98% rename from docs/howto/common-deps-with-multipe-pypi-versions.md rename to docs/howto/common-deps-with-multiple-pypi-versions.md index ba3568682f..3b933d22f4 100644 --- a/docs/howto/common-deps-with-multipe-pypi-versions.md +++ b/docs/howto/common-deps-with-multiple-pypi-versions.md @@ -1,3 +1,4 @@ +(common-deps-with-multiple-pypi-versions)= # How to use a common set of dependencies with multiple PyPI versions In this guide, we show how to handle a situation common to monorepos From 2ce9d970cf05d699673ba9bae17ff97f66c35d04 Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Mon, 8 Sep 2025 23:36:57 -0700 Subject: [PATCH 2/2] Update CHANGELOG.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41186cbd17..abbd5f5cf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -85,7 +85,7 @@ END_UNRELEASED_TEMPLATE * (bootstrap) {obj}`--bootstrap_impl=system_python` now supports the {obj}`main_module` attribute. * (bootstrap) {obj}`--bootstrap_impl=system_python` now supports the - {any}`RULES_PYTHON_ADDITIONAL_INTERPRIETER_ARGS` environment variable. + {any}`RULES_PYTHON_ADDITIONAL_INTERPRETER_ARGS` environment variable. * (rules) The `py_binary`, `py_test`, and `py_wheel` rules now have a {obj}`config_settings` attribute to control build flags within the build graph. Custom settings can be added using {obj}`config.add_transition_setting` in