build: release 2.0.3#3819
Conversation
) 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)
There was a problem hiding this comment.
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.
|
For the CHANGELOG update, I think we should wait for #3820 to merge, so we can use that by cherry-picking here. |
|
It's OK, the change is the same and most of the people may be looking at the docs from the |
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>
This PR cherry-picks #3799 into the
release/2.0branch with the associated Changelog.With this change
rules_pythonwill no longer query the root index to determine whichpackages should come from which index if there is only one index used.
Included changes:
10e1f7c9:fix(pypi): do not fail on indexes without root index (#3799)CHANGELOG.mdupdates for version2.0.3(docs: update changelog for 2.0.3 release #3820).Fixes #3769
Work towards #3806