Skip to content

Default to CFS for uv and azpysdk#46281

Merged
JennyPng merged 33 commits into
Azure:mainfrom
JennyPng:azpysdk-cfs
Apr 27, 2026
Merged

Default to CFS for uv and azpysdk#46281
JennyPng merged 33 commits into
Azure:mainfrom
JennyPng:azpysdk-cfs

Conversation

@JennyPng
Copy link
Copy Markdown
Member

@JennyPng JennyPng commented Apr 13, 2026

closes #46237

  • adds uv.toml which makes uv pip auto install from CFS instead of PyPI
  • updates docs to provide guidance on the index feed configuration
  • updates azpysdk to default to CFS unless a --pypi flag is passed
  • updates azpysdk to output link to relevant docs if it detects 401 in output
  • updates azure-sdk-tools.yml to use CFS

Comment thread .github/workflows/azure-sdk-tools.yml Outdated
@JennyPng JennyPng marked this pull request as ready for review April 15, 2026 22:56
@JennyPng JennyPng requested review from a team and laiapat as code owners April 15, 2026 22:56
Copilot AI review requested due to automatic review settings April 15, 2026 22:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.toml to make uv default to the Azure SDK CFS index.
  • Update azpysdk to default pip/uv installs to CFS, with a new --pypi flag 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.

Comment thread eng/tools/azure-sdk-tools/azpysdk/main.py Outdated
Comment thread eng/tools/azure-sdk-tools/azpysdk/main.py
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md
Comment thread eng/tools/azure-sdk-tools/azpysdk/main.py Outdated
@JennyPng JennyPng merged commit 472cc19 into Azure:main Apr 27, 2026
25 of 26 checks passed
@JennyPng JennyPng deleted the azpysdk-cfs branch April 27, 2026 15:52
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>
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.

Use CFS as index URL for repo and azpysdk

3 participants