Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions eng/pipelines/templates/stages/python-analyze-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ stages:
os: linux

steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.10'
inputs:
- template: /eng/pipelines/templates/steps/use-python-version.yml
parameters:
versionSpec: '3.10'

# Authenticate pip to the configured Azure DevOps feed before installs.
- template: /eng/pipelines/templates/steps/auth-dev-feed.yml
- template: /eng/common/pipelines/templates/steps/python-auth-dev-feed.yml
parameters:
DevFeedName: ${{ parameters.DevFeedName }}
EnableTwineAuth: false
DisableAdditionalIndexes : true

- script: |
python -m pip install -r eng/ci_tools.txt
Expand Down Expand Up @@ -102,9 +102,8 @@ stages:
GH_TOKEN: $(GH_TOKEN)
SYSTEM_ACCESSTOKEN: $(System.AccessToken)

- task: UsePythonVersion@0
displayName: 'Use Python 3.13 for docs generation'
inputs:
- template: /eng/pipelines/templates/steps/use-python-version.yml
parameters:
versionSpec: '3.13'

- script: |
Expand Down
1 change: 0 additions & 1 deletion eng/tools/azure-sdk-tools/ci_tools/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def in_analyze_weekly() -> int:
"VIRTUALENV_WHEEL": "0.45.1",
"VIRTUALENV_PIP": "24.0",
"VIRTUALENV_SETUPTOOLS": "75.3.2",
"PIP_EXTRA_INDEX_URL": "https://pypi.python.org/simple",
# I haven't spent much time looking to see if a variable exists when invoking uv run. there might be one already that we can depend
# on for get_pip_command adjustment.
"IN_UV": "1",
Expand Down
20 changes: 20 additions & 0 deletions eng/tools/azure-sdk-tools/tests/test_variables.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import os

from ci_tools.variables import set_envvar_defaults


def test_set_envvar_defaults_does_not_add_public_pypi_extra_index(monkeypatch):
monkeypatch.delenv("PIP_EXTRA_INDEX_URL", raising=False)

set_envvar_defaults()

assert "PIP_EXTRA_INDEX_URL" not in os.environ


def test_set_envvar_defaults_preserves_explicit_extra_index(monkeypatch):
extra_index = "https://contoso.example/simple"
monkeypatch.setenv("PIP_EXTRA_INDEX_URL", extra_index)

set_envvar_defaults()

assert os.environ["PIP_EXTRA_INDEX_URL"] == extra_index
Loading