Skip to content

build: release 2.0.3#3819

Merged
aignas merged 2 commits into
bazel-contrib:release/2.0from
udaya2899:release/2.0
Jun 16, 2026
Merged

build: release 2.0.3#3819
aignas merged 2 commits into
bazel-contrib:release/2.0from
udaya2899:release/2.0

Conversation

@udaya2899

@udaya2899 udaya2899 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

This PR cherry-picks #3799 into the release/2.0 branch with the associated Changelog.
With this change rules_python will no longer query the root index to determine which
packages should come from which index if there is only one index used.

Included changes:

Fixes #3769
Work towards #3806

aignas and others added 2 commits June 15, 2026 12:34
)

With this PR we are changing the strategy of assuming that
all of the packages that we have here will be available
through the index and we stop calling the root index if
only a single index is specified. This will improve the
performance for public-only hubs (like the twine deps)
and should in generally reflect better the pre-2.0 behaviour.

Fixes bazel-contrib#3769
Closes bazel-contrib#3770

(cherry picked from commit 10e1f7c)

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request optimizes PyPI package downloads by skipping the root index download when only a single PyPI-compatible index is configured. This change avoids an expensive download and improves compatibility with PyPI mirrors that do not support root index functionality. The implementation in simpleapi_download.bzl was updated to return early when len(index_urls) == 1, and corresponding integration lockfiles and unit tests were updated to reflect this optimization. There are no review comments, so I have no additional feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@udaya2899

Copy link
Copy Markdown
Contributor Author

For the CHANGELOG update, I think we should wait for #3820 to merge, so we can use that by cherry-picking here.

@aignas

aignas commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

It's OK, the change is the same and most of the people may be looking at the docs from the main build.

@aignas aignas merged commit e7d1378 into bazel-contrib:release/2.0 Jun 16, 2026
3 checks passed
pull Bot pushed a commit to garymm/rules_python that referenced this pull request Jun 16, 2026
This PR updates the changelog on `main` to document the
`2.0.3` release and moves the cherry-picked fix out of the
`Unreleased` section.

Companion to the release PR bazel-contrib#3819 on the `release/2.0` branch.

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants