11parameters :
2- DevFeedName : ' public/azure-sdk-for-python'
2+ DevFeedName : " public/azure-sdk-for-python"
33 EnableTwineAuth : true
44 EnablePipAuth : true
55 EnableUvAuth : true
@@ -18,32 +18,32 @@ steps:
1818 displayName: Setup DevOpsFeedName
1919
2020 - ${{ if eq(parameters.EnableTwineAuth, true) }} :
21- - task : TwineAuthenticate@0
22- displayName : ' Twine Authenticate to feed'
23- inputs :
24- artifactFeeds : $(DevFeedName)
21+ - task : TwineAuthenticate@0
22+ displayName : " Twine Authenticate to feed"
23+ inputs :
24+ artifactFeeds : $(DevFeedName)
2525
2626 - ${{ if eq(parameters.EnablePipAuth, true) }} :
27- - task : PipAuthenticate@1
28- displayName : ' Pip Authenticate to feed'
29- inputs :
30- artifactFeeds : $(DevFeedName)
31- onlyAddExtraIndex : false
27+ - task : PipAuthenticate@1
28+ displayName : " Pip Authenticate to feed"
29+ inputs :
30+ artifactFeeds : $(DevFeedName)
31+ onlyAddExtraIndex : false
3232
3333 - ${{ if eq(parameters.EnableUvAuth, true) }} :
34- - pwsh : |
35- if ($env:PIP_INDEX_URL) {
36- Write-Host "Found pip index URL: $($env:PIP_INDEX_URL)"
37- # UV_DEFAULT_INDEX is the canonical replacement for the deprecated UV_INDEX_URL (uv 0.4.23+).
38- # PIP_INDEX_URL is set by PipAuthenticate@1 and contains embedded credentials, which uv
39- # will use for Basic auth against the ADO feed (and its PyPI upstream) per astral-sh/uv#12651.
40- Write-Host "##vso[task.setvariable variable=UV_DEFAULT_INDEX]$($env:PIP_INDEX_URL)"
41- # Disable keyring so uv uses the URL-embedded credentials directly.
42- Write-Host "##vso[task.setvariable variable=UV_KEYRING_PROVIDER]disabled"
43- } else {
44- Write-Host "##[warning]PIP_INDEX_URL not set - uv will fall back to public PyPI."
45- }
46- # Force any managed Python downloads to go directly to GitHub releases
47- # rather than the default CDN (releases.astral.sh).
48- Write-Host "##vso[task.setvariable variable=UV_PYTHON_INSTALL_MIRROR]https://github.com/astral-sh/python-build-standalone/releases/download"
49- displayName: ' Configure UV Authentication'
34+ - pwsh : |
35+ if ($env:PIP_INDEX_URL) {
36+ Write-Host "Found pip index URL: $($env:PIP_INDEX_URL)"
37+ # UV_DEFAULT_INDEX is the canonical replacement for the deprecated UV_INDEX_URL (uv 0.4.23+).
38+ # PIP_INDEX_URL is set by PipAuthenticate@1 and contains embedded credentials, which uv
39+ # will use for Basic auth against the ADO feed (and its PyPI upstream) per astral-sh/uv#12651.
40+ Write-Host "##vso[task.setvariable variable=UV_DEFAULT_INDEX]$($env:PIP_INDEX_URL)"
41+ # Disable keyring so uv uses the URL-embedded credentials directly.
42+ Write-Host "##vso[task.setvariable variable=UV_KEYRING_PROVIDER]disabled"
43+ } else {
44+ Write-Host "##[warning]PIP_INDEX_URL not set - uv will fall back to public PyPI."
45+ }
46+ # Force any managed Python downloads to go directly to GitHub releases
47+ # rather than the default CDN (releases.astral.sh).
48+ Write-Host "##vso[task.setvariable variable=UV_PYTHON_INSTALL_MIRROR]https://github.com/astral-sh/python-build-standalone/releases/download"
49+ displayName: " Configure UV Authentication"
0 commit comments