Skip to content

Commit a4bbe93

Browse files
committed
Merge remote-tracking branch 'upstream/main' into add-pip-dep-tag-class
2 parents 2e5ecf6 + dc0d977 commit a4bbe93

47 files changed

Lines changed: 1907 additions & 1188 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bazelci/presubmit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ buildifier:
8484
coverage_targets: ["..."]
8585
.coverage_targets_example_bzlmod_build_file_generation: &coverage_targets_example_bzlmod_build_file_generation
8686
coverage_targets: ["//:bzlmod_build_file_generation_test"]
87+
.coverage_targets_bootstrap: &coverage_targets_bootstrap
88+
coverage_targets:
89+
- //tests/bootstrap_impls:stdlib_shadowing_system_python_test
8790
.coverage_targets_example_multi_python: &coverage_targets_example_multi_python
8891
coverage_targets:
8992
- //tests:my_lib_3_10_test
@@ -216,6 +219,7 @@ tasks:
216219
bazel: 7.x
217220
ubuntu:
218221
<<: *reusable_config
222+
<<: *coverage_targets_bootstrap
219223
name: "Default: Ubuntu, Bazel {bazel}"
220224
platform: ubuntu2204
221225
bazel: ${{ bazel }}

.github/ISSUE_TEMPLATE/release_tracking_template.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Release Tracking Issue
33
about: Checklist for tracking a new release of rules_python.
44
title: 'Release <version>'
5-
labels: ['type:release']
5+
labels: ['type: release']
66
---
77
# Release tasks
88
- [ ] Prepare Release | status=awaiting-preparation
@@ -11,11 +11,28 @@ labels: ['type:release']
1111
- [ ] Tag Final
1212

1313
## Backports
14-
<!-- Items to be cherry-picked into the next RC go here -->
14+
15+
<details>
16+
<summary><b>How to add backports</b></summary>
17+
18+
To request a backport:
19+
1. Add a new checklist item under the `## Backports` section.
20+
2. The format must be: `- [ ] #<PR_NUMBER>` (e.g., `- [ ] #1234`).
21+
3. Trigger the [Process Backports Workflow](https://github.com/bazel-contrib/rules_python/actions/workflows/process_backports.yml).
22+
</details>
1523

1624
---
1725
*Maintainers: Automation will react to changes on this issue.*
1826

27+
<details>
28+
<summary><b>Manual Editing</b></summary>
29+
30+
You can manually edit this issue to control the release flow.
31+
The checklist items use metadata suffix: `| key=value key2=value2`.
32+
- **Retry Prepare Release**: Reset to `- [ ] Prepare Release | status=awaiting-preparation`.
33+
- **Force Task Done**: Check the box `- [x]` and add appropriate metadata (e.g. `status=done`).
34+
</details>
35+
1936
<details>
2037
<summary><b>Available Commands</b></summary>
2138

.github/workflows/check_version_markers.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ grep_exit_code=0
2020
# Exclude CONTRIBUTING.md, RELEASING.md because they document how to use these strings.
2121
grep --exclude=CONTRIBUTING.md \
2222
--exclude=RELEASING.md \
23-
--exclude=release.py \
24-
--exclude=release_test.py \
2523
--exclude-dir=.* \
24+
--exclude-dir=release \
2625
VERSION_NEXT_ -r || grep_exit_code=$?
2726

2827
if [[ $grep_exit_code -eq 0 ]]; then

.github/workflows/cut_release_branch.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ permissions:
1010

1111
jobs:
1212
cut_branch:
13-
# Run only if the issue has the type:release label
14-
if: contains(github.event.issue.labels.*.name, 'type:release')
13+
# Run only if the issue has the type: release label
14+
if: contains(github.event.issue.labels.*.name, 'type: release')
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout repository
@@ -32,6 +32,6 @@ jobs:
3232
- name: Attempt Branch Creation
3333
run: |
3434
bazel run //tools/private/release -- \
35-
create-release-branch --issue ${{ github.event.issue.number }}
35+
create-release-branch --issue ${{ github.event.issue.number }} --remote origin
3636
env:
3737
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/generate_rc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
- name: Attempt RC Tagging
3535
run: |
3636
bazel run //tools/private/release -- \
37-
create-rc --issue ${{ inputs.issue }}
37+
create-rc --issue ${{ inputs.issue }} --remote origin
3838
env:
3939
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/prepare_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131
- name: Run Release Preparation Pipeline
3232
run: |
3333
# Manual trigger: run full preparation
34-
bazel run //tools/private/release -- prepare
34+
bazel run //tools/private/release -- prepare --no-dry-run
3535
env:
3636
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/process_backports.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414

1515
jobs:
1616
process_backports:
17-
# Always gate GHA runs to ensure we are operating on a type:release labeled issue if metadata is queried
17+
# Always gate GHA runs to ensure we are operating on a type: release labeled issue if metadata is queried
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout repository

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
type: string
2222
jobs:
2323
publish:
24-
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.1.0
24+
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.4.1
2525
with:
2626
tag_name: ${{ inputs.tag_name }}
2727
# GitHub repository which is a fork of the upstream where the Pull Request will be opened.

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,45 @@ Unreleased changes are tracked as individual files in the [news/](./news)
2929
directory, or view the [latest generated
3030
changelog](https://rules-python.readthedocs.io/en/latest/changelog.html).
3131

32+
{#v2-2-0}
33+
## [2.2.0] - 2026-06-30
34+
35+
[2.2.0]: https://github.com/bazel-contrib/rules_python/releases/tag/2.2.0
36+
37+
{#v2-2-0-changed}
38+
### Changed
39+
* Renamed most public bzl_library targets from `{foo}_bzl` to `{foo}` to follow
40+
gazelle naming conventions. Deprecated aliases are left for backwards
41+
compatibility.
42+
* (binaries/tests) Added a deprecation warning for targets relying on implicit `__init__.py` creation.
43+
44+
{#v2-2-0-fixed}
45+
### Fixed
46+
* Fixed a flaky error on Windows 2022 when looking up the win32 version during
47+
site initialization by retrying the lookup
48+
([#3721](https://github.com/bazel-contrib/rules_python/issues/3721)).
49+
* (coverage) Skip lcov report when no data was collected.
50+
* (pypi) Fixed `experimental_index_url` checking truthiness before envsubst
51+
expansion.
52+
* (rules) Fixed venv output paths for `py_binary` and `py_test` targets whose
53+
names contain path separators so distinct targets with the same basename no
54+
longer share the same venv output directory.
55+
56+
{#v2-2-0-added}
57+
### Added
58+
* Added {bzl:obj}`features.loadable_symbols` to allow detecting public symbols
59+
exported by bzl files.
60+
* Exposed {bzl:obj}`VenvSymlinkEntry` and {bzl:obj}`VenvSymlinkKind` in
61+
{bzl:target}`//python:py_info.bzl`.
62+
* (pypi) Added `@pypi` repo: a unified hub of `pip.parse` hubs.
63+
* (uv) Support for basic `uv.lock` generation via the `lock` rule
64+
and basic support for importing the `uv.lock` file itself. Since this
65+
may have bugs, please report this by creating new tickets.
66+
Work towards [#2787](https://github.com/bazel-contrib/rules_python/issues/2787)
67+
and [#1975](https://github.com/bazel-contrib/rules_python/issues/1975).
68+
69+
70+
3271
{#v2-1-0}
3372
## [2.1.0] - 2026-06-17
3473

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ Values:
362362
specified concrete PyPI hub (corresponding to a
363363
{obj}`pip.parse.hub_name` value).
364364

365-
:::{versionadded} VERSION_NEXT_FEATURE
365+
:::{versionadded} 2.2.0
366366
:::
367367
::::
368368

0 commit comments

Comments
 (0)