Skip to content

Commit 500349a

Browse files
authored
Merge branch 'main' into chore/update-standalone-20250610
2 parents e7b6734 + ef14ae2 commit 500349a

File tree

17 files changed

+33
-33
lines changed

17 files changed

+33
-33
lines changed

CHANGELOG.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ BEGIN_UNRELEASED_TEMPLATE
4747
END_UNRELEASED_TEMPLATE
4848
-->
4949

50-
{#v0-0-0}
51-
## Unreleased
50+
{#1-5-0}
51+
## [1.5.0] - 2025-06-11
5252

53-
[0.0.0]: https://github.com/bazel-contrib/rules_python/releases/tag/0.0.0
53+
[1.5.0]: https://github.com/bazel-contrib/rules_python/releases/tag/1.5.0
5454

55-
{#v0-0-0-changed}
55+
{#1-5-0-changed}
5656
### Changed
5757

5858
* (toolchain) Bundled toolchain version updates:
@@ -72,7 +72,7 @@ END_UNRELEASED_TEMPLATE
7272
`PyInfo.site_packages_symlinks`
7373
* (deps) Updating setuptools to patch CVE-2025-47273.
7474

75-
{#v0-0-0-fixed}
75+
{#1-5-0-fixed}
7676
### Fixed
7777

7878
* (rules) PyInfo provider is now advertised by py_test, py_binary, and py_library;
@@ -101,7 +101,7 @@ END_UNRELEASED_TEMPLATE
101101
* (toolchains) The hermetic toolchains now correctly statically advertise the
102102
`releaselevel` and `serial` for pre-release hermetic toolchains ({gh-issue}`2837`).
103103

104-
{#v0-0-0-added}
104+
{#1-5-0-added}
105105
### Added
106106
* Repo utilities `execute_unchecked`, `execute_checked`, and `execute_checked_stdout` now
107107
support `log_stdout` and `log_stderr` keyword arg booleans. When these are `True`
@@ -124,7 +124,7 @@ END_UNRELEASED_TEMPLATE
124124
security patches.
125125
* (toolchains): 3.14.0b2 has been added as a preview.
126126

127-
{#v0-0-0-removed}
127+
{#1-5-0-removed}
128128
### Removed
129129
* Nothing removed.
130130

docs/api/rules_python/python/config_settings/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Default: `//python/config_settings:_pip_env_marker_default_config`
167167
This flag points to a target providing {obj}`EnvMarkerInfo`, which determines
168168
the values used when environment markers are resolved at build time.
169169

170-
:::{versionadded} VERSION_NEXT_FEATURE
170+
:::{versionadded} 1.5.0
171171
:::
172172
::::
173173

docs/environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ The default became `1` if unspecified
6565
When `1`, the rules_python Starlark implementation of the pypi/pip integration is used
6666
instead of the legacy Python scripts.
6767

68-
:::{versionadded} VERSION_NEXT_FEATURE
68+
:::{versionadded} 1.5.0
6969
:::
7070
::::
7171

docs/toolchains.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ that can be used with `target_settings`. Some particular ones of note are:
305305
{flag}`--py_linux_libc` and {flag}`--py_freethreaded`, among others.
306306
:::
307307

308-
:::{versionadded} VERSION_NEXT_FEATURE
308+
:::{versionadded} 1.5.0
309309
Added support for custom platform names, `target_compatible_with`, and
310310
`target_settings` with `single_version_platform_override`.
311311
:::
@@ -436,8 +436,8 @@ local_runtime_repo = use_repo_rule(
436436
)
437437

438438
local_runtime_toolchains_repo = use_repo_rule(
439-
"@rules_python//python/local_toolchains:repos.bzl"
440-
"local_runtime_toolchains_repo"
439+
"@rules_python//python/local_toolchains:repos.bzl",
440+
"local_runtime_toolchains_repo",
441441
dev_dependency = True,
442442
)
443443

python/features.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _features_typedef():
3535
3636
True if the `PyInfo.venv_symlinks` field is available.
3737
38-
:::{versionadded} VERSION_NEXT_FEATURE
38+
:::{versionadded} 1.5.0
3939
:::
4040
::::
4141

python/private/common.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def create_py_info(
425425
else:
426426
# TODO(b/228692666): Remove this once non-PyInfo targets are no
427427
# longer supported in `deps`.
428-
files = target.files.to_list()
428+
files = target[DefaultInfo].files.to_list()
429429
for f in files:
430430
if f.extension == "py":
431431
py_info.transitive_sources.add(f)
@@ -449,7 +449,7 @@ def create_py_info(
449449
info = _get_py_info(target)
450450
py_info.merge_uses_shared_libraries(info.uses_shared_libraries)
451451
else:
452-
files = target.files.to_list()
452+
files = target[DefaultInfo].files.to_list()
453453
for f in files:
454454
py_info.merge_uses_shared_libraries(cc_helper.is_valid_shared_library_artifact(f))
455455
if py_info.get_uses_shared_libraries():

python/private/local_runtime_toolchains_repo.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ conditions are met, typically values from `@platforms`.
9696
9797
See the [Local toolchains] docs for examples and further information.
9898
99-
:::{versionadded} VERSION_NEXT_FEATURE
99+
:::{versionadded} 1.5.0
100100
:::
101101
""",
102102
),
@@ -145,7 +145,7 @@ The `target_settings` attribute, which handles `config_setting` values,
145145
instead of constraints.
146146
:::
147147
148-
:::{versionadded} VERSION_NEXT_FEATURE
148+
:::{versionadded} 1.5.0
149149
:::
150150
""",
151151
),
@@ -183,7 +183,7 @@ The `target_compatible_with` attribute, which handles *constraint* values,
183183
instead of `config_settings`.
184184
:::
185185
186-
:::{versionadded} VERSION_NEXT_FEATURE
186+
:::{versionadded} 1.5.0
187187
:::
188188
""",
189189
),

python/private/py_info.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ This field is currently unused in Bazel and may go away in the future.
312312
:::{include} /_includes/experimental_api.md
313313
:::
314314
315-
:::{versionadded} VERSION_NEXT_FEATURE
315+
:::{versionadded} 1.5.0
316316
:::
317317
""",
318318
},

python/private/py_library.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ This attributes populates {obj}`PyInfo.venv_symlinks`.
9797
9898
:::{versionadded} 1.4.0
9999
:::
100-
:::{versionchanged} VERSION_NEXT_FEATURE
100+
:::{versionchanged} 1.5.0
101101
The topological order has been removed and if 2 different versions of the same PyPI
102102
package are observed, the behaviour has no guarantees except that it is deterministic
103103
and that only one package version will be included.

python/private/py_runtime_info.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ to meet two criteria:
334334
interpreter. This typically requires the Python version to be known at
335335
build-time and match at runtime.
336336
337-
:::{versionadded} VERSION_NEXT_FEATURE
337+
:::{versionadded} 1.5.0
338338
:::
339339
""",
340340
"zip_main_template": """

0 commit comments

Comments
 (0)