Default to CFS for uv and azpysdk#46281
Merged
Merged
Conversation
scbedd
reviewed
Apr 14, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR switches the repo/tooling default Python package index from PyPI to Azure SDK’s Central Feed Services (CFS), with opt-out behavior when PyPI is explicitly requested.
Changes:
- Add repo-root
uv.tomlto makeuvdefault to the Azure SDK CFS index. - Update
azpysdkto default pip/uv installs to CFS, with a new--pypiflag to force PyPI. - Update docs and CI (GitHub Actions) to configure pip/uv package indexes to CFS.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
uv.toml |
Configures uv’s default index to the Azure SDK CFS feed. |
eng/tools/azure-sdk-tools/tests/test_pypi_client.py |
Adjusts PyPI-only tests to explicitly construct a client targeting pypi.org. |
eng/tools/azure-sdk-tools/azpysdk/main.py |
Adds CFS default index behavior and a --pypi bypass flag; restores env vars on exit. |
doc/tool_usage_guide.md |
Documents CFS default behavior, authentication needs, and --pypi usage. |
CONTRIBUTING.md |
Adds contributor guidance for CFS usage and authentication options. |
.github/workflows/azure-sdk-tools.yml |
Uses a new composite action to set CFS index env vars in the workflow jobs. |
.github/actions/configure-package-indexes/action.yml |
New composite action to export PIP_INDEX_URL and UV_DEFAULT_INDEX via GITHUB_ENV. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
scbedd
reviewed
Apr 22, 2026
scbedd
approved these changes
Apr 25, 2026
fafhrd91
pushed a commit
to fafhrd91/azure-sdk-for-python
that referenced
this pull request
Apr 28, 2026
* initial azpysdk updates * uv.toml and some initial doc updates * minor, respect existing env vars * minor * contributing updates * Minor * uv fix, more doc update * Minor azpysdk change * undo index url removals in azpysdk, in case pypi override * tool doc update * preserve og env vars * az login? * minor env var setting logic refine * initial pat instructions * maybe * minor * use pypi for gh actions? * fix merge issue * fix index precendence issue for pylint * az login * link * use pypi for forks? * minor * no az login * pypi only test fix * simplify * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * add pypi flag after subcommand too * catch 401 output * update feed logging --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #46237
uv pipauto install from CFS instead of PyPI