Skip to content

feat(backend): support KALE_PYPI_PROD_URL for configurable production PyPI index#866

Open
Bhavd33p wants to merge 1 commit into
kubeflow:mainfrom
Bhavd33p:feat/kale-pypi-prod-url
Open

feat(backend): support KALE_PYPI_PROD_URL for configurable production PyPI index#866
Bhavd33p wants to merge 1 commit into
kubeflow:mainfrom
Bhavd33p:feat/kale-pypi-prod-url

Conversation

@Bhavd33p

@Bhavd33p Bhavd33p commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • compute_pip_index_urls() hardcoded the production pip index fallback to https://pypi.org/simple, appended unconditionally regardless of KALE_PIP_INDEX_URLS/KALE_DEV_MODE overrides
  • Add KALE_PYPI_PROD_URL env var to make this fallback configurable, defaulting to https://pypi.org/simple for backward compatibility
  • Documented alongside the other KALE_PIP_*/KALE_DEV_MODE vars in docs/source/user-guide/running-pipelines.md and docs/source/api/cli.md

Fixes #797

Test plan

  • pytest kale/tests/unit_tests/test_utils.py -k compute_pip_index_urls -v — 8 passed (5 existing + 3 new)
  • Full unit suite: pytest kale/tests/unit_tests/ — 247 passed
  • Manual check: KALE_PYPI_PROD_URL set → used in place of pypi.org; unset → falls back to https://pypi.org/simple

🤖 Generated with Claude Code

@google-oss-prow google-oss-prow Bot requested a review from jesuino July 1, 2026 17:59
@google-oss-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign ederign for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

… PyPI index

Air-gapped or mirror-only deployments can't reach pypi.org, but Kale
always appended it as the hardcoded production fallback in generated
pipeline components regardless of other pip index overrides. Add
KALE_PYPI_PROD_URL so this fallback is configurable, defaulting to
https://pypi.org/simple for backward compatibility.

Fixes kubeflow#797

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: [Bhavdeep Singh] <bhavdeep3singh@gmail.com>
@Bhavd33p Bhavd33p force-pushed the feat/kale-pypi-prod-url branch from 29ab69c to b35cadb Compare July 1, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature(backend): Support KALE_PYPI_PROD_URL for configurable production PyPI index

1 participant