Skip to content

fix(pypi): enable pip.default.envsubst for pip.default.index_url - #4438

Merged
aignas merged 3 commits into
bazel-contrib:mainfrom
dws:pip.default.envsubst
Nov 8, 2026
Merged

aignas merged 3 commits into
bazel-contrib:mainfrom
dws:pip.default.envsubst

Conversation

@dws

@dws dws commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

It turns out that pip.parse.envsubst could not reasonably be used together
with pip.default.index_url, as there could be multiple pip.parse tags
with varying contents, so pip.default.index_url would not always be
processed in the same way.

To cope with this, we here introduce pip.default.envsubst, which can
effectively be used together with pip.default.index_url.

This also fixes a testing bug where envsubst was not a list.

Closes #4123

dws added 2 commits November 7, 2026 23:07
It turns out that pip.parse.envsubst could not reasonably be used together
with pip.default.index_url, as there could be multiple pip.parse tags
with varying contents, so pip.default.index_url would not always be
processed in the same way.

To cope with this, we here introduce pip.default.envsubst, which can
effectively be used together with pip.default.index_url.

Closes bazel-contrib#4123
@dws
dws marked this pull request as ready for review November 8, 2026 05:07
@dws
dws requested review from aignas and rickeylev as code owners November 8, 2026 05:07

@aignas aignas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, but needs a news entry.

Comment thread python/private/pypi/extension.bzl Resolved
Comment thread python/private/pypi/extension.bzl Resolved
Only mention Bazel 7 in the note about re-fetching, add a versionadded
note and a news entry.
@aignas
aignas enabled auto-merge November 8, 2026 11:59
@aignas
aignas added this pull request to the merge queue Nov 8, 2026
Merged via the queue into bazel-contrib:main with commit 5f64d49 Nov 8, 2026
13 checks passed
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.

unable to override https://pypi.org/simple starting in rules_python 2.0.0

2 participants