Skip to content
Merged
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
8 changes: 4 additions & 4 deletions eng/pipelines/autorest_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ jobs:

- script: |
cd $(Build.SourcesDirectory)/autorest.python/packages/autorest.python/test/vanilla/legacy
pip install $(Build.SourcesDirectory)/$(source_path_azure_core)
pip install -r requirements.txt
python -m pip install $(Build.SourcesDirectory)/$(source_path_azure_core)
python -m pip install -r requirements.txt
pip freeze
pytest $(Build.SourcesDirectory)/autorest.python/packages/autorest.python/test/vanilla/legacy
displayName: 'Install azure-core and Test Vanilla Legacy'

- script: |
cd $(Build.SourcesDirectory)/autorest.python/packages/autorest.python/test/azure/legacy
pip install $(Build.SourcesDirectory)/$(source_path_azure_mgmt_core)
pip install -r requirements.txt
python -m pip install $(Build.SourcesDirectory)/$(source_path_azure_mgmt_core)
python -m pip install -r requirements.txt
pip freeze
pytest $(Build.SourcesDirectory)/autorest.python/packages/autorest.python/test/azure/legacy
displayName: 'Install azure-mgmt-core and Test Azure Legacy'
2 changes: 1 addition & 1 deletion eng/pipelines/docindex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
versionSpec: '3.9.13'

# Docs CI upgrades pip, wheel, and setuptools
- pwsh: pip install --upgrade pip wheel setuptools
- pwsh: python -m pip install --upgrade pip wheel setuptools
displayName: Update python tools for package verification

# Pull and build the docker image.
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/generate-all-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
versionSpec: '$(PythonVersion)'

- script: |
pip install -r eng/ci_tools.txt
python -m pip install -r eng/ci_tools.txt
displayName: 'Prep Environment'

- task: PythonScript@0
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
GenerateVMJobs: true
PreGenerationSteps:
- pwsh: |
pip install "./tools/azure-sdk-tools[build]"
python -m pip install "./tools/azure-sdk-tools[build]"
displayName: 'Prep Environment'
- template: /eng/pipelines/templates/steps/targeting-string-resolve.yml
parameters:
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:

- pwsh: |
mkdir -p $(TEST_PROXY_FOLDER)
pip install -r eng/regression_tools.txt
python -m pip install -r eng/regression_tools.txt
displayName: 'Prep Environment'

- template: /eng/common/testproxy/test-proxy-tool.yml
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/templates/jobs/run-cli-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ jobs:
- bash: |
set -ev
source env/bin/activate
pip install -e $(Build.SourcesDirectory)/${{ artifact }}
python -m pip install -e $(Build.SourcesDirectory)/${{ artifact }}
displayName: Install ${{ artifact }}

- ${{ each package_spec in parameters.InjectedPackages }}:
- bash: |
set -ev
source env/bin/activate
pip install -e ${{ package_spec }}
python -m pip install -e ${{ package_spec }}
displayName: Install ${{ package_spec }}

- bash: |
Expand Down
12 changes: 6 additions & 6 deletions eng/pipelines/templates/jobs/smoke.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ jobs:
- pwsh: |
$ErrorActionPreference = "Continue"
while ($retries++ -lt 15) {
Write-Host "pip install -r $(requirements) --no-deps --upgrade --no-cache-dir"
pip install -r "$(requirements)" --no-deps --upgrade --no-cache-dir
Write-Host "python -m pip install -r $(requirements) --no-deps --upgrade --no-cache-dir"
python -m pip install -r "$(requirements)" --no-deps --upgrade --no-cache-dir
if ($LASTEXITCODE) {
if ($retries -ge 15) {
exit $LASTEXITCODE
Expand All @@ -208,12 +208,12 @@ jobs:

- ${{ if eq(parameters.Daily, true) }}:
- pwsh: |
pip install -r "$(requirements)" --pre --no-deps --upgrade `
python -m pip install -r "$(requirements)" --pre --no-deps --upgrade `
--index-url https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple

displayName: Install requirements from dev feed without dependencies

- pwsh: pip install -r $(Build.SourcesDirectory)/common/smoketest/requirements_async.txt
- pwsh: python -m pip install -r $(Build.SourcesDirectory)/common/smoketest/requirements_async.txt
displayName: "Install requirements_async.txt"
condition: and(succeeded(), ne(variables['SkipAsyncInstall'], true))

Expand All @@ -222,10 +222,10 @@ jobs:
| Out-File $(Build.SourcesDirectory)/common/smoketest/requirements_dependencies.txt
displayName: Create dependency list from installed packages

- script: pip install -r $(Build.SourcesDirectory)/common/smoketest/requirements_dependencies.txt
- script: python -m pip install -r $(Build.SourcesDirectory)/common/smoketest/requirements_dependencies.txt
displayName: Install package dependencies from PyPI

- script: pip freeze
- script: python -m pip freeze
displayName: Show installed packages (pip freeze)

- template: /eng/common/TestResources/deploy-test-resources.yml
Expand Down
8 changes: 4 additions & 4 deletions eng/pipelines/templates/jobs/tests-nightly-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
- script: |
python -m pip freeze
python -m pip --version
pip install setuptools==56.0.0 wheel==0.37.0 tox==3.24.3 tox-monorepo==0.1.2 packaging==21.0 requests
pip install $(Build.SourcesDirectory)/tools/azure-sdk-tools[build]
python -m pip install setuptools==56.0.0 wheel==0.37.0 tox==3.24.3 tox-monorepo==0.1.2 packaging==21.0 requests
python -m pip install $(Build.SourcesDirectory)/tools/azure-sdk-tools[build]
displayName: Install Dependencies

- template: /eng/common/testproxy/test-proxy-tool.yml
Expand Down Expand Up @@ -67,8 +67,8 @@ jobs:
sudo apt-get install build-essential -y
python -m pip freeze
python -m pip --version
pip install setuptools==56.0.0 wheel==0.37.0 tox==3.24.3 tox-monorepo==0.1.2 packaging==21.0 requests
pip install $(Build.SourcesDirectory)/tools/azure-sdk-tools[build]
python -m pip install setuptools==56.0.0 wheel==0.37.0 tox==3.24.3 tox-monorepo==0.1.2 packaging==21.0 requests
python -m pip install $(Build.SourcesDirectory)/tools/azure-sdk-tools[build]
displayName: Install Dependencies

- template: /eng/common/testproxy/test-proxy-tool.yml
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/templates/jobs/trigger-ml-sample-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
versionSpec: $(PythonVersion)

- script: |
pip install -r eng/ci_tools.txt
pip install -r eng/ml_sample_tools.txt
python -m pip install -r eng/ci_tools.txt
python -m pip install -r eng/ml_sample_tools.txt
displayName: 'Prep Environment'

- pwsh: |
Expand Down
8 changes: 4 additions & 4 deletions eng/pipelines/templates/stages/archetype-python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ stages:

- script: |
set -e
pip install -r eng/release_requirements.txt
pip install tools/azure-sdk-tools
python -m pip install -r eng/release_requirements.txt
python -m pip install tools/azure-sdk-tools
displayName: Install Release Dependencies

- task: PythonScript@0
Expand Down Expand Up @@ -206,7 +206,7 @@ stages:
- checkout: self
- task: UsePythonVersion@0
- script: |
pip install "./tools/azure-sdk-tools[build]"
python -m pip install "./tools/azure-sdk-tools[build]"
displayName: Install versioning tool dependencies
- pwsh: |
sdk_increment_version --package-name ${{ artifact.name }} --service ${{ parameters.ServiceDirectory }}
Expand Down Expand Up @@ -245,7 +245,7 @@ stages:
- task: UsePythonVersion@0
- script: |
set -e
pip install twine
python -m pip install twine
displayName: Install Twine

- template: ../steps/auth-dev-feed.yml
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/templates/steps/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ steps:
ForRelease: false

- pwsh: |
pip install -r eng/ci_tools.txt $(if($IsWindows) {"--user" })
python -m pip install -r eng/ci_tools.txt $(if($IsWindows) {"--user" })
displayName: 'Install Necessary Dependencies'
condition: succeededOrFailed()

- script: |
pip install "./tools/azure-sdk-tools[build]" -q -I
python -m pip install "./tools/azure-sdk-tools[build]" -q -I
sdk_find_invalid_versions --always-succeed --service=${{parameters.ServiceDirectory}}
displayName: Find Invalid Versions
condition: succeededOrFailed()
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ steps:
versionSpec: $(PythonVersion)

- script: |
pip install -r eng/ci_tools.txt
python -m pip install -r eng/ci_tools.txt
displayName: 'Prep Environment'

- template: ../steps/set-dev-build.yml
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/build-conda-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ steps:
versionSpec: $(PythonVersion)

- script: |
pip install -r eng/ci_tools.txt
python -m pip install -r eng/ci_tools.txt
displayName: 'Prep Environment'

- pwsh: |
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ steps:
- script: |
python -m pip install pip==20.3.3
python -m pip install wheel==0.37.0
pip install -r eng/ci_tools.txt
python -m pip install -r eng/ci_tools.txt
pip --version
pip freeze
displayName: 'Prep Environment'
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/run_apistub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ steps:
condition: and(succeededOrFailed(), ne(variables['Skip.ApiStubGen'],'true'))

- script: |
pip install -r eng/ci_tools.txt
python -m pip install -r eng/ci_tools.txt
displayName: 'Prep Environment'

- task: PythonScript@0
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/run_bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ parameters:
# Please use `$(TargetingString)` to refer to the python packages glob string. This was previously `${{ parameters.BuildTargetingString }}`.
steps:
- script: |
pip install -r eng/ci_tools.txt
python -m pip install -r eng/ci_tools.txt
displayName: 'Prep Environment'
condition: and(succeededOrFailed(), ne(variables['Skip.Bandit'],'true'))

Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/run_black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ steps:
condition: succeededOrFailed()

- script: |
pip install black==22.3.0 tools/azure-sdk-tools["build"]
python -m pip install black==22.3.0 tools/azure-sdk-tools["build"]
displayName: 'Prep Environment'
condition: succeededOrFailed()

Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/run_pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ steps:
condition: and(succeededOrFailed(), ne(variables['Skip.Pylint'],'true'))

- script: |
pip install -r eng/ci_tools.txt
python -m pip install -r eng/ci_tools.txt
displayName: 'Prep Environment'
condition: and(succeededOrFailed(), ne(variables['Skip.Pylint'],'true'))

Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/run_pyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ steps:
condition: and(succeededOrFailed(), or(ne(variables['Skip.Pyright'],'true'), ne(variables['Skip.Verifytypes'],'true')))

- script: |
pip install -r eng/ci_tools.txt
python -m pip install -r eng/ci_tools.txt
displayName: 'Prep Environment'
condition: and(succeededOrFailed(), or(ne(variables['Skip.Pyright'],'true'), ne(variables['Skip.Verifytypes'],'true')))

Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/seed-virtualenv-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parameters:

steps:
- pwsh: |
pip install virtualenv
python -m pip install virtualenv
displayName: Ensure virtualenv installed

- pwsh: |
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/set-dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ steps:
ServiceDirectory: ${{ parameters.ServiceDirectory }}

- pwsh: |
pip install "tools/azure-sdk-tools[build]"
python -m pip install "tools/azure-sdk-tools[build]"
sdk_set_dev_version "$(TargetingString)" --service="${{parameters.ServiceDirectory}}" --build-id="$(Build.BuildNumber)"
displayName: "Update package versions for dev build"
condition: and(succeededOrFailed(), eq(variables['SetDevVersion'],'true'))
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/use-python-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ steps:
versionSpec: 3.8

- pwsh: |
pip install packaging==20.4
python -m pip install packaging==20.4
displayName: Prep Environment

# select the appropriate version from manifest if present
Expand Down
2 changes: 1 addition & 1 deletion scripts/auto_release/PythonSdkLiveTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# create virtual env
python -m venv venv-sdk
source venv-sdk/bin/activate
pip install -r $script_path/requirement.txt
python -m pip install -r $script_path/requirement.txt

# import env variable
export AZURE_TEST_RUN_LIVE=$(AZURE_TEST_RUN_LIVE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
# create virtual env
python -m venv venv-sdk
source venv-sdk/bin/activate
pip install -r $script_path/requirement.txt
python -m pip install -r $script_path/requirement.txt

# run
cd file-storage
Expand Down
2 changes: 1 addition & 1 deletion scripts/issue_helper/issue_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
# create virtual env
python -m venv venv-sdk
source venv-sdk/bin/activate
pip install -r $script_path/requirement.txt
python -m pip install -r $script_path/requirement.txt

# checkout the target branch
cd file-storage
Expand Down
2 changes: 1 addition & 1 deletion scripts/release_helper/release_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
# create virtual env
python -m venv venv-sdk
source venv-sdk/bin/activate
pip install -r $script_path/requirement.txt
python -m pip install -r $script_path/requirement.txt

# checkout the target branch
cd file-storage
Expand Down
2 changes: 1 addition & 1 deletion scripts/release_sdk_status/release_sdk_status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
# create virtual env
python -m venv venv-sdk
source venv-sdk/bin/activate
pip install -r $script_path/requirement.txt
python -m pip install -r $script_path/requirement.txt

# checkout the target branch
cd file-storage
Expand Down